/* Set the IMU-3000 full scale range. 
This routine sets the IMU-3000 full scale range using an index to a table of valid ranges: +/-250, +/-500, +/-1000, and +/-2000 deg/sec. */
static bool imu3000_set_range(sensor_hal_t *hal, int16_t range)
/* Set the IMU-3000 full scale range. 
This routine sets the IMU-3000 full scale range using an index to a table of valid ranges: +/-250, +/-500, +/-1000, and +/-2000 deg/sec. */
static bool imu3000_set_range(sensor_hal_t *hal, int16_t range)
{
	sensor_fs_sel = range;
	uint8_t const dlpf_fs = (~FS_SEL_FIELD) &
			sensor_bus_get(hal, IMU3000_DLPF_FS);
	sensor_bus_put(hal, IMU3000_DLPF_FS,
			dlpf_fs | range_table [sensor_fs_sel].reserved_val);
	return true;
}