Type Alias riot_sys::_bindgen_ty_13

source ·
pub type _bindgen_ty_13 = c_uchar;
Expand description

@name Definition of device classes

This list contains a collections of available device classes. Each device must be part of one, but can be part of multiple of these classes. When belonging to more than one class, a device must however expose one driver for each class it belongs to, and it has to register each driver with a separate entry at the SAUL registry.

Classes are identified by 8-bit unsigned integers.

For searching and filtering purposes, the device classes are further split into top-level categories: sensors and actuators. For identification, the two most significant bits of a class specify the device category (SAUL category ID) and the six least significant bits identify the class within its category (SAUL intra-category ID): Therefore, all actuator classes start with 0b01xxxxxx, all sensor classes start with 0b10xxxxxx.

This list is not exhaustive, extend to your needs! @{ / /** @brief Definition of SAUL categories

These entries are meant to be combined via bitwise or with the six least significant bits identifying the class within its category to retrieve the class ID.