CTL_STATUS_t ctl_magnetometer_set_bandwidth(CTL_MAGNETOMETER_t *self, float bandwidth);
ctl_magnetometer_set_bandwidth sets the bandwidth of the magnetometer self to bandwidth hertz. The magnetometer selects the bandwidth which is closest to bandwidth, but may exceed it if range is not a setting offered by the magnetometer.
ctl_magnetometer_set_bandwidth returns a standard status code.
ctl_magnetometer_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.