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

pub unsafe extern "C" fn sensor_register_notifier(
    sensor: *mut sensor,
    notifier: *mut sensor_notifier
) -> c_int

Register a sensor notifier. This allows a calling application to receive callbacks any time a requested event is observed.

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