[−][src]Function mynewt::hw::sensor::bindings::sensor_get_type_traits_bytype
pub unsafe extern "C" fn sensor_get_type_traits_bytype(
type_: sensor_type_t,
sensor: *mut sensor
) -> *mut sensor_type_traits
Search the sensor type traits list for specific type of sensor
type
: The sensor type to search forsensor
: Ptr to a sensor
Return: NULL when no sensor type is found, ptr to sensor_type_traits structure when found