Zigbee Protocol Controller 1.6.0

Contains defines to make enums with specified underlying types. More...

Macros

#define UIC_ENUM(name, type)
 Enum with <type> as size, where type may be any integer type. More...
 
#define UIC_ENUM8(name)   UIC_ENUM(name, uint8_t)
 Enum with 8 bit size. More...
 
#define UIC_ENUM16(name)   UIC_ENUM(name, uint16_t)
 Enum with 16 bit size. More...
 
#define UIC_ENUM32(name)   UIC_ENUM(name, uint32_t)
 Enum with 32 bit size. More...
 

Detailed Description

Contains defines to make enums with specified underlying types.

Macro Definition Documentation

◆ UIC_ENUM

#define UIC_ENUM (   name,
  type 
)
Value:
name_enum; \
typedef type name

Enum with <type> as size, where type may be any integer type.

Usage: typedef enum { MY_ENTRY_1, MY_ENTRY_2, MY_ENTRY_X ) UIC_ENUM(my_type, int16_t); my_type x; //<< this will be of type int16_6 my_type_enum y; //<< this will be of enum type

◆ UIC_ENUM16

#define UIC_ENUM16 (   name)    UIC_ENUM(name, uint16_t)

Enum with 16 bit size.

Usage: typedef enum { MY_ENTRY_1, MY_ENTRY_2, MY_ENTRY_X ) UIC_ENUM16(my_type); my_type x; //<< this will be of type uint16_t my_type_enum y; //<< this will be of enum type

◆ UIC_ENUM32

#define UIC_ENUM32 (   name)    UIC_ENUM(name, uint32_t)

Enum with 32 bit size.

Usage: typedef enum { MY_ENTRY_1, MY_ENTRY_2, MY_ENTRY_X ) UIC_ENUM32(my_type); my_type x; //<< this will be of type uint32_t my_type_enum y; //<< this will be of enum type

◆ UIC_ENUM8

#define UIC_ENUM8 (   name)    UIC_ENUM(name, uint8_t)

Enum with 8 bit size.

Usage: typedef enum { MY_ENTRY_1, MY_ENTRY_2, MY_ENTRY_X ) UIC_ENUM8(my_type); my_type x; //<< this will be of type uint8_t my_type_enum y; //<< this will be of enum type