CTL_STATUS_t ctl_accelerometer_set_bandwidth(CTL_ACCELEROMETER_t *self,
                                             float bandwidth);

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

Return Value

ctl_accelerometer_set_bandwidth returns a standard status code.

Thread Safety

ctl_accelerometer_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.