Synopsis
CTL_STATUS_t ctl_spi_attach_device(CTL_SPI_BUS_t *self,
                                   CTL_SPI_DEVICE_t *dev);
Description

ctl_spi_attach_device attaches the device dev to the SPI bus self. It is an error to operate an SPI device using SPI functions without first attaching it to a bus.

Thread Safety

ctl_spi_attach_device is thread-safe.

See Also

ctl_spi_detach_device.