Function a121_sys::acc_sensor_status
source ยท pub unsafe extern "C" fn acc_sensor_status(
sensor: *const acc_sensor_t
)Expand description
@brief Check the status of the sensor
This function reads out the internal status from the sensor and prints it for debugging purposes. It can for example be called when the function @ref acc_hal_integration_wait_for_sensor_interrupt() fails. Note that the sensor must be powered on before calling this function.
@param[in] sensor The sensor instance to get status from