Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LoRaBaseStation LoRaTerminal
Diff: BasicPacket/BasicPacket.h
- Revision:
- 5:dcf7271595af
- Parent:
- 2:f4f46b04ab8a
- Child:
- 6:7c719bcd3047
--- a/BasicPacket/BasicPacket.h Wed Jul 13 11:55:37 2016 +0000
+++ b/BasicPacket/BasicPacket.h Mon Aug 08 11:10:00 2016 +0000
@@ -9,7 +9,7 @@
// keep those private!
// inherit class should always use public method to access those private
// property
- uint8_t _buffer[4];
+ uint8_t _buffer[8];
// verify() function will toggle this variable
// any other modification to internal properties
@@ -34,14 +34,16 @@
public:
void setFid(uint8_t fid);
- void setField1(uint8_t field);
- void setField2(uint8_t field);
- void setField3(uint8_t field);
+ void setSequenceID(uint8_t seqid);
+ void setSourceID(uint8_t sid);
+ void setDestinationID(uint8_t did);
+ void setField(uint8_t idx, uint8_t data);
uint8_t getFid();
- uint8_t getField1();
- uint8_t getField2();
- uint8_t getField3();
+ uint8_t getSequenceID();
+ uint8_t getSourceID();
+ uint8_t getDestinationID();
+ uint8_t getField(uint8_t idx);
uint8_t getCrc();
#ifdef _DEBUG