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.

Macro Definition Documentation#

SL_ENUM#

#define SL_ENUM
Value:
(name)

Enumeration mapped to uint8_t.


Definition at line 47 of file platform/common/inc/sl_enum.h

SL_ENUM_GENERIC#

#define SL_ENUM_GENERIC
Value:
(name, type)

Enumeration mapped to arbitrary type.


Definition at line 49 of file platform/common/inc/sl_enum.h