uwb-core DPL (Decawave Porting Layer) types More...
uwb-core DPL (Decawave Porting Layer) types
Definition in file dpl_types.h.
Go to the source code of this file.
Macros | |
#define | M_PI 3.1415926535 |
PI approximated value macro definition. | |
Typedefs | |
typedef os_time_t | dpl_time_t |
dpl time type | |
typedef os_stack_t | dpl_stack_t |
dpl stack buffer type | |
typedef float | dpl_float32_t |
dpl float 32 type | |
typedef double | dpl_float64_t |
dpl float 64 type | |
Macro to wait forever on events and mutexes | |
#define | DPL_TIMEOUT_NEVER (OS_TIMEOUT_NEVER) |
#define | DPL_WAIT_FOREVER (OS_WAIT_FOREVER) |
Decawave porting layer (DPL) stack alignment requirement | |
#define | DPL_STACK_ALIGNMENT (OS_ALIGNMENT) |
Decawave porting layer (DPL) float type macros | |
#define | DPL_FLOAT32_INIT(__X) ((float)__X) |
#define | DPL_FLOAT64_INIT(__X) ((double)__X) |
#define | DPL_FLOAT64TO32(__X) (float)(__X) |
#define | DPL_FLOAT32_I32_TO_F32(__X) (float)(__X) |
#define | DPL_FLOAT64_I32_TO_F64(__X) ((double)(__X)) |
#define | DPL_FLOAT64_I64_TO_F64(__X) ((double)(__X)) |
#define | DPL_FLOAT64_U64_TO_F64(__X) ((double)(__X)) |
#define | DPL_FLOAT64_F64_TO_U64(__X) ((uint64_t)(__X)) |
#define | DPL_FLOAT32_INT(__X) ((int32_t)__X) |
#define | DPL_FLOAT64_INT(__X) ((int64_t)__X) |
#define | DPL_FLOAT64_FROM_F32(__X) (double)(__X) |
#define | DPL_FLOAT32_FROM_F64(__X) (float)(__X) |
#define | DPL_FLOAT32_CEIL(__X) (ceilf(__X)) |
#define | DPL_FLOAT64_CEIL(__X) (ceil(__X)) |
#define | DPL_FLOAT32_FABS(__X) fabsf(__X) |
#define | DPL_FLOAT32_FMOD(__X, __Y) fmodf(__X, __Y) |
#define | DPL_FLOAT64_FMOD(__X, __Y) fmod(__X, __Y) |
#define | DPL_FLOAT32_NAN() nanf("") |
#define | DPL_FLOAT64_NAN() nan("") |
#define | DPL_FLOAT32_ISNAN(__X) isnan(__X) |
#define | DPL_FLOAT64_ISNAN(__X) DPL_FLOAT32_ISNAN(__X) |
#define | DPL_FLOAT32_LOG10(__X) (log10f(__X)) |
#define | DPL_FLOAT64_LOG10(__X) (log10(__X)) |
#define | DPL_FLOAT64_ASIN(__X) asin(__X) |
#define | DPL_FLOAT64_ATAN(__X) atan(__X) |
#define | DPL_FLOAT32_SUB(__X, __Y) ((__X)-(__Y)) |
#define | DPL_FLOAT64_SUB(__X, __Y) ((__X)-(__Y)) |
#define | DPL_FLOAT32_ADD(__X, __Y) ((__X)+(__Y)) |
#define | DPL_FLOAT64_ADD(__X, __Y) ((__X)+(__Y)) |
#define | DPL_FLOAT32_MUL(__X, __Y) ((__X)*(__Y)) |
#define | DPL_FLOAT64_MUL(__X, __Y) ((__X)*(__Y)) |
#define | DPL_FLOAT32_DIV(__X, __Y) ((__X)/(__Y)) |
#define | DPL_FLOAT64_DIV(__X, __Y) ((__X)/(__Y)) |
#define | DPL_FLOAT32_PRINTF_PRIM "%s%d.%03d" |
#define | DPL_FLOAT32_PRINTF_VALS(__X) (__X)<0?"-":"", (int)(fabsf(__X)), (int)(fabsf((__X)-(int)(__X))*1000) |
#define | DPL_FLOAT64_PRINTF_PRIM "%s%d.%06d" |
#define | DPL_FLOAT64_PRINTF_VALS(__X) (__X)<0?"-":"", (int)(fabs(__X)), (int)(fabs((__X)-(int)(__X))*1000000) |
#define DPL_FLOAT32_ADD | ( | __X, | |
__Y | |||
) | ((__X)+(__Y)) |
Definition at line 104 of file dpl_types.h.
#define DPL_FLOAT32_CEIL | ( | __X | ) | (ceilf(__X)) |
Definition at line 89 of file dpl_types.h.
#define DPL_FLOAT32_DIV | ( | __X, | |
__Y | |||
) | ((__X)/(__Y)) |
Definition at line 108 of file dpl_types.h.
#define DPL_FLOAT32_FABS | ( | __X | ) | fabsf(__X) |
Definition at line 91 of file dpl_types.h.
#define DPL_FLOAT32_FMOD | ( | __X, | |
__Y | |||
) | fmodf(__X, __Y) |
Definition at line 92 of file dpl_types.h.
#define DPL_FLOAT32_FROM_F64 | ( | __X | ) | (float)(__X) |
Definition at line 88 of file dpl_types.h.
#define DPL_FLOAT32_I32_TO_F32 | ( | __X | ) | (float)(__X) |
Definition at line 80 of file dpl_types.h.
#define DPL_FLOAT32_INIT | ( | __X | ) | ((float)__X) |
Definition at line 77 of file dpl_types.h.
#define DPL_FLOAT32_INT | ( | __X | ) | ((int32_t)__X) |
Definition at line 85 of file dpl_types.h.
#define DPL_FLOAT32_ISNAN | ( | __X | ) | isnan(__X) |
Definition at line 96 of file dpl_types.h.
#define DPL_FLOAT32_LOG10 | ( | __X | ) | (log10f(__X)) |
Definition at line 98 of file dpl_types.h.
#define DPL_FLOAT32_MUL | ( | __X, | |
__Y | |||
) | ((__X)*(__Y)) |
Definition at line 106 of file dpl_types.h.
#define DPL_FLOAT32_NAN | ( | ) | nanf("") |
Definition at line 94 of file dpl_types.h.
#define DPL_FLOAT32_PRINTF_PRIM "%s%d.%03d" |
Definition at line 110 of file dpl_types.h.
#define DPL_FLOAT32_PRINTF_VALS | ( | __X | ) | (__X)<0?"-":"", (int)(fabsf(__X)), (int)(fabsf((__X)-(int)(__X))*1000) |
Definition at line 111 of file dpl_types.h.
#define DPL_FLOAT32_SUB | ( | __X, | |
__Y | |||
) | ((__X)-(__Y)) |
Definition at line 102 of file dpl_types.h.
#define DPL_FLOAT64_ADD | ( | __X, | |
__Y | |||
) | ((__X)+(__Y)) |
Definition at line 105 of file dpl_types.h.
#define DPL_FLOAT64_ASIN | ( | __X | ) | asin(__X) |
Definition at line 100 of file dpl_types.h.
#define DPL_FLOAT64_ATAN | ( | __X | ) | atan(__X) |
Definition at line 101 of file dpl_types.h.
#define DPL_FLOAT64_CEIL | ( | __X | ) | (ceil(__X)) |
Definition at line 90 of file dpl_types.h.
#define DPL_FLOAT64_DIV | ( | __X, | |
__Y | |||
) | ((__X)/(__Y)) |
Definition at line 109 of file dpl_types.h.
#define DPL_FLOAT64_F64_TO_U64 | ( | __X | ) | ((uint64_t)(__X)) |
Definition at line 84 of file dpl_types.h.
#define DPL_FLOAT64_FMOD | ( | __X, | |
__Y | |||
) | fmod(__X, __Y) |
Definition at line 93 of file dpl_types.h.
#define DPL_FLOAT64_FROM_F32 | ( | __X | ) | (double)(__X) |
Definition at line 87 of file dpl_types.h.
#define DPL_FLOAT64_I32_TO_F64 | ( | __X | ) | ((double)(__X)) |
Definition at line 81 of file dpl_types.h.
#define DPL_FLOAT64_I64_TO_F64 | ( | __X | ) | ((double)(__X)) |
Definition at line 82 of file dpl_types.h.
#define DPL_FLOAT64_INIT | ( | __X | ) | ((double)__X) |
Definition at line 78 of file dpl_types.h.
#define DPL_FLOAT64_INT | ( | __X | ) | ((int64_t)__X) |
Definition at line 86 of file dpl_types.h.
#define DPL_FLOAT64_ISNAN | ( | __X | ) | DPL_FLOAT32_ISNAN(__X) |
Definition at line 97 of file dpl_types.h.
#define DPL_FLOAT64_LOG10 | ( | __X | ) | (log10(__X)) |
Definition at line 99 of file dpl_types.h.
#define DPL_FLOAT64_MUL | ( | __X, | |
__Y | |||
) | ((__X)*(__Y)) |
Definition at line 107 of file dpl_types.h.
#define DPL_FLOAT64_NAN | ( | ) | nan("") |
Definition at line 95 of file dpl_types.h.
#define DPL_FLOAT64_PRINTF_PRIM "%s%d.%06d" |
Definition at line 112 of file dpl_types.h.
#define DPL_FLOAT64_PRINTF_VALS | ( | __X | ) | (__X)<0?"-":"", (int)(fabs(__X)), (int)(fabs((__X)-(int)(__X))*1000000) |
Definition at line 113 of file dpl_types.h.
#define DPL_FLOAT64_SUB | ( | __X, | |
__Y | |||
) | ((__X)-(__Y)) |
Definition at line 103 of file dpl_types.h.
#define DPL_FLOAT64_U64_TO_F64 | ( | __X | ) | ((double)(__X)) |
Definition at line 83 of file dpl_types.h.
#define DPL_FLOAT64TO32 | ( | __X | ) | (float)(__X) |
Definition at line 79 of file dpl_types.h.
#define DPL_STACK_ALIGNMENT (OS_ALIGNMENT) |
Definition at line 51 of file dpl_types.h.
#define DPL_TIMEOUT_NEVER (OS_TIMEOUT_NEVER) |
Definition at line 43 of file dpl_types.h.
#define DPL_WAIT_FOREVER (OS_WAIT_FOREVER) |
Definition at line 44 of file dpl_types.h.
#define M_PI 3.1415926535 |
PI approximated value macro definition.
Definition at line 36 of file dpl_types.h.
typedef float dpl_float32_t |
dpl float 32 type
Definition at line 67 of file dpl_types.h.
typedef double dpl_float64_t |
dpl float 64 type
Definition at line 71 of file dpl_types.h.
typedef os_stack_t dpl_stack_t |
dpl stack buffer type
Definition at line 62 of file dpl_types.h.
typedef os_time_t dpl_time_t |
dpl time type
Definition at line 57 of file dpl_types.h.