diff options
Diffstat (limited to 'src/canutil/write.h')
-rw-r--r-- | src/canutil/write.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/canutil/write.h b/src/canutil/write.h new file mode 100644 index 00000000..85a5c1a0 --- /dev/null +++ b/src/canutil/write.h @@ -0,0 +1,13 @@ +#ifndef __WRITE_H__ +#define __WRITE_H__ + +#include <stdint.h> +#include <stdbool.h> + +uint64_t encodeFloat(float value, float offset, float factor, uint8_t bitPosition, + uint8_t bitSize); + +uint64_t encodeBoolean(bool value, float offset, float factor, + uint8_t bitPosition, uint8_t bitSize); + +#endif // __WRITE_H__ |