Synopsis
CTL_STATUS_t ctl_gyroscope_set_bandwidth(CTL_GYROSCOPE_t *self,
                                         float bandwidth);
Description

ctl_gyroscope_set_bandwidth sets the bandwidth of the gyroscope self to bandwidth hertz. The gyroscope selects the bandwidth which is closest to bandwidth, but may exceed it if range is not a setting offered by the gyroscope.

Return Value

ctl_gyroscope_set_bandwidth returns a standard status code.

Thread Safety

ctl_gyroscope_set_bandwidth is thread-safe if the method set_bandwidth is thread-safe. Typically, for SPI and I2C transports, you ensure thread safety by associating a mutex with the bus used by the transport.