mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ba3088c4bd
into separate patch files
94 lines
3.0 KiB
Diff
94 lines
3.0 KiB
Diff
*** stock_iot-lab_M3/openwsn/02a-MAClow/IEEE802154.h Thu Apr 24 11:01:36 2014
|
|
--- riot-openwsn-wip/openwsn/02a-MAClow/IEEE802154.h Thu Apr 24 16:55:54 2014
|
|
***************
|
|
*** 2,8 ****
|
|
#define __IEEE802154_H
|
|
|
|
/**
|
|
! \addtogroup helpers
|
|
\{
|
|
\addtogroup IEEE802154
|
|
\{
|
|
--- 2,8 ----
|
|
#define __IEEE802154_H
|
|
|
|
/**
|
|
! \addtogroup MAClow
|
|
\{
|
|
\addtogroup IEEE802154
|
|
\{
|
|
***************
|
|
*** 18,27 ****
|
|
--- 18,36 ----
|
|
IEEE154_FCF_FRAME_PENDING = 4,
|
|
IEEE154_FCF_ACK_REQ = 5,
|
|
IEEE154_FCF_INTRAPAN = 6,
|
|
+ IEEE154_FCF_IELIST_PRESENT = 1,
|
|
IEEE154_FCF_DEST_ADDR_MODE = 2,
|
|
+ IEEE154_FCF_FRAME_VERSION = 4,
|
|
IEEE154_FCF_SRC_ADDR_MODE = 6,
|
|
};
|
|
|
|
+
|
|
+ enum IEEE802154_fcf_frameversion_enums {
|
|
+ IEEE154_FRAMEVERSION_2003 = 0, //ieee154-2003
|
|
+ IEEE154_FRAMEVERSION_2006 = 1, //ieee154-2006
|
|
+ IEEE154_FRAMEVERSION = 2, //ieee154
|
|
+ };
|
|
+
|
|
enum IEEE802154_fcf_type_enums {
|
|
IEEE154_TYPE_BEACON = 0,
|
|
IEEE154_TYPE_DATA = 1,
|
|
***************
|
|
*** 35,40 ****
|
|
--- 44,54 ----
|
|
IEEE154_SEC_YES_SECURITY = 1,
|
|
};
|
|
|
|
+ enum IEEE802154_fcf_ielist_enums {
|
|
+ IEEE154_IELIST_NO = 0,
|
|
+ IEEE154_IELIST_YES = 1,
|
|
+ };
|
|
+
|
|
enum IEEE802154_fcf_pending_enums {
|
|
IEEE154_PENDING_NO_FRAMEPENDING = 0,
|
|
IEEE154_PENDING_YES_FRAMEPENDING = 1,
|
|
***************
|
|
*** 66,71 ****
|
|
--- 80,87 ----
|
|
bool framePending;
|
|
bool ackRequested;
|
|
bool panIDCompression;
|
|
+ bool ieListPresent;
|
|
+ uint8_t frameVersion;
|
|
uint8_t dsn;
|
|
open_addr_t panid;
|
|
open_addr_t dest;
|
|
***************
|
|
*** 78,88 ****
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void ieee802154_prependHeader (OpenQueueEntry_t* msg,
|
|
! uint8_t frameType,
|
|
! bool securityEnabled,
|
|
! uint8_t sequenceNumber,
|
|
! open_addr_t* nextHop);
|
|
void ieee802154_retrieveHeader (OpenQueueEntry_t* msg,
|
|
ieee802154_header_iht* ieee802514_header);
|
|
|
|
--- 94,107 ----
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void ieee802154_prependHeader(OpenQueueEntry_t* msg,
|
|
! uint8_t frameType,
|
|
! uint8_t ielistpresent,
|
|
! uint8_t frameversion,
|
|
! bool securityEnabled,
|
|
! uint8_t sequenceNumber,
|
|
! open_addr_t* nextHop);
|
|
!
|
|
void ieee802154_retrieveHeader (OpenQueueEntry_t* msg,
|
|
ieee802154_header_iht* ieee802514_header);
|