/* Get sensor hardware device ID. 
This routine returns device-specific sensor hardware identification and, optionally, version values. Unimplemented values will be set to zero. For example, devices supporting a dedicated ID register, but not a version register, will set "id" to the ID value and "ver" to zero. */
bool sensor_device_id(sensor_t *sensor, uint32_t *id, uint8_t *ver)
/* Get sensor hardware device ID. 
This routine returns device-specific sensor hardware identification and, optionally, version values. Unimplemented values will be set to zero. For example, devices supporting a dedicated ID register, but not a version register, will set "id" to the ID value and "ver" to zero. */
bool sensor_device_id(sensor_t *sensor, uint32_t *id, uint8_t *ver)
{
	sensor_data_t dev_data;
	bool status = false;
	status = sensor_read(sensor, SENSOR_READ_ID, &dev_data);
	if (status) {
		*id = dev_data.device.id;
		*ver = (uint8_t)dev_data.device.version;
	}
	return status;
}