CTL_STATUS_t ctl_spi_attach_device(CTL_SPI_BUS_t *self, CTL_SPI_DEVICE_t *dev);
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.
ctl_spi_attach_device is thread-safe.