p802_15_4mac.h File Reference

#include "p802_15_4pkt.h"
#include "p802_15_4phy.h"
#include "p802_15_4timer.h"
#include "p802_15_4hlist.h"
#include "p802_15_4transac.h"

Include dependency graph for p802_15_4mac.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Mac802_15_4
class  Mac802_15_4Handler
struct  MAC_ACL
struct  MAC_PIB
struct  PAN_ELE
struct  taskPending

Defines

#define macBackoffBoundType   3
#define macIFSHType   2
#define macTxBcnCmdDataHType   1
#define plme_set_trx_state_request(state)   set_trx_state_request(state,__FILE__,__FUNCTION__,__LINE__)
#define resetTRX()   reset_TRX(__FILE__,__FUNCTION__,__LINE__)
#define TP_CCA_csmaca   12
#define TP_mcps_data_request   1
#define TP_mlme_associate_request   2
#define TP_mlme_associate_response   3
#define TP_mlme_disassociate_request   4
#define TP_mlme_orphan_response   5
#define TP_mlme_poll_request   11
#define TP_mlme_reset_request   6
#define TP_mlme_rx_enable_request   7
#define TP_mlme_scan_request   8
#define TP_mlme_start_request   9
#define TP_mlme_sync_request   10
#define TP_RX_ON_csmaca   13
#define TxOp_Acked   0x01
#define TxOp_GTS   0x02
#define TxOp_Indirect   0x04
#define TxOp_SecEnabled   0x08

Enumerations

enum  MACenum {
  m_SUCCESS = 0, m_PAN_at_capacity, m_PAN_access_denied, m_BEACON_LOSS = 0xe0,
  m_CHANNEL_ACCESS_FAILURE, m_DENIED, m_DISABLE_TRX_FAILURE, m_FAILED_SECURITY_CHECK,
  m_FRAME_TOO_LONG, m_INVALID_GTS, m_INVALID_HANDLE, m_INVALID_PARAMETER,
  m_NO_ACK, m_NO_BEACON, m_NO_DATA, m_NO_SHORT_ADDRESS,
  m_OUT_OF_CAP, m_PAN_ID_CONFLICT, m_REALIGNMENT, m_TRANSACTION_EXPIRED,
  m_TRANSACTION_OVERFLOW, m_TX_ACTIVE, m_UNAVAILABLE_KEY, m_UNSUPPORTED_ATTRIBUTE,
  m_UNDEFINED
}
enum  MPIBAenum {
  macAckWaitDuration, macAssociationPermit, macAutoRequest, macBattLifeExt,
  macBattLifeExtPeriods, macBeaconPayload, macBeaconPayloadLength, macBeaconOrder,
  macBeaconTxTime, macBSN, macCoordExtendedAddress, macCoordShortAddress,
  macDSN, macGTSPermit, macMaxCSMABackoffs, macMinBE,
  macPANId, macPromiscuousMode, macRxOnWhenIdle, macShortAddress,
  macSuperframeOrder, macTransactionPersistenceTime, macACLEntryDescriptorSet, macACLEntryDescriptorSetSize,
  macDefaultSecurity, macACLDefaultSecurityMaterialLength, macDefaultSecurityMaterial, macDefaultSecuritySuite,
  macSecurityMode
}


Define Documentation

#define macBackoffBoundType   3
 

Definition at line 455 of file p802_15_4mac.h.

Referenced by Mac802_15_4Handler::handle().

#define macIFSHType   2
 

Definition at line 454 of file p802_15_4mac.h.

Referenced by Mac802_15_4Handler::handle().

#define macTxBcnCmdDataHType   1
 

Definition at line 453 of file p802_15_4mac.h.

Referenced by Mac802_15_4Handler::handle().

#define plme_set_trx_state_request state   )     set_trx_state_request(state,__FILE__,__FUNCTION__,__LINE__)
 

Definition at line 728 of file p802_15_4mac.h.

Referenced by Mac802_15_4::beaconRxHandler(), Mac802_15_4::beaconTxHandler(), Mac802_15_4::dispatch(), Mac802_15_4::IFSHandler(), Mac802_15_4::mcps_data_request(), Mac802_15_4::mlme_associate_request(), Mac802_15_4::mlme_poll_request(), Mac802_15_4::mlme_reset_request(), Mac802_15_4::mlme_rx_enable_request(), Mac802_15_4::mlme_scan_request(), Mac802_15_4::mlme_start_request(), Mac802_15_4::mlme_sync_request(), and Mac802_15_4::taskSuccess().

 
#define resetTRX  )     reset_TRX(__FILE__,__FUNCTION__,__LINE__)
 

Definition at line 730 of file p802_15_4mac.h.

Referenced by Mac802_15_4::mcps_data_request(), Mac802_15_4::mlme_associate_request(), Mac802_15_4::mlme_poll_request(), Mac802_15_4::mlme_start_request(), and Mac802_15_4::txBcnCmdDataHandler().

#define TP_CCA_csmaca   12
 

Definition at line 96 of file p802_15_4mac.h.

