Device interface library for multiple platforms including Mbed.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
Maxim Interface is a library framework focused on providing flexible and expressive hardware interfaces. Both communication interfaces such as I2C and 1-Wire and device interfaces such as DS18B20 are supported. Modern C++ concepts are used extensively while keeping compatibility with C++98/C++03 and requiring no external dependencies. The embedded-friendly design does not depend on exceptions or RTTI.
The full version of the project is hosted on GitLab: https://gitlab.com/iabenz/MaximInterface
Diff: MaximInterfaceCore/Crc.cpp
- Revision:
- 10:947d3f44e0a0
- Parent:
- 9:fa054cc51fdb
--- a/MaximInterfaceCore/Crc.cpp Fri Sep 27 16:19:38 2019 -0500 +++ b/MaximInterfaceCore/Crc.cpp Mon Sep 30 09:39:32 2019 -0500 @@ -61,7 +61,7 @@ uint_fast16_t data16 = (data ^ crc) & 0xFF; crc = (crc >> 8) & 0xFF; if (oddparity[data16 & 0xF] ^ oddparity[data16 >> 4]) { - crc ^= 0xC001u; + crc ^= 0xC001; } data16 <<= 6; crc ^= data16;