knx
ETS configurable knx-stack
|
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | INVALID_DPT_FLOAT 2147483647U |
An invalid 2 uint8_t float (DPT9/EIS5). More... | |
Functions | |
uint16_t | dptToFloat (int32_t value) |
Convert a value from uint32_t to 2 uint8_t float (DPT9/EIS5). More... | |
int32_t | dptFromFloat (uint16_t dptValue) |
Convert a value from 2 uint8_t float (DPT9/EIS5) to integer. More... | |
#define INVALID_DPT_FLOAT 2147483647U |
An invalid 2 uint8_t float (DPT9/EIS5).
To be used for dptToFloat() and dptFromFloat().
Definition at line 18 of file datapoint_types.h.
int32_t dptFromFloat | ( | uint16_t | dptValue | ) |
Convert a value from 2 uint8_t float (DPT9/EIS5) to integer.
dptValue | - the 2 uint8_t float (DPT9/EIS5) to convert |
Definition at line 47 of file datapoint_types.cpp.
uint16_t dptToFloat | ( | int32_t | value | ) |
Convert a value from uint32_t to 2 uint8_t float (DPT9/EIS5).
The possible range of the values is -67108864 to 67076096.
value | - the value to convert. Use INVALID_DPT_FLOAT for the DPT9 "invalid data" value. |
Definition at line 18 of file datapoint_types.cpp.