APP 4

Dependencies:   mbed CRC16 mbed-rtos

Committer:
vinbel93
Date:
Tue Feb 23 03:52:19 2016 +0000
Revision:
22:b855dbf3a8c1
Parent:
20:f0932bfe09ed
asdf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
manl2003 2:1250280a511b 1 #include "mbed.h"
manl2003 2:1250280a511b 2 #include "LPC17xx.h"
manl2003 4:272f227e4442 3 #include <bitset>
manl2003 4:272f227e4442 4
vinbel93 5:9f05591944ba 5 #pragma once
manl2003 2:1250280a511b 6
manl2003 2:1250280a511b 7 #define CLOCKS_TO_SECOND 96000000
vinbel93 20:f0932bfe09ed 8 #define FRAMESIZE 696
vinbel93 9:b937f9c6d682 9 #define MAX_DATA 640
vinbel93 6:3181f546e812 10
vinbel93 6:3181f546e812 11 using namespace std;
manl2003 12:715af3660c73 12
manl2003 16:cf433716f8d6 13 enum STATES
manl2003 16:cf433716f8d6 14 {
manl2003 16:cf433716f8d6 15 PREAMBLE = 0,
manl2003 16:cf433716f8d6 16 START = 1,
manl2003 16:cf433716f8d6 17 TYPE = 2,
manl2003 16:cf433716f8d6 18 LENGTH = 3,
manl2003 16:cf433716f8d6 19 DATA = 4,
manl2003 16:cf433716f8d6 20 CRC16STATE = 5,
vinbel93 19:41e914ab0d19 21 END = 6,
vinbel93 19:41e914ab0d19 22 BLU = 7
manl2003 16:cf433716f8d6 23 };
manl2003 16:cf433716f8d6 24
vinbel93 22:b855dbf3a8c1 25 void initTimers();
vinbel93 20:f0932bfe09ed 26 extern void _decodeCallback(bitset<MAX_DATA> decMessage, int size);
vinbel93 17:8d8c33bdcaf5 27 extern void _decodeError();
manl2003 16:cf433716f8d6 28 extern void _updateState(STATES state);
vinbel93 20:f0932bfe09ed 29 extern void _mefDebug(int blu);