Layer 2 Aloha packet
Diff: AlohaFrame.h
- Revision:
- 1:b714fce6e23b
- Parent:
- 0:bd0c4fdc6833
- Child:
- 2:849128cfddb8
--- a/AlohaFrame.h Tue Jul 12 13:08:01 2016 +0000 +++ b/AlohaFrame.h Thu Jul 14 04:47:43 2016 +0000 @@ -6,12 +6,29 @@ #define MAX_FRAME_SZ 20 #define MAX_PAYLOAD_SZ 16 +#define ALOHA_MAX_TYPE 16 + class AlohaFrame { private: uint8_t _buffer[MAX_FRAME_SZ]; bool _isVerified; + +public: + typedef enum + { + Aloha_Join_Request = 0x0, + Aloha_Join_Accepted, + Aloha_Join_Denied, + Aloha_Authentication, + Aloha_Deauthentication, + Aloha_RTS, + Aloha_CTS, + Aloha_Data, + Aloha_ACK, + Aloha_NACK, + } AlohaType_t; public: AlohaFrame();