diff options
Diffstat (limited to 'src/canutil/write.h')
-rw-r--r-- | src/canutil/write.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/canutil/write.h b/src/canutil/write.h index 28b7e052..c2bef20e 100644 --- a/src/canutil/write.h +++ b/src/canutil/write.h @@ -26,6 +26,9 @@ extern "C" { uint64_t eightbyte_encode_float(float value, uint8_t bit_offset, uint8_t bit_size, float factor, float offset); +uint64_t float_to_fixed_point(const float value, const float factor, + const float offset); + 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); |