[−][src]Function mynewt::hw::sensor::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.
type
: The type of sensor to search forsensor
: The cursor to search from, or NULL to start from the beginning.
Return: A pointer to the sensor object matching that sensor type, or NULL if none found.