11 /* Public: Parse a CAN signal from a message and apply required transformation.
13 * signal - The details of the signal to decode and forward.
14 * data - The raw bytes of the CAN message that contains the signal, assumed
15 * to be in big-endian byte order from CAN.
17 * Returns the final, transformed value of the signal.
19 float bitfield_parse_float(uint64_t data, uint8_t bit_offset, uint8_t bit_size,
20 float factor, float offset);
22 /* Public: Parse a CAN signal from a message and interpret it as a boolean.
24 * signal - The details of the signal to decode and forward.
25 * data - The raw bytes of the CAN message that contains the signal, assumed
26 * to be in big-endian byte order from CAN.
28 * Returns false if the value was 0, otherwise true.
30 bool bitfield_parse_bool(uint64_t data, uint8_t bit_offset, uint8_t bit_size,
31 float factor, float offset);