[−][src]Type Definition mynewt::hw::sensor::sensor_set_trigger_thresh_t
type sensor_set_trigger_thresh_t = Option<unsafe extern "C" fn(arg1: *mut sensor, arg2: sensor_type_t, stt: *mut sensor_type_traits) -> c_int>;
Set the trigger and threshold values for a specific sensor for the sensor type.
sensor
: Ptr to the sensortype
: type of sensorstt
: Ptr to teh sensor traits
Return: 0 on success, non-zero error code on failure.