/* Set the ITG-3200 low-pass filter bandwidth. 
Valid filter bandwidths and the associated internal sample rate are as follows: */
static bool itg3200_set_bandwidth(sensor_hal_t *hal, int16_t band)
/* Set the ITG-3200 low-pass filter bandwidth. 
Valid filter bandwidths and the associated internal sample rate are as follows: */
static bool itg3200_set_bandwidth(sensor_hal_t *hal, int16_t band)
{
	sensor_bus_put(hal, ITG3200_DLPF_FS,
			FS_SEL_2000 | band_table [band].reserved_val);
	if ((hal->bandwidth == 256) ||
			(band_table [band].bandwidth_Hz == 256)) {
		hal->bandwidth = band_table [band].bandwidth_Hz;
		itg3200_set_sample_rate(hal, hal->sample_rate);
	}
	return true;
}