APP 4

Dependencies:   mbed CRC16 mbed-rtos

Committer:
vinbel93
Date:
Tue Feb 23 00:22:49 2016 +0000
Revision:
20:f0932bfe09ed
Parent:
16:cf433716f8d6
Child:
21:137d010e7469
Child:
26:f2b37f9dfca9
final v1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
manl2003 10:51ee22e230c7 1 #include "APP.h"
manl2003 10:51ee22e230c7 2
manl2003 10:51ee22e230c7 3 #pragma once
manl2003 10:51ee22e230c7 4
manl2003 16:cf433716f8d6 5
manl2003 10:51ee22e230c7 6
manl2003 10:51ee22e230c7 7 class MEF
manl2003 10:51ee22e230c7 8 {
vinbel93 14:9505b98c6623 9 public:
vinbel93 14:9505b98c6623 10
manl2003 10:51ee22e230c7 11 void ReceiveBit(bool bit);
manl2003 10:51ee22e230c7 12
manl2003 10:51ee22e230c7 13 private:
manl2003 10:51ee22e230c7 14
manl2003 10:51ee22e230c7 15 bool startChecker();
manl2003 10:51ee22e230c7 16 bool preambleChecker();
manl2003 10:51ee22e230c7 17 int calculateSize();
manl2003 12:715af3660c73 18 bool compareCRC();
manl2003 12:715af3660c73 19 void error();
vinbel93 20:f0932bfe09ed 20 void init();
manl2003 10:51ee22e230c7 21
manl2003 10:51ee22e230c7 22
manl2003 10:51ee22e230c7 23 STATES state;
manl2003 12:715af3660c73 24 bitset<16> m_InputBuffer;
manl2003 12:715af3660c73 25 bitset<MAX_DATA> m_BSPayload;
manl2003 12:715af3660c73 26 char m_CPayload[80];
manl2003 10:51ee22e230c7 27 int m_Counter;
manl2003 10:51ee22e230c7 28 int m_DataSize;
manl2003 12:715af3660c73 29 unsigned short m_CRC;
manl2003 10:51ee22e230c7 30 };