Enumerations
Description
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) enum name |
Enumeration mapped to uint8_t.
|
|
#define | SL_ENUM_GENERIC (name, type) enum name |
Enumeration mapped to arbitrary type.
|
|
Macro Definition Documentation
◆ SL_ENUM
#define SL_ENUM | ( |
name
|
) | enum name |
Enumeration mapped to uint8_t.
◆ SL_ENUM_GENERIC
#define SL_ENUM_GENERIC | ( |
name,
|
|
type
|
|||
) | enum name |
Enumeration mapped to arbitrary type.