[][src]Function mynewt::hw::sensor::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 sensor
  • stt: Ptr to sensor type traits containing thresholds

Return: 0 on success, non-zero on failure