UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
I'm not using this code, but I happened to do a google search for 'p9813 xor' while double-checking my own header algorithm, and found a bug in yours. Because I'm not using this code, I'm going to be lazy and not fork/issue a pull request. (:
upm/src/p9813/p9813.c:135
I'm not using this code, but I happened to do a google search for 'p9813 xor' while double-checking my own header algorithm, and found a bug in yours. Because I'm not using this code, I'm going to be lazy and not fork/issue a pull request. (:
0xC0 isn't bits 2-3. You want 0x0C for the green field mask to get bits 2-3!