[−][src]Function mynewt::hw::sensor::sensor_itf_lock
pub unsafe extern "C" fn sensor_itf_lock(
si: *mut sensor_itf,
timeout: u32
) -> c_int
Lock access to the sensor_itf specified by si. Blocks until lock acquired.
si
: The sensor_itf to locktimeout
: The timeout
Return: 0 on success, non-zero on failure.