|
#define | STACK_BASE &STACK$$Base |
|
#define | STACK_TOP ((void*)((uint32_t)STACK_BASE + (uint32_t)&STACK$$Length)) |
|
#define | STRING_CONCATENATE_IMPL(lhs, rhs) lhs ## rhs |
| Implementation specific macro for delayed macro expansion used in string concatenation. More...
|
|
#define | STRING_CONCATENATE(lhs, rhs) STRING_CONCATENATE_IMPL(lhs, rhs) |
| Macro used to concatenate string using delayed macro expansion. More...
|
|
#define | STATIC_ASSERT_MSG(EXPR, MSG) ;enum { STRING_CONCATENATE(MSG, __LINE__) = 1 / (!!(EXPR)) } |
| Macro for doing static (i.e. compile time) assertion. More...
|
|
#define | STATIC_ASSERT(EXPR) STATIC_ASSERT_MSG((EXPR), static_assert_) |
| Macro for doing static (i.e. compile time) assertion. More...
|
|
#define | NUM_VA_ARGS_IMPL(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10,_11, _12, _13, _14, _15, _16, _17, _18, _19, _20,_21, _22, _23, _24, _25, _26, _27, _28, _29, _30,_31, _32, _33, _34, _35, _36, _37, _38, _39, _40,_41, _42, _43, _44, _45, _46, _47, _48, _49, _50,_51, _52, _53, _54, _55, _56, _57, _58, _59, _60,_61, _62, N,...) N |
| Implementation details for NUM_VAR_ARGS.
|
|
#define | NUM_VA_ARGS(...) |
| Macro to get the number of arguments in a call variadic macro call. More...
|
|
#define | NUM_VA_ARGS_LESS_1_IMPL(_ignored,_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10,_11, _12, _13, _14, _15, _16, _17, _18, _19, _20,_21, _22, _23, _24, _25, _26, _27, _28, _29, _30,_31, _32, _33, _34, _35, _36, _37, _38, _39, _40,_41, _42, _43, _44, _45, _46, _47, _48, _49, _50,_51, _52, _53, _54, _55, _56, _57, _58, _59, _60,_61, _62, N,...) N |
| Implementation details for NUM_VAR_ARGS.
|
|
#define | NUM_VA_ARGS_LESS_1(...) |
| Macro to get the number of arguments in a call variadic macro call. First argument is not counted. More...
|
|
#define | ROUNDED_DIV(A, B) (((A) + ((B) / 2)) / (B)) |
| Macro for performing rounded integer division (as opposed to truncating the result). More...
|
|
#define | IS_POWER_OF_TWO(A) ( ((A) != 0) && ((((A) - 1) & (A)) == 0) ) |
| Macro for checking if an integer is a power of two. More...
|
|
#define | MSEC_TO_UNITS(TIME, RESOLUTION) (((TIME) * 1000) / (RESOLUTION)) |
| Macro for converting milliseconds to ticks. More...
|
|
#define | CEIL_DIV(A, B) (((A) + (B) - 1) / (B)) |
| Macro for performing integer division, making sure the result is rounded up. More...
|
|
#define | WORD_ALIGNED_MEM_BUFF(NAME, MIN_SIZE) static uint32_t NAME[CEIL_DIV(MIN_SIZE, sizeof(uint32_t))] |
| Macro for creating a buffer aligned to 4 bytes. More...
|
|
#define | BYTES_TO_WORDS(n_bytes) (((n_bytes) + 3) >> 2) |
| Macro for calculating the number of words that are needed to hold a number of bytes. More...
|
|
#define | BYTES_PER_WORD (4) |
| The number of bytes in a word.
|
|
#define | ALIGN_NUM(alignment, number) ((number - 1) + alignment - ((number - 1) % alignment)) |
| Macro for increasing a number to the nearest (larger) multiple of another number. More...
|
|
#define | GET_ARG_1(a1, a2) a1 |
| Macro for getting first of 2 parameters. More...
|
|
#define | GET_ARG_2(a1, a2) a2 |
| Macro for getting second of 2 parameters. More...
|
|
#define | CONTAINER_OF(ptr, type, member) (type *)((char *)ptr - offsetof(type, member)) |
| Container of macro (borrowed from Linux kernel). More...
|
|
#define | BF_MASK(bcnt, boff) ( ((1U << (bcnt)) - 1U) << (boff) ) |
| Define Bit-field mask. More...
|
|
#define | BF_GET(val, bcnt, boff) ( ( (val) & BF_MASK((bcnt), (boff)) ) >> (boff) ) |
| Get bit-field. More...
|
|
#define | BF_VAL(val, bcnt, boff) ( (((uint32_t)(val)) << (boff)) & BF_MASK(bcnt, boff) ) |
| Create bit-field value. More...
|
|
#define | BF_CX(bcnt, boff) ( ((((uint32_t)(bcnt)) << BF_CX_BCNT_POS) & BF_CX_BCNT_MASK) | ((((uint32_t)(boff)) << BF_CX_BOFF_POS) & BF_CX_BOFF_MASK) ) |
| Define complex bit-field. More...
|
|
#define | BF_CX_BCNT(bf_cx) ( ((bf_cx) & BF_CX_BCNT_MASK) >> BF_CX_BCNT_POS ) |
| Get number of bits in bit-field. More...
|
|
#define | BF_CX_BOFF(bf_cx) ( ((bf_cx) & BF_CX_BOFF_MASK) >> BF_CX_BOFF_POS ) |
| Get lowest bit number in the field. More...
|
|
#define | BF_CX_MASK(bf_cx) BF_MASK(BF_CX_BCNT(bf_cx), BF_CX_BOFF(bf_cx)) |
| Get bit mask of the selected field. More...
|
|
#define | BF_CX_GET(val, bf_cx) BF_GET(val, BF_CX_BCNT(bf_cx), BF_CX_BOFF(bf_cx)) |
| Get bit-field. More...
|
|
#define | BF_CX_VAL(val, bf_cx) BF_VAL(val, BF_CX_BCNT(bf_cx), BF_CX_BOFF(bf_cx)) |
| Create bit-field value. More...
|
|
#define | BRACKET_EXTRACT(a) BRACKET_EXTRACT_(a) |
| Extracting data from the brackets. More...
|
|
#define | BRACKET_EXTRACT_(a) BRACKET_EXTRACT__ a |
|
#define | BRACKET_EXTRACT__(...) __VA_ARGS__ |
|
#define | NUM_VA_ARGS_IS_MORE_THAN_1(...) NUM_IS_MORE_THAN_1(NUM_VA_ARGS(__VA_ARGS__)) |
| Check if number of parameters is more than 1. More...
|
|
#define | NUM_IS_MORE_THAN_1(N) NUM_IS_MORE_THAN_1_(N) |
| Check if given numeric value is bigger than 1. More...
|
|
#define | NUM_IS_MORE_THAN_1_(N) NUM_IS_MORE_THAN_1_PROBE_(NUM_IS_MORE_THAN_1_PROBE_ ## N, 1) |
|
#define | NUM_IS_MORE_THAN_1_PROBE_(...) GET_VA_ARG_1(GET_ARGS_AFTER_1(__VA_ARGS__)) |
|
#define | NUM_IS_MORE_THAN_1_PROBE_0 ~, 0 |
|
#define | NUM_IS_MORE_THAN_1_PROBE_1 ~, 0 |
|
#define | GET_VA_ARG_1(...) GET_VA_ARG_1_(__VA_ARGS__, ) |
| Get the first argument. More...
|
|
#define | GET_VA_ARG_1_(a1,...) a1 |
|
#define | GET_ARGS_AFTER_1(...) GET_ARGS_AFTER_1_(__VA_ARGS__, ) |
| Get all the arguments but the first one. More...
|
|
#define | GET_ARGS_AFTER_1_(a1,...) __VA_ARGS__ |
|
#define | FIELD_SIZE(struct_type, field) sizeof(((struct struct_type*)NULL)->field) |
| Size of a field in declared structure. More...
|
|
#define | FIELD_ARRAY_SIZE(struct_type, field) (FIELD_SIZE(struct_type, field) / FIELD_SIZE(struct_type, field[0])) |
| Number of elements in field array in declared structure. More...
|
|
#define | MACRO_MAP(...) MACRO_MAP_(__VA_ARGS__) |
| Mapping macro. More...
|
|
#define | MACRO_MAP_(...) MACRO_MAP_N(NUM_VA_ARGS_LESS_1(__VA_ARGS__), __VA_ARGS__) |
|
#define | MACRO_MAP_REC(...) MACRO_MAP_REC_(__VA_ARGS__) |
| Mapping macro, recursive version. More...
|
|
#define | MACRO_MAP_REC_(...) MACRO_MAP_REC_N(NUM_VA_ARGS_LESS_1(__VA_ARGS__), __VA_ARGS__) |
|
#define | MACRO_MAP_N(N,...) MACRO_MAP_N_(N, __VA_ARGS__) |
| Mapping N arguments macro. More...
|
|
#define | MACRO_MAP_N_(N,...) CONCAT_2(MACRO_MAP_, N)(__VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_N(N,...) MACRO_MAP_REC_N_(N, __VA_ARGS__) |
| Mapping N arguments macro, recursive version. More...
|
|
#define | MACRO_MAP_REC_N_(N,...) CONCAT_2(MACRO_MAP_REC_, N)(__VA_ARGS__, ) |
|
#define | MACRO_MAP_0(...) |
|
#define | MACRO_MAP_1(macro, a,...) macro(a) |
|
#define | MACRO_MAP_2(macro, a,...) macro(a) MACRO_MAP_1 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_3(macro, a,...) macro(a) MACRO_MAP_2 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_4(macro, a,...) macro(a) MACRO_MAP_3 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_5(macro, a,...) macro(a) MACRO_MAP_4 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_6(macro, a,...) macro(a) MACRO_MAP_5 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_7(macro, a,...) macro(a) MACRO_MAP_6 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_8(macro, a,...) macro(a) MACRO_MAP_7 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_9(macro, a,...) macro(a) MACRO_MAP_8 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_10(macro, a,...) macro(a) MACRO_MAP_9 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_11(macro, a,...) macro(a) MACRO_MAP_10(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_12(macro, a,...) macro(a) MACRO_MAP_11(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_13(macro, a,...) macro(a) MACRO_MAP_12(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_14(macro, a,...) macro(a) MACRO_MAP_13(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_15(macro, a,...) macro(a) MACRO_MAP_14(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_0(...) |
|
#define | MACRO_MAP_REC_1(macro, a,...) macro(a) |
|
#define | MACRO_MAP_REC_2(macro, a,...) macro(a) MACRO_MAP_REC_1 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_3(macro, a,...) macro(a) MACRO_MAP_REC_2 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_4(macro, a,...) macro(a) MACRO_MAP_REC_3 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_5(macro, a,...) macro(a) MACRO_MAP_REC_4 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_6(macro, a,...) macro(a) MACRO_MAP_REC_5 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_7(macro, a,...) macro(a) MACRO_MAP_REC_6 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_8(macro, a,...) macro(a) MACRO_MAP_REC_7 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_9(macro, a,...) macro(a) MACRO_MAP_REC_8 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_10(macro, a,...) macro(a) MACRO_MAP_REC_9 (macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_11(macro, a,...) macro(a) MACRO_MAP_REC_10(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_12(macro, a,...) macro(a) MACRO_MAP_REC_11(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_13(macro, a,...) macro(a) MACRO_MAP_REC_12(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_14(macro, a,...) macro(a) MACRO_MAP_REC_13(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_REC_15(macro, a,...) macro(a) MACRO_MAP_REC_14(macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR(...) MACRO_MAP_FOR_(__VA_ARGS__) |
| Mapping macro with current index. More...
|
|
#define | MACRO_MAP_FOR_N_LIST 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 |
|
#define | MACRO_MAP_FOR_(...) MACRO_MAP_FOR_N(NUM_VA_ARGS_LESS_1(__VA_ARGS__), __VA_ARGS__) |
|
#define | MACRO_MAP_FOR_N(N,...) MACRO_MAP_FOR_N_(N, __VA_ARGS__) |
| Mapping N arguments macro with current index. More...
|
|
#define | MACRO_MAP_FOR_N_(N,...) CONCAT_2(MACRO_MAP_FOR_, N)((MACRO_MAP_FOR_N_LIST), __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_0(n_list,...) |
|
#define | MACRO_MAP_FOR_1(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) |
|
#define | MACRO_MAP_FOR_2(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_1 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_3(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_2 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_4(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_3 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_5(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_4 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_6(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_5 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_7(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_6 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_8(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_7 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_9(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_8 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_10(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_9 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_11(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_10((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_12(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_11((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_13(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_12((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_14(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_13((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_15(n_list, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list))) MACRO_MAP_FOR_14((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM(param,...) MACRO_MAP_FOR_PARAM_(param, __VA_ARGS__) |
| Mapping macro with current index and parameter. More...
|
|
#define | MACRO_MAP_FOR_PARAM_(param,...) MACRO_MAP_FOR_PARAM_N(NUM_VA_ARGS_LESS_1(__VA_ARGS__), param, __VA_ARGS__) |
|
#define | MACRO_MAP_FOR_PARAM_N(N, param,...) MACRO_MAP_FOR_PARAM_N_(N, param, __VA_ARGS__) |
| Mapping N arguments macro with with current index and parameter. More...
|
|
#define | MACRO_MAP_FOR_PARAM_N_(N, param,...) CONCAT_2(MACRO_MAP_FOR_PARAM_, N)((MACRO_MAP_FOR_N_LIST), param, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_0(n_list, param,...) |
|
#define | MACRO_MAP_FOR_PARAM_1(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) |
|
#define | MACRO_MAP_FOR_PARAM_2(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_1 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_3(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_2 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_4(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_3 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_5(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_4 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_6(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_5 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_7(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_6 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_8(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_7 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_9(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_8 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_10(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_9 ((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_11(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_10((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_12(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_11((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_13(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_12((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_14(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_13((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | MACRO_MAP_FOR_PARAM_15(n_list, param, macro, a,...) macro(a, GET_VA_ARG_1(BRACKET_EXTRACT(n_list)), param) MACRO_MAP_FOR_PARAM_14((GET_ARGS_AFTER_1(BRACKET_EXTRACT(n_list))), param, macro, __VA_ARGS__, ) |
|
#define | PARAM_CBRACE(p) { p }, |
| Adding curly brace to macro parameter. More...
|
|
|
static __INLINE uint64_t | value_rescale (uint32_t value, uint32_t old_unit_reversal, uint16_t new_unit_reversal) |
| Function for changing the value unit. More...
|
|
static __INLINE uint8_t | uint16_encode (uint16_t value, uint8_t *p_encoded_data) |
| Function for encoding a uint16 value. More...
|
|
static __INLINE uint8_t | uint24_encode (uint32_t value, uint8_t *p_encoded_data) |
| Function for encoding a three-byte value. More...
|
|
static __INLINE uint8_t | uint32_encode (uint32_t value, uint8_t *p_encoded_data) |
| Function for encoding a uint32 value. More...
|
|
static __INLINE uint8_t | uint48_encode (uint64_t value, uint8_t *p_encoded_data) |
| Function for encoding a uint48 value. More...
|
|
static __INLINE uint16_t | uint16_decode (const uint8_t *p_encoded_data) |
| Function for decoding a uint16 value. More...
|
|
static __INLINE uint16_t | uint16_big_decode (const uint8_t *p_encoded_data) |
| Function for decoding a uint16 value in big-endian format. More...
|
|
static __INLINE uint32_t | uint24_decode (const uint8_t *p_encoded_data) |
| Function for decoding a three-byte value. More...
|
|
static __INLINE uint32_t | uint32_decode (const uint8_t *p_encoded_data) |
| Function for decoding a uint32 value. More...
|
|
static __INLINE uint32_t | uint32_big_decode (const uint8_t *p_encoded_data) |
| Function for decoding a uint32 value in big-endian format. More...
|
|
static __INLINE uint8_t | uint16_big_encode (uint16_t value, uint8_t *p_encoded_data) |
| Function for encoding an uint16 value in big-endian format. More...
|
|
static __INLINE uint8_t | uint32_big_encode (uint32_t value, uint8_t *p_encoded_data) |
| Function for encoding a uint32 value in big-endian format. More...
|
|
static __INLINE uint64_t | uint48_decode (const uint8_t *p_encoded_data) |
| Function for decoding a uint48 value. More...
|
|
static __INLINE uint8_t | battery_level_in_percent (const uint16_t mvolts) |
| Function for converting the input voltage (in milli volts) into percentage of 3.0 Volts. More...
|
|
static __INLINE bool | is_word_aligned (void const *p) |
| Function for checking if a pointer value is aligned to a 4 byte boundary. More...
|
|
static __INLINE bool | is_address_from_stack (void *ptr) |
| Function for checking if provided address is located in stack space. More...
|
|
static __INLINE uint8_t | bds_uint16_encode (const uint16_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a uint16 value. More...
|
|
static __INLINE uint8_t | bds_int16_encode (const int16_t *p_value, uint8_t *p_encoded_data) |
|
static __INLINE uint8_t | bds_uint24_encode (const uint32_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a uint24 value. More...
|
|
static __INLINE uint8_t | bds_uint32_encode (const uint32_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a uint32 value. More...
|
|
static __INLINE uint8_t | bds_uint40_encode (const uint64_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a uint40 value. More...
|
|
static __INLINE uint8_t | bds_sfloat_encode (const sfloat_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a sfloat value. More...
|
|
static __INLINE uint8_t | bds_uint8_array_encode (const uint8_array_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a uint8_array value. More...
|
|
static __INLINE uint8_t | bds_ble_srv_utf8_str_encode (const ble_srv_utf8_str_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a utf8_str value. More...
|
|
static __INLINE uint8_t | bds_regcertdatalist_encode (const regcertdatalist_t *p_value, uint8_t *p_encoded_data) |
| Function for encoding a regcertdatalist value. More...
|
|
static __INLINE uint8_t | bds_ble_date_time_encode (const ble_date_time_t *p_date_time, uint8_t *p_encoded_data) |
| Function for decoding a date_time value. More...
|
|
static __INLINE uint8_t | bds_uint16_decode (const uint8_t len, const uint8_t *p_encoded_data, uint16_t *p_decoded_val) |
| Function for decoding a uint16 value. More...
|
|
static __INLINE uint8_t | bds_int16_decode (const uint8_t len, const uint8_t *p_encoded_data, int16_t *p_decoded_val) |
| Function for decoding a int16 value. More...
|
|
static __INLINE uint8_t | bds_uint24_decode (const uint8_t len, const uint8_t *p_encoded_data, uint32_t *p_decoded_val) |
| Function for decoding a uint24 value. More...
|
|
static __INLINE uint8_t | bds_uint32_decode (const uint8_t len, const uint8_t *p_encoded_data, uint32_t *p_decoded_val) |
| Function for decoding a uint32 value. More...
|
|
static __INLINE uint8_t | bds_uint40_decode (const uint8_t len, const uint8_t *p_encoded_data, uint64_t *p_decoded_val) |
| Function for decoding a uint40 value. More...
|
|
static __INLINE uint8_t | bds_sfloat_decode (const uint8_t len, const uint8_t *p_encoded_data, sfloat_t *p_decoded_val) |
| Function for decoding a sfloat value. More...
|
|
static __INLINE uint8_t | bds_uint8_array_decode (const uint8_t len, const uint8_t *p_encoded_data, uint8_array_t *p_decoded_val) |
| Function for decoding a uint8_array value. More...
|
|
static __INLINE uint8_t | bds_ble_srv_utf8_str_decode (const uint8_t len, const uint8_t *p_encoded_data, ble_srv_utf8_str_t *p_decoded_val) |
| Function for decoding a utf8_str value. More...
|
|
static __INLINE uint8_t | bds_regcertdatalist_decode (const uint8_t len, const uint8_t *p_encoded_data, regcertdatalist_t *p_decoded_val) |
| Function for decoding a regcertdatalist value. More...
|
|
static __INLINE uint8_t | bds_ble_date_time_decode (const uint8_t len, const uint8_t *p_encoded_data, ble_date_time_t *p_date_time) |
| Function for decoding a date_time value. More...
|
|
Various types and definitions available to all applications.