/* Put sensor in standby mode. 
This function places the KXTF9 device in standby mode. This can be done to save power, or to allow modification of various control registers. This function will return the value of the CTRL_REG1 register prior to entering standby mode, so that it can be restored. */
static uint8_t kxtf9_standby(sensor_hal_t *hal)
/* Put sensor in standby mode. 
This function places the KXTF9 device in standby mode. This can be done to save power, or to allow modification of various control registers. This function will return the value of the CTRL_REG1 register prior to entering standby mode, so that it can be restored. */
static uint8_t kxtf9_standby(sensor_hal_t *hal)
{
	uint8_t const ctrl_reg1 = sensor_bus_get(hal, KXTF9_CTRL_REG1);
	sensor_bus_put(hal, KXTF9_CTRL_REG1, (ctrl_reg1 & ~CTRL_REG1_PC1));
	return ctrl_reg1;
}