OpenZWave Library  1.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
brg_types.h File Reference
#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))
 

Macro Definition Documentation

#define ALIGN_CEIL (   x,
 
)    ((uint8_t*)(x) + (-((ptrint_t)(x)) & ((n) - 1)))
#define ALIGN_FLOOR (   x,
 
)    ((uint8_t*)(x) - ( ((ptrint_t)(x)) & ((n) - 1)))
#define ALIGN_OFFSET (   x,
 
)    (((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