Defines utility macros which are used throughout the code. More...
Go to the source code of this file.
Macros | |
#define | D2STR(x) #x |
#define | SIZEOF_ARRAY(ar) (sizeof(ar)/sizeof(ar[0])) |
#define | SIZEOF_MEMBER(memberOf, member) sizeof(((memberOf*)0)->member) |
#define | SIZEOF_ARRAY_MEMBER(memberOf, member) (sizeof(((memberOf*)0)->member)/sizeof(((memberOf*)0)->member[0])) |
#define | BSWAP_16(x) |
#define | BSWAP_32(x) |
#define | BSWAP_64(x) |
#define | HEX__(n) 0x##n##LU |
#define | B8__(x) |
#define | B8(d) ((uint8_t)B8__(HEX__(d))) |
#define | B16(dmsb, dlsb) |
#define | B32(dmsb, db2, db3, dlsb) |
Defines utility macros which are used throughout the code.