/* Read magnetometer device ID. 
This function reads the magnetometer hardware identification registers and returns these values to the addresses specified in the function parameters. */
static bool ak8975_device_id(sensor_hal_t *hal, sensor_data_t *data)
/* Read magnetometer device ID. 
This function reads the magnetometer hardware identification registers and returns these values to the addresses specified in the function parameters. */
static bool ak8975_device_id(sensor_hal_t *hal, sensor_data_t *data)
{
	data->device.id = (uint32_t)sensor_bus_get(hal, AK8975_REG_WIA);
	data->device.version = 0;
	return true;
}