[−][src]Function mynewt::hw::sensor::sensor_mgr_register
pub unsafe extern "C" fn sensor_mgr_register(sensor: *mut sensor) -> c_int
Register the sensor with the global sensor list. This makes the sensor searchable by other packages, who may want to look it up by type.
sensor
: The sensor to register
Return: 0 on success, non-zero error code on failure.