[][src]Type Definition mynewt::hw::sensor::sensor_trigger_notify_func_t

type sensor_trigger_notify_func_t = Option<unsafe extern "C" fn(arg1: *mut sensor, arg2: *mut c_void, arg3: sensor_type_t) -> c_int>;

Callback for sending trigger notification.

  • sensor: Ptr to the sensor
  • data: Ptr to sensor data
  • type: The sensor type