Enumerations#

Enumerations with stable binary representation.

Silicon Labs libraries do not use enumerations because the ARM EABI leaves their size ambiguous, which causes problems if the application is built with different flags than the library. Instead, uint8_t typedefs are used in compiled code for all enumerations. For documentation purposes, this is converted to an actual enumeration in documentation.

Macros#

#define
SL_ENUM (name)

Enumeration mapped to uint8_t.

#define
SL_ENUM_GENERIC (name, type)

Enumeration mapped to arbitrary type.