/* Read SFH5712 device ID and revision numbers. 
This function reads the sensor hardware identification registers and returns these values in the specified data structure. */
static bool sfh5712_device_id(sensor_hal_t *hal, sensor_data_t *data)
/* Read SFH5712 device ID and revision numbers. 
This function reads the sensor hardware identification registers and returns these values in the specified data structure. */
static bool sfh5712_device_id(sensor_hal_t *hal, sensor_data_t *data)
{
	uint32_t const part_id = sensor_bus_get(hal, SFH5712_PART_ID);
	data->device.id = (part_id & PART_ID_MASK) >> PART_ID_SHIFT;
	data->device.version = (part_id & PART_REV_MASK);
	return true;
}