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