[][src]Function mynewt::hw::sensor::sensor_trigger_init

pub unsafe extern "C" fn sensor_trigger_init(
    sensor: *mut sensor,
    type_: sensor_type_t,
    notify: sensor_trigger_notify_func_t
)

Sensor trigger initialization

  • sensor: Ptr to the sensor
  • type: Sensor type to enable trigger for
  • notify: the function to call if the trigger condition is satisfied