Layer 3 PDU packet constructor class

Dependents:   LoRaBaseStation LoRaTerminal

Committer:
rba90
Date:
Thu Jun 30 09:14:54 2016 +0000
Revision:
2:f4f46b04ab8a
Parent:
0:f32c0e562e9a
Child:
5:dcf7271595af
Add unit test cases for each class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rba90 0:f32c0e562e9a 1 #ifndef DATABLOCKPACKET_H_
rba90 0:f32c0e562e9a 2 #define DATABLOCKPACKET_H_
rba90 0:f32c0e562e9a 3
rba90 0:f32c0e562e9a 4 #include "BasicPacket.h"
rba90 2:f4f46b04ab8a 5 class DataBlockPacket : public BasicPacket
rba90 0:f32c0e562e9a 6 {
rba90 0:f32c0e562e9a 7 public:
rba90 0:f32c0e562e9a 8 DataBlockPacket();
rba90 0:f32c0e562e9a 9 DataBlockPacket(uint8_t *data);
rba90 0:f32c0e562e9a 10 ~DataBlockPacket();
rba90 0:f32c0e562e9a 11
rba90 0:f32c0e562e9a 12 public:
rba90 0:f32c0e562e9a 13 void setBlockID(uint8_t bid);
rba90 0:f32c0e562e9a 14 void setDataBlock0(uint8_t b0);
rba90 0:f32c0e562e9a 15 void setDataBlock1(uint8_t b1);
rba90 0:f32c0e562e9a 16
rba90 0:f32c0e562e9a 17 uint8_t getBlockID();
rba90 0:f32c0e562e9a 18 uint8_t getDataBlock0();
rba90 0:f32c0e562e9a 19 uint8_t getDataBlock1();
rba90 2:f4f46b04ab8a 20
rba90 2:f4f46b04ab8a 21 #ifdef _DEBUG
rba90 2:f4f46b04ab8a 22 void unit_test();
rba90 2:f4f46b04ab8a 23 #endif
rba90 0:f32c0e562e9a 24 };
rba90 0:f32c0e562e9a 25
rba90 0:f32c0e562e9a 26 #endif