[−][src]Function mynewt::hw::sensor::sensor_init
pub unsafe extern "C" fn sensor_init(
sensor: *mut sensor,
dev: *mut os_dev
) -> c_int
Initialize a sensor
sensor
: The sensor to initializedev
: The device to associate with this sensor.
Return: 0 on success, non-zero error code on failure.