/* Read BMA222 device ID and revision numbers. 
This function reads the accelerometer hardware identification registers and returns these values in the specified data structure. */
static bool bma222_device_id(sensor_hal_t *hal, sensor_data_t *data)
/* Read BMA222 device ID and revision numbers. 
This function reads the accelerometer hardware identification registers and returns these values in the specified data structure. */
static bool bma222_device_id(sensor_hal_t *hal, sensor_data_t *data)
{
	data->device.id = sensor_bus_get(hal, BMA222_CHIP_ID);
	data->device.version = 0;
	return (STATUS_OK == hal->bus.status);
}