Layer 2 Aloha packet

Dependents:   AlohaTransceiver

Files at this revision

API Documentation at this revision

Comitter:
rba90
Date:
Thu Aug 11 02:34:23 2016 +0000
Parent:
2:849128cfddb8
Commit message:
move some #define from .c to .h

Changed in this revision

AlohaFrame.cpp Show annotated file Show diff for this revision Revisions of this file
AlohaFrame.h Show annotated file Show diff for this revision Revisions of this file
--- a/AlohaFrame.cpp	Mon Aug 08 09:37:32 2016 +0000
+++ b/AlohaFrame.cpp	Thu Aug 11 02:34:23 2016 +0000
@@ -7,7 +7,6 @@
 #endif
 
 #define CRC_BASE_IDX 3
-#define FIXED_BYTE MAX_FRAME_SZ - MAX_PAYLOAD_SZ
 
 AlohaFrame::AlohaFrame()
 {
--- a/AlohaFrame.h	Mon Aug 08 09:37:32 2016 +0000
+++ b/AlohaFrame.h	Thu Aug 11 02:34:23 2016 +0000
@@ -5,7 +5,7 @@
 
 #define MAX_FRAME_SZ 20
 #define MAX_PAYLOAD_SZ 16
-
+#define FIXED_BYTE MAX_FRAME_SZ - MAX_PAYLOAD_SZ
 #define ALOHA_MAX_TYPE 16
 
 class AlohaFrame