Synopsis
CTL_STATUS_t ctl_spi_issue_deselected_clocks(CTL_SPI_DEVICE_t *self,
                                             size_t items);
Description

ctl_spi_issue_deselected_clocks locks the SPI bus associated with the device self and sets the bus protocol to communicate with the device. However, the device is not selected onto the bus and remains deselected.

Description

ctl_spi_issue_deselected_clocks then issues items frames of clock pulses to the SPI bus, unlocks the SPI bus, and returns.

This function is provided primarily for initializing SD and MMC cards into SPI mode.

Description

ctl_spi_issue_deselected_clocks returns a standard status code.