[][src]Function mynewt::hw::sensor::bindings::sensor_mgr_find_next_bytype

pub unsafe extern "C" fn sensor_mgr_find_next_bytype(
    type_: sensor_type_t,
    sensor: *mut sensor
) -> *mut sensor

Find the "next" sensor available for a given sensor type.

If the sensor parameter, is present find the next entry from that parameter. Otherwise, find the first matching sensor.

Return: A pointer to the sensor object matching that sensor type, or NULL if none found.