![]() |
OpenZWave Library
1.5.4
|
#include <limits.h>#include <stdint.h>
Include dependency graph for brg_types.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ptrint_t int |
| #define | BRG_UI32 |
| #define | RETURN_VALUES |
| #define | VOID_RETURN void |
| #define | INT_RETURN int |
| #define | ALIGN_OFFSET(x, n) (((ptrint_t)(x)) & ((n) - 1)) |
| #define | ALIGN_FLOOR(x, n) ((uint8_t*)(x) - ( ((ptrint_t)(x)) & ((n) - 1))) |
| #define | ALIGN_CEIL(x, n) ((uint8_t*)(x) + (-((ptrint_t)(x)) & ((n) - 1))) |
| #define | UI_TYPE(size) uint##size##_t |
| #define | UNIT_TYPEDEF(x, size) typedef UI_TYPE(size) x |
| #define | BUFR_TYPEDEF(x, size, bsize) typedef UI_TYPE(size) x[bsize / (size >> 3)] |
| #define | UNIT_CAST(x, size) ((UI_TYPE(size) )(x)) |
| #define | UPTR_CAST(x, size) ((UI_TYPE(size)*)(x)) |
| #define ALIGN_CEIL | ( | x, | |
| n | |||
| ) | ((uint8_t*)(x) + (-((ptrint_t)(x)) & ((n) - 1))) |
| #define ALIGN_FLOOR | ( | x, | |
| n | |||
| ) | ((uint8_t*)(x) - ( ((ptrint_t)(x)) & ((n) - 1))) |
| #define ALIGN_OFFSET | ( | x, | |
| n | |||
| ) | (((ptrint_t)(x)) & ((n) - 1)) |
| #define BRG_UI32 |
| #define BUFR_TYPEDEF | ( | x, | |
| size, | |||
| bsize | |||
| ) | typedef UI_TYPE(size) x[bsize / (size >> 3)] |
| #define INT_RETURN int |
| #define ptrint_t int |
| #define RETURN_VALUES |
| #define UI_TYPE | ( | size | ) | uint##size##_t |
| #define UNIT_CAST | ( | x, | |
| size | |||
| ) | ((UI_TYPE(size) )(x)) |
| #define UNIT_TYPEDEF | ( | x, | |
| size | |||
| ) | typedef UI_TYPE(size) x |
| #define UPTR_CAST | ( | x, | |
| size | |||
| ) | ((UI_TYPE(size)*)(x)) |
| #define VOID_RETURN void |
1.8.5