summaryrefslogtreecommitdiffstats
path: root/src/canutil/read.h
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 10:56:35 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 10:56:35 -0500
commitbc1baf25a0844861713829c0e9e69e4a2d447cc6 (patch)
tree37ad821656ffa979248f6154573f5cd9f30932a3 /src/canutil/read.h
Initial commit, pulled from openxc/vi-firmware.
Diffstat (limited to 'src/canutil/read.h')
-rw-r--r--src/canutil/read.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/canutil/read.h b/src/canutil/read.h
new file mode 100644
index 00000000..815f26b0
--- /dev/null
+++ b/src/canutil/read.h
@@ -0,0 +1,13 @@
+#ifndef __READ_H__
+#define __READ_H__
+
+#include <stdint.h>
+#include <stdbool.h>
+
+float parseFloat(uint64_t data, uint8_t bitPosition, uint8_t bitSize,
+ float factor, float offset);
+
+bool parseBoolean(uint64_t data, uint8_t bitPosition, uint8_t bitSize,
+ float factor, float offset);
+
+#endif // __READ_H__