13.7.4.2 APP_NWK_PARAM

C

typedef struct
{
    uint8_t channel;
    uint8_t channelPage;
    uint16_t srcPanId;
    uint16_t dstPanId;
    uint16_t srcAddress;
    uint64_t extendedSrcAddress;
    uint8_t srcAddrMode;
    uint16_t dstAddress;
    uint64_t extendedDstAddress;
    uint8_t dstAddrMode;
    int8_t txPowerDBm;
    uint8_t txPower;
    uint64_t ieeeAddress;
    uint64_t dstIeeeAddress;
    bool unicastFlagPredefData;
    bool unicastFlagUserDefData;
    PHY_Retval_t pibAttributeStatus;
    ED_SCAN edScan;
    CCA cca;
    CSMA csma;
    bool PromiscuousMode;
    uint8_t frameRetry;
    uint8_t maxBE;
    uint8_t minBE;
    bool ackReq;
    uint8_t frameType;
    uint8_t frameOverHead;
    uint64_t nPacketsSent;
    uint64_t nBytesSent;
    uint64_t nPacketsRcvdAck;
    PHY_Retval_t txStatusFrameSent;
    PHY_Retval_t txDoneCbStatus;
    uint64_t nPerTestPackets;
} APP_NWK_PARAM;

Description

The structure contains the general PAN Network information about the devices (2 communicatng Peer Devices - Source and Destination Devices). To update the device table, console commands can be used. Please refer Command Table section for more details.

Field Documentation

FieldDescription
channelChannel
channelPageChannel Page
srcPanIdSource PAN ID 16 bits
dstPanId Destination PAN ID 16 bits
srcAddressSource Address - 16 bits
extendedSrcAddressExtended Source Address - 64 bits
srcAddrModeSource Address Mode
dstAddressDestinationAddress - 16 bits
extendedDstAddressExtended DestinationAddress - 64 bits
dstAddrModeDestination Address Mode
txPowerDBmTransmit Power in DBm
txPowerTX Power
ieeeAddressExtended Source Address - 64 bits
dstIeeeAddressExtended DestinationAddress - 64 bits
unicastFlagPredefDataFlag for Application purpose
unicastFlagUserDefDataFlag for Application purpose
pibAttributeStatusAttribute Status structure to store status of pibGet and pibSet Attributes
edScanED Scan
ccaCCA
csmaCSMA
PromiscuousModeBoolean to enable Promiscous RX Mode
frameRetryMAC level Frame Retry
maxBEMAX BE
minBEMIN BE
ackReqbool to enable/disable Ack request during packet Transmit
frameTypeType of frame to be transmitted
frameOverHeadNo. of overhead octets in TX frame
nPacketsSentNo. of packets receiving TX Done CB
nBytesSentNo. of bytes receiving TX Done CB
nPacketsRcvdAckNo. of packets receiving Ack
txStatusFrameSentStatus of TX Frames Sent
txDoneCbStatusStatus of transmitted packets after TX Done Cb is recived
nPerTestPacketsNo. of packets sent in Packet Error Rate Test Mode