CTL_STATUS_t ctl_spi_select_device(CTL_SPI_DEVICE_t *self);

ctl_spi_select_device selects the device self on the bus that it is attached to and locks access to the bus so other devices cannot use the bus. Once the bus is locked, the device's select method is invoked.

The device remains selected until ctl_spi_deselect_device deselects the device and releases the lock on the SPI bus.


ctl_spi_select_device returns a standard status code indicating the status of setting the device's SPI protocol.