[−][src]Function mynewt::hw::sensor::bindings::sensor_set_thresh
pub unsafe extern "C" fn sensor_set_thresh(
devname: *const c_char,
stt: *mut sensor_type_traits
) -> c_int
Set the thresholds along with the comparison algo for a sensor
devname
: Name of the sensorstt
: Ptr to sensor type traits containing thresholds
Return: 0 on success, non-zero on failure