[][src]Type Definition mynewt::hw::sensor::bindings::sensor_read_func_t

type sensor_read_func_t = Option<unsafe extern "C" fn(arg1: *mut sensor, arg2: sensor_type_t, arg3: sensor_data_func_t, arg4: *mut c_void, arg5: u32) -> c_int>;

Read a single value from a sensor, given a specific sensor type (e.g. SENSOR_TYPE_PROXIMITY).

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