Apps     Components     Interfaces     All Files     Source Tree     source: beta.CC2420Radio.ieee.802.15.4.MCPS.MCPS_DATA.nc

Interface: MCPS_DATA

The MCPS-SAP supports the transport of SSCS protocol data units (SPDUs) between peer SSCS entities. MCPS_DATA is used to transmit and receive data from the MAC sublayer.
Author: Joe Polastre

Commands

Events

Commands - Details

request

void request(uint8_t SrcAddrMode, uint16_t SrcPANId, uint8_t *SrcAddr, uint8_t DstAddrMode, uint16_t DstPANId, uint8_t *DstAddr, uint8_t msduLength, uint8_t *msdu, uint8_t msduHandle, uint8_t TxOptions)

Request a data transfer. See page 57 of the IEEE 802.15.4 specification.

Parameters:

SrcAddrMode - The source addressing mode for this primitive and subsequent MPDU

SrcPANId - The 16 bit PAN identifier of the source

SrcAddr - Individual device address of the source as per the SrcAddrMode

DstAddrMode - The destination addressing mode for this primitive and subsequent MPDU

DstPANId - The 16 bit PAN identifier of the destination

DstAddr - Individual device address of the destination as per the DstAddrMode

msduLength - Number of octets contained in the msdu

msdu - Set of octets forming the msdu

msduHandle - Handle associated with the MSDU to be transmitted

TxOptions - Bitwised OR transmission options

Events - Details

confirm

void confirm(uint8_t msduHandle, IEEE_status status)

Confirm reports the results of a request to transfer a data MSDU. See page 59 of the IEEE 802.15.4 specification.

Parameters:

msduHandle - The handle associated with the MSDU

status - That status of the last MSDU transmission


indication

void indication(uint8_t SrcAddrMode, uint16_t SrcPANId, uint8_t *SrcAddr, uint8_t DstAddrMode, uint16_t DstPANId, uint8_t *DstAddr, uint8_t msduLength, uint8_t *msdu, uint8_t mpduLinkQuality, bool SecurityUse, uint8_t ACLEntry)

Indicates the transfer of a data unit from the MAC sublayer. See page 60 of the IEEE 802.15.4 specification.

Parameters:

SrcAddrMode - The source addressing mode for this primitive and subsequent MPDU

SrcPANId - The 16 bit PAN identifier of the source

SrcAddr - Individual device address of the source as per the SrcAddrMode

DstAddrMode - The destination addressing mode for this primitive and subsequent MPDU

DstPANId - The 16 bit PAN identifier of the destination

DstAddr - Individual device address of the destination as per the DstAddrMode

msduLength - Number of octets contained in the msdu

msdu - Set of octets forming the msdu

mpduLinkQuality - LQ value measured during reception

SecurityUse - An indication whether the received data frame is using security

ACLEntry - The macSecurityMode parameter value from the ACL entry associated with the sender of the data frame. This value is set to 0x08 if the sender of the data frame was not found in the ACL.