aboutsummaryrefslogtreecommitdiffstats
path: root/src/canutil/write.h
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-06 13:58:36 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-01-06 13:58:36 -0500
commiteab0c42eac865a7e965878a7f2ad548371bd34d5 (patch)
tree1dc8c6e55cb51830bd0ca5de09d277d5ad206c84 /src/canutil/write.h
parentcc2f44eeedac7d6e86005543c7e1596c3c78d551 (diff)
Standardize order of arguments - destination is always last.
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