summaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/canutil/write.h')
-rw-r--r--src/canutil/write.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/canutil/write.h b/src/canutil/write.h
index 85a5c1a0..1b086dbe 100644
--- a/src/canutil/write.h
+++ b/src/canutil/write.h
@@ -4,10 +4,18 @@
#include <stdint.h>
#include <stdbool.h>
-uint64_t encodeFloat(float value, float offset, float factor, uint8_t bitPosition,
- uint8_t bitSize);
+#ifdef __cplusplus
+extern "C" {
+#endif
-uint64_t encodeBoolean(bool value, float offset, float factor,
- uint8_t bitPosition, uint8_t bitSize);
+uint64_t encodeFloat(float value, uint8_t bitPosition, uint8_t bitSize,
+ float factor, float offset);
+
+uint64_t encodeBoolean(bool value, uint8_t bitPosition, uint8_t bitSize,
+ float factor, float offset);
+
+#ifdef __cplusplus
+}
+#endif
#endif // __WRITE_H__