
// Indexes for the byte positions in a Basic Set Frame
#define LEN       0
#define TYPE      1
#define CMD       2
#define NODE      3 /* (Target Node) */
#define COMMLEN   4 /* (Length of data specific payload within Frame) */
#define COMMCLASS 5
#define COMM      6
#define LASTKEY   7
#define TXOPT     8
#define FUNCID    9

char BasicSetFrame[10];

int  pos;          //position within array
char Length = 0xA; //Length of frame, excluding SOF and Checksum

BasicSetFrame[LEN       ] = Length;  
BasicSetFrame[TYPE      ] = 0x00;
BasicSetFrame[CMD       ] = 0x13;       // SendData
BasicSetFrame[NODE      ] = IconNodeID;
BasicSetFrame[COMMLEN   ] = 0x03;       
BasicSetFrame[COMMCLASS ] = 0x20;       // Basic
BasicSetFrame[COMM      ] = 0x01;       // Basic Set
BasicSetFrame[LASTKEY   ] = LastKey;    // Decoded Button Press/Release
BasicSetFrame[TXOPT     ] = 0x05;
BasicSetFrame[FUNCID    ] = 0x00;	
