APP 4

Dependencies:   mbed CRC16 mbed-rtos

Committer:
manl2003
Date:
Mon Feb 22 18:24:53 2016 +0000
Revision:
16:cf433716f8d6
Parent:
14:9505b98c6623
Child:
20:f0932bfe09ed
'ti fix de Meuf

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();
manl2003 10:51ee22e230c7 20
manl2003 10:51ee22e230c7 21
manl2003 10:51ee22e230c7 22 STATES state;
manl2003 12:715af3660c73 23 bitset<16> m_InputBuffer;
manl2003 12:715af3660c73 24 bitset<MAX_DATA> m_BSPayload;
manl2003 12:715af3660c73 25 char m_CPayload[80];
manl2003 10:51ee22e230c7 26 int m_Counter;
manl2003 10:51ee22e230c7 27 int m_DataSize;
manl2003 12:715af3660c73 28 unsigned short m_CRC;
manl2003 10:51ee22e230c7 29 };