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

pub fn mgr_find_next_bydevname(
    devname: &Strn<'_>,
    prev_cursor: *mut sensor
) -> MynewtResult<*mut sensor>

Search the sensor list and find the next sensor that corresponds to a given device name.

  • devname: The device name to search for
  • sensor: The previous sensor found with this device name

Return: 0 on success, non-zero error code on failure