@@ -1,6 +0,0 @@
-11001100110011001100110011001100110011001100110011001100110 (Preamble)
-10 01 01 10 10 01 01 10 (Sync)
-01 10 10 01 10 01 10 01 01 10 10 01 01 10 01 10 10 01 01 10 10 01 10 01 10 01 10 01 10 01 10 01 01 10 10 01 10 01 10 01 01 10 01 10 01 10 01 10 01 10 01 10 10 01 01 10 01 10 10 01 10 01 10 01 10 01 10 01 01 10 10 01 10 01 01 10 01 10 10 01 01 10 10 01 10 01 10 01 10 01 10 01 10 01 11 0
-
-We need to seek the following bytes: 01100110 01100110 10010110 10010110
- 0x66 0x66 96 96
@@ -5,7 +5,7 @@
* Then Manchester bits, 10 bytes total.
* Simple XOR checksum. */
-#include "../app.h"
+#include "../../app.h"
static bool decode(uint8_t *bits, uint32_t numbytes, uint32_t numbits, ProtoViewMsgInfo *info) {
@@ -8,7 +8,7 @@
* 10 = one
*/
@@ -3,7 +3,7 @@
* Preamble + sync + Manchester bits. ~48us short pulse.
* 9 Bytes in total not counting the preamble. */
#define USE_TEST_VECTOR 0
static const char *test_vector =
*
* Used in FIAT-Chrysler, Mercedes, ... */
static const char *test_vector = "000000111101010101011010010110010110101001010110100110011001100101010101011010100110100110011010101010101010101010101010101010101010101010101010";
@@ -13,7 +13,7 @@
* Used in certain Open cars and others.
@@ -22,7 +22,7 @@
* [0011111]01