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

pub unsafe extern "C" fn sensor_mgr_match_bytype(
    sensor: *mut sensor,
    arg1: *mut c_void
) -> c_int

Check if sensor type matches

  • sensor: The sensor object
  • arg: type to check

Return: 1 if matches, 0 if it doesn't match.