1 CAN Message Utilities for C
4 ## Bitfield Manipulation
10 The library supports parsing floating point CAN signals as well as booleans.
12 uint64_t payload = 0xeb00000000000000;
13 float result = bitfield_parse_float(payload,
15 4, // width of the signal's field
16 1001.0, // transformation factor for the signal value
17 -30000.0); // transformation offset for the signal value
20 bool result = bitfield_parse_bool(payload,
22 1, // width of the signal's field
23 1.0, // transformation factor for the signal value
24 0); // transformation offset for the signal value
29 The library includes a test suite that uses the `check` C unit test library.
35 Chris Peplin cpeplin@ford.com
39 Copyright (c) 2013 Ford Motor Company
41 Licensed under the BSD license.