[][src]Function mynewt::hw::sensor::bindings::sensor_register_err_func

pub unsafe extern "C" fn sensor_register_err_func(
    sensor: *mut sensor,
    err_fn: sensor_error_func_t,
    arg: *mut c_void
) -> c_int

Register a sensor error callback. The callback is executed when the sensor manager fails to read from the given sensor.

Return: 0 on success, non-zero error code on failure.