Header for the Platform Support Package - Platform dependent types. More...
Macros |
|
#define | RDM_UNREF(a) ((void) a) |
#define | RDM_UNSET(a) = a |
#define | MAKE_RDM_BOOL(x) ((x) ? RDM_TRUE : RDM_FALSE) |
#define | EXTERNAL_FCN_PTR EXTERNAL_FCN * |
#define | RDM_LEN(x) (sizeof (x) / sizeof (x[0])) |
#define | RDM_MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | RDM_MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | RDM_INT8_MIN ((int8_t) 0x80U) |
#define | RDM_INT8_MAX ((int8_t) 0x7FU) |
#define | RDM_UINT8_MAX ((uint8_t) 0xFFU) |
#define | RDM_INT16_MIN ((int16_t) 0x8000U) |
#define | RDM_INT16_MAX ((int16_t) 0x7FFFU) |
#define | RDM_UINT16_MAX ((uint16_t) 0xFFFFU) |
#define | RDM_INT32_MIN ((int32_t) 0x80000000U) |
#define | RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU) |
#define | RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU) |
#define | RDM_INT64_MIN (-9223372036854775807LL - 1) |
#define | RDM_INT64_MAX (9223372036854775807LL) |
#define | RDM_UINT64_MAX (18446744073709551615ULL) |
#define | RDM_INT64_FMT "%" RDM_64BIT_CODE "d" |
#define | RDM_UINT64_FMT "%" RDM_64BIT_CODE "u" |
#define | RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
#define | RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
#define | RDM_INT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "d" |
#define | RDM_UINT64_FMT_SIZE(size) "%" #size RDM_64BIT_CODE "u" |
#define | RDM_INT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X" |
#define | RDM_UINT64_FMT_SIZE_HEX(size) "%" #size RDM_64BIT_CODE "X" |
#define | RDM_STRINGIFY_(data) #data |
#define | RDM_STRINGIFY(data) RDM_STRINGIFY_ (data) |
#define | __has_feature(x) 0 |
#define | RDM_ALIGNAS(align) alignas(align) |
Enumerations |
|
enum | RDM_BOOL_T { RDM_FALSE = 0, RDM_TRUE = 1, __RDM_BOOL_MAX = 0x7fffffff } |
enum | RDM_COMPARE { RDM_LT = -1, RDM_EQ = 0, RDM_GT = 1 } |
Detailed Description
Header for the Platform Support Package - Platform dependent types.
Macro Definition Documentation
__has_feature
#define __has_feature | ( | x | ) | 0 |
EXTERNAL_FCN_PTR
#define EXTERNAL_FCN_PTR EXTERNAL_FCN * |
MAKE_RDM_BOOL
RDM_ALIGNAS
#define RDM_ALIGNAS | ( | align | ) | alignas(align) |
Use this macro with the size for alignment in front of a declaration
- Examples
- cpp50Example_main.cpp.
RDM_INT16_MAX
#define RDM_INT16_MAX ((int16_t) 0x7FFFU) |
Maximum value for int64_t
RDM_INT16_MIN
#define RDM_INT16_MIN ((int16_t) 0x8000U) |
Minimum value for int16_t
RDM_INT32_MAX
#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU) |
Maximum value for int64_t
RDM_INT32_MIN
#define RDM_INT32_MIN ((int32_t) 0x80000000U) |
Minimum value for int32_t
RDM_INT64_FMT
#define RDM_INT64_FMT "%" RDM_64BIT_CODE "d" |
Format string for 64 bit integer
RDM_INT64_FMT_HEX
#define RDM_INT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
Format string for 64 bit integer in hexadecimal
RDM_INT64_FMT_SIZE
#define RDM_INT64_FMT_SIZE | ( | size | ) | "%" #size RDM_64BIT_CODE "d" |
Format string for 64 bit integer where size is specified
RDM_INT64_FMT_SIZE_HEX
#define RDM_INT64_FMT_SIZE_HEX | ( | size | ) | "%" #size RDM_64BIT_CODE "X" |
Format string for 64 bit integer in hexadecimal where size is specified
RDM_INT64_MAX
#define RDM_INT64_MAX (9223372036854775807LL) |
Maximum value for int64_t
RDM_INT64_MIN
#define RDM_INT64_MIN (-9223372036854775807LL - 1) |
Minimum value for int64_t
RDM_INT8_MAX
#define RDM_INT8_MAX ((int8_t) 0x7FU) |
Maximum value for int64_t
RDM_INT8_MIN
#define RDM_INT8_MIN ((int8_t) 0x80U) |
Minimum value for int_t
RDM_LEN
#define RDM_LEN | ( | x | ) | (sizeof (x) / sizeof (x[0])) |
Macro to get the number of elements in an array of any type
- Examples
- core01Example_main.c, core14Example_main.c, core15Example_main.c, core16Example_main.c, core17Example_main.c, core18Example_main.c, core19Example_main.c, core31Example_main.c, core32Example_main.c, core33Example_main.c, core35Example_main.c, cpp01Example_main.cpp, cpp35Example_main.cpp, cpp50Example_main.cpp, learn/bookStore_client.c, learn/bookStore_embed.c, and learn/bookStore_vxWorks7.c.
RDM_MAX
#define RDM_MAX | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
Macro fo taking the max of two arguments of any type
- Examples
- core28Example_main.c, core29Example_main.c, and core30Example_main.c.
RDM_MIN
#define RDM_MIN | ( | a, | |
b | |||
) | ((a) < (b) ? (a) : (b)) |
Macro fo taking the min of two arguments of any type
- Examples
- core28Example_main.c, core29Example_main.c, and core30Example_main.c.
RDM_STRINGIFY
#define RDM_STRINGIFY | ( | data | ) | RDM_STRINGIFY_ (data) |
RDM_STRINGIFY_
#define RDM_STRINGIFY_ | ( | data | ) | #data |
RDM_UINT16_MAX
#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU) |
Maximum value for uint64_t
RDM_UINT32_MAX
#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU) |
Maximum value for uint64_t
RDM_UINT64_FMT
#define RDM_UINT64_FMT "%" RDM_64BIT_CODE "u" |
Format string for 64 bit unsigned integer
RDM_UINT64_FMT_HEX
#define RDM_UINT64_FMT_HEX "%" RDM_64BIT_CODE "X" |
Format string for 64 bit unsigned integer in hexadecimal
RDM_UINT64_FMT_SIZE
#define RDM_UINT64_FMT_SIZE | ( | size | ) | "%" #size RDM_64BIT_CODE "u" |
Format string for 64 bit unsigned integer where size is specified
RDM_UINT64_FMT_SIZE_HEX
#define RDM_UINT64_FMT_SIZE_HEX | ( | size | ) | "%" #size RDM_64BIT_CODE "X" |
Format string for 64 bit unsigned integer in hexadecimal where size is specified
RDM_UINT64_MAX
#define RDM_UINT64_MAX (18446744073709551615ULL) |
Maximum value for uint64_t
- Examples
- cpp55Example_main.cpp.
RDM_UINT8_MAX
#define RDM_UINT8_MAX ((uint8_t) 0xFFU) |
Maximum value for uint64_t
RDM_UNREF
#define RDM_UNREF | ( | a | ) | ((void) a) |
- Examples
- core01Example_main.c, core14Example_main.c, core15Example_main.c, core16Example_main.c, core17Example_main.c, core18Example_main.c, core19Example_main.c, core31Example_main.c, core32Example_main.c, core33Example_main.c, core34Example_main.c, core35Example_main.c, cpp01Example_main.cpp, cpp35Example_main.cpp, learn/bookStore_embed.c, learn/bookStore_vxWorks7.c, and odbc01Example_main.c.
RDM_UNSET
#define RDM_UNSET | ( | a | ) | = a |
Enumeration Type Documentation
RDM_BOOL_T
enum RDM_BOOL_T |
RDM_COMPARE
enum RDM_COMPARE |