/* Set the IMU-3000 low-pass filter bandwidth. 
This routine sets the IMU-3000 low-pass filter bandwidth and the internal sample rate used by the device. This internal sample rate is then further scaled by the sample rate divider (SMPLRT_DIV) value to produce the gyro sample rate according to the formula:  */
static bool imu3000_set_bandwidth(sensor_hal_t *hal, int16_t band)
/* Set the IMU-3000 low-pass filter bandwidth. 
This routine sets the IMU-3000 low-pass filter bandwidth and the internal sample rate used by the device. This internal sample rate is then further scaled by the sample rate divider (SMPLRT_DIV) value to produce the gyro sample rate according to the formula:  */
static bool imu3000_set_bandwidth(sensor_hal_t *hal, int16_t band)
{
	sensor_dlpf_cfg = band;
	uint8_t const dlpf_fs = (~DLPF_CFG_FIELD) &
			sensor_bus_get(hal, IMU3000_DLPF_FS);
	sensor_bus_put(hal, IMU3000_DLPF_FS,
			dlpf_fs | band_table [sensor_dlpf_cfg].reserved_val);
	return true;
}