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

pub unsafe extern "C" fn sensor_read(
    sensor: *mut sensor,
    type_: sensor_type_t,
    data_func: sensor_data_func_t,
    arg: *mut c_void,
    timeout: u32
) -> c_int

Read the data for sensor type "type," from the given sensor and return the result into the "value" parameter.

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