diff options
author | 2014-01-03 23:45:40 -0500 | |
---|---|---|
committer | 2014-01-03 23:45:40 -0500 | |
commit | 6f3a81ed8287357b54aad16bff27495c6eaca6df (patch) | |
tree | fe043dcd9fa5d96895509c42d229840c29334043 /src/canutil/read.h | |
parent | 921b43ea8aaa377a42a11cede653165ec84d8aa4 (diff) |
Checkpoint commit renaming some functions for clarity.
Diffstat (limited to 'src/canutil/read.h')
-rw-r--r-- | src/canutil/read.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/canutil/read.h b/src/canutil/read.h index 865bb278..bf6c0ade 100644 --- a/src/canutil/read.h +++ b/src/canutil/read.h @@ -20,8 +20,12 @@ extern "C" { * * Returns the decoded and transformed value of the signal. */ -float bitfield_parse_float(uint64_t data, uint8_t bit_offset, uint8_t bit_size, - float factor, float offset); +float eightbyte_parse_float(const uint64_t data, const uint8_t bit_offset, + const uint8_t bit_size, const float factor, const float offset); + +float bitfield_parse_float(const uint8_t data[], const uint16_t size, + const uint8_t bit_offset, const uint8_t bit_size, const float factor, + const float offset); /* Public: Parse a CAN signal from a message and interpret it as a boolean. * @@ -35,7 +39,7 @@ float bitfield_parse_float(uint64_t data, uint8_t bit_offset, uint8_t bit_size, * * Returns false if the value was 0, otherwise true. */ -bool bitfield_parse_bool(uint64_t data, uint8_t bit_offset, uint8_t bit_size, +bool eightbyte_parse_bool(uint64_t data, uint8_t bit_offset, uint8_t bit_size, float factor, float offset); #ifdef __cplusplus |