Layer 2 Aloha packet
Revision 3:9bc861001717, committed 2016-08-11
- 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 |
diff -r 849128cfddb8 -r 9bc861001717 AlohaFrame.cpp --- 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() {
diff -r 849128cfddb8 -r 9bc861001717 AlohaFrame.h --- 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