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

Revision:
10:947d3f44e0a0
Parent:
8:5ea891c7d1a1
Child:
11:3f3bf6bf5e6c
--- a/MaximInterfaceDevices/DS28E15_22_25.cpp	Fri Sep 27 16:19:38 2019 -0500
+++ b/MaximInterfaceDevices/DS28E15_22_25.cpp	Mon Sep 30 09:39:32 2019 -0500
@@ -59,7 +59,7 @@
   uint_least8_t response[2];
   TRY_VALUE(response[0], master.readByte());
   TRY_VALUE(response[1], master.readByteSetLevel(level));
-  if (calculateCrc16(calculateCrc16(crcStart, data), response) != 0xB001u) {
+  if (calculateCrc16(calculateCrc16(crcStart, data), response) != 0xB001) {
     return DS28E15_22_25::CrcError;
   }
   return none;
@@ -96,7 +96,7 @@
   if (!result) {
     return result;
   }
-  if (calculateCrc16(calculateCrc16(data), response) != 0xB001u) {
+  if (calculateCrc16(calculateCrc16(data), response) != 0xB001) {
     result = DS28E15_22_25::CrcError;
   }
   return result;