CTL_STATUS_t ctl_spi_detach_device(CTL_SPI_DEVICE_t *self);
ctl_spi_detach_device removes the device self from the bus it's attached to. If the device is already detached this is a no-operation.
ctl_spi_detach_device is thread-safe.
ctl_spi_attach_device.