diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-24 12:00:20 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-24 12:00:20 -0500 |
commit | 39a420f13e8000e2dfa53777b9e51594ba03e5d4 (patch) | |
tree | 95d8a0975bf7016a71b64fea1162375a1b916985 /src/canutil/write.h | |
parent | bc1baf25a0844861713829c0e9e69e4a2d447cc6 (diff) |
Add test cases from vi-firmware.
Diffstat (limited to 'src/canutil/write.h')
-rw-r--r-- | src/canutil/write.h | 16 |
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__ |