aboutsummaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/canutil/write.h')
-rw-r--r--src/canutil/write.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/canutil/write.h b/src/canutil/write.h
index 8fd18cdb..28b7e052 100644
--- a/src/canutil/write.h
+++ b/src/canutil/write.h
@@ -26,8 +26,9 @@ extern "C" {
uint64_t eightbyte_encode_float(float value, uint8_t bit_offset,
uint8_t bit_size, float factor, float offset);
-bool bitfield_encode_float(float value, uint8_t bit_offset,
- uint8_t bit_size, float factor, float offset, uint8_t destination[]);
+bool bitfield_encode_float(const float value, const uint8_t bit_offset,
+ const uint8_t bit_size, const float factor, const float offset,
+ uint8_t destination[], const uint8_t destination_length);
/* Public: Encode a boolean into fixed bit width field in a bit array.
*
@@ -42,6 +43,10 @@ bool bitfield_encode_float(float value, uint8_t bit_offset,
uint64_t eightbyte_encode_bool(const bool value, const uint8_t bit_offset,
const uint8_t bit_size);
+bool bitfield_encode_bool(const bool value, const uint8_t bit_offset, const
+ uint8_t bit_size, uint8_t destination[],
+ const uint16_t destination_length);
+
#ifdef __cplusplus
}
#endif