[−][src]Type Definition mynewt::hw::sensor::sensor_error_func_t
type sensor_error_func_t = Option<unsafe extern "C" fn(sensor: *mut sensor, arg: *mut c_void, status: c_int)>;
Callback for reporting a sensor read error.
sensor
: The sensor for which a read failed.arg
: The optional argument registered with the callback.status
: Indicates the cause of the read failure. Determined by the underlying sensor driver.