MAC_TRANS_PARAM Structure

MiWi Development Environment

MiWi(TM) Development Environment Help
MAC_TRANS_PARAM Structure
C
typedef struct {
  union {
    BYTE Val;
    struct {
      BYTE packetType : 2;
      BYTE broadcast : 1;
      BYTE secEn : 1;
      BYTE repeat : 1;
      BYTE ackReq : 1;
      BYTE destPrsnt : 1;
      BYTE sourcePrsnt : 1;
    } bits;
  } flags;
  BYTE * DestAddress;
  BOOL altDestAddr;
  BOOL altSrcAddr;
  WORD_VAL DestPANID;
} MAC_TRANS_PARAM;
Description

Parameters to Transmit a Packet 

This structure contains configurations to transmit a packet

Members
Members 
Description 
BYTE packetType : 2; 
type of packet. Possible types are

 

BYTE broadcast : 1; 
1: broadcast, 0: unicast 
BYTE secEn : 1; 
1: secure the MAC payload, 0: send plain text 
BYTE repeat : 1; 
1: allow repeaters to forward the message, 0: send message directly 
BYTE ackReq : 1; 
1: acknowledgement required, 0: no acknowldgement 
BYTE destPrsnt : 1; 
1: destination address in the packet, 0: destination address not in the packet 
BYTE sourcePrsnt : 1; 
1: source address in the packet, 0: source address not in the packet 
BYTE * DestAddress; 
destination address 
BOOL altDestAddr; 
use the alternative network address as destination in the packet 
BOOL altSrcAddr; 
use the alternative network address as source in the packet 
WORD_VAL DestPANID; 
PAN identifier of the destination 
Symbol Reference > Types > MAC_TRANS_PARAM Structure
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.