Referenced by CsmaCA802_15_4::cancel(), CsmaCA802_15_4::deferCCAHandler(), Mac802_15_4::PLME_CCA_confirm(), CsmaCA802_15_4::RX_ON_confirm(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mcps_data_request   1
 

Definition at line 85 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_associate_request   2
 

Definition at line 86 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch(), Mac802_15_4::extractHandler(), Mac802_15_4::recvBeacon(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_associate_response   3
 

Definition at line 87 of file p802_15_4mac.h.

Referenced by taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_disassociate_request   4
 

Definition at line 88 of file p802_15_4mac.h.

Referenced by taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_orphan_response   5
 

Definition at line 89 of file p802_15_4mac.h.

Referenced by Mac802_15_4::mlme_orphan_response(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_poll_request   11
 

Definition at line 95 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch(), Mac802_15_4::recvAck(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_reset_request   6
 

Definition at line 90 of file p802_15_4mac.h.

Referenced by taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_rx_enable_request   7
 

Definition at line 91 of file p802_15_4mac.h.

Referenced by Mac802_15_4::recvBeacon(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_scan_request   8
 

Definition at line 92 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch(), Mac802_15_4::recvBeacon(), Mac802_15_4::scanHandler(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_start_request   9
 

Definition at line 93 of file p802_15_4mac.h.

Referenced by Mac802_15_4::beaconTxHandler(), Mac802_15_4::dispatch(), taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_mlme_sync_request   10
 

Definition at line 94 of file p802_15_4mac.h.

Referenced by taskPending::taskFrFunc(), taskPending::taskStatus(), and taskPending::taskStep().

#define TP_RX_ON_csmaca   13
 

Definition at line 97 of file p802_15_4mac.h.

Referenced by CsmaCA802_15_4::backoffHandler(), Mac802_15_4::PLME_SET_TRX_STATE_confirm(), CsmaCA802_15_4::RX_ON_confirm(), taskPending::taskStatus(), and taskPending::taskStep().

#define TxOp_Acked   0x01
 

Definition at line 475 of file p802_15_4mac.h.

Referenced by Mac802_15_4::mcps_data_request().

#define TxOp_GTS   0x02
 

Definition at line 476 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch().

#define TxOp_Indirect   0x04
 

Definition at line 477 of file p802_15_4mac.h.

Referenced by Mac802_15_4::dispatch(), and Mac802_15_4::mcps_data_request().

#define TxOp_SecEnabled   0x08
 

Definition at line 478 of file p802_15_4mac.h.


Enumeration Type Documentation

enum MACenum
 

Enumerator:
m_SUCCESS 
m_PAN_at_capacity 
m_PAN_access_denied 
m_BEACON_LOSS 
m_CHANNEL_ACCESS_FAILURE 
m_DENIED 
m_DISABLE_TRX_FAILURE 
m_FAILED_SECURITY_CHECK 
m_FRAME_TOO_LONG 
m_INVALID_GTS 
m_INVALID_HANDLE 
m_INVALID_PARAMETER 
m_NO_ACK 
m_NO_BEACON 
m_NO_DATA 
m_NO_SHORT_ADDRESS 
m_OUT_OF_CAP 
m_PAN_ID_CONFLICT 
m_REALIGNMENT 
m_TRANSACTION_EXPIRED 
m_TRANSACTION_OVERFLOW 
m_TX_ACTIVE 
m_UNAVAILABLE_KEY 
m_UNSUPPORTED_ATTRIBUTE 
m_UNDEFINED 

Definition at line 347 of file p802_15_4mac.h.

00348 {
00349     m_SUCCESS = 0,
00350     //--- following from Table 68) ---
00351     m_PAN_at_capacity,
00352     m_PAN_access_denied,
00353     //--------------------------------
00354     m_BEACON_LOSS = 0xe0,
00355     m_CHANNEL_ACCESS_FAILURE,
00356     m_DENIED,
00357     m_DISABLE_TRX_FAILURE,
00358     m_FAILED_SECURITY_CHECK,
00359     m_FRAME_TOO_LONG,
00360     m_INVALID_GTS,
00361     m_INVALID_HANDLE,
00362     m_INVALID_PARAMETER,
00363     m_NO_ACK,
00364     m_NO_BEACON,
00365     m_NO_DATA,
00366     m_NO_SHORT_ADDRESS,
00367     m_OUT_OF_CAP,
00368     m_PAN_ID_CONFLICT,
00369     m_REALIGNMENT,
00370     m_TRANSACTION_EXPIRED,
00371     m_TRANSACTION_OVERFLOW,
00372     m_TX_ACTIVE,
00373     m_UNAVAILABLE_KEY,
00374     m_UNSUPPORTED_ATTRIBUTE,
00375     m_UNDEFINED         //we added this for handling any case not specified in the draft
00376 }MACenum;

enum MPIBAenum
 

Enumerator:
macAckWaitDuration 
macAssociationPermit 
macAutoRequest 
macBattLifeExt 
macBattLifeExtPeriods 
macBeaconPayload 
macBeaconPayloadLength 
macBeaconOrder 
macBeaconTxTime 
macBSN 
macCoordExtendedAddress 
macCoordShortAddress 
macDSN 
macGTSPermit 
macMaxCSMABackoffs 
macMinBE 
macPANId 
macPromiscuousMode 
macRxOnWhenIdle 
macShortAddress 
macSuperframeOrder 
macTransactionPersistenceTime 
macACLEntryDescriptorSet 
macACLEntryDescriptorSetSize 
macDefaultSecurity 
macACLDefaultSecurityMaterialLength 
macDefaultSecurityMaterial 
macDefaultSecuritySuite 
macSecurityMode 

Definition at line 379 of file p802_15_4mac.h.


Generated on Tue Mar 6 16:56:40 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6