Master Implementation of WANOT

Dependencies:   SX1276Lib mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MasterTDMA.h Source File

MasterTDMA.h

00001 #ifndef _MASTERTDMA_H_
00002 #define _MASTERTDMA_H_
00003 
00004 #include "WANOT.h"
00005 
00006 typedef enum {
00007     TDMA_sendBeacon = 0,
00008     TDMA_Wait_for_RTS,
00009     TDMA_Send_CTS,
00010     TDMA_Wait_for_Data,
00011     TDMA_Send_Ack,
00012     TDMA_Slave_Not_Found
00013 } MasterTDMAStates;
00014 
00015 typedef enum {
00016     TDMA_msgRTS = 0x11,
00017     TDMA_msgCTS = 0x12,
00018     TDMA_msgData = 0x13,
00019     TDMA_msgAck = 0x14
00020 
00021 } TDMA_msgType;
00022 
00023 void MasterTDMA(uint8_t SlaveLocalID);
00024 
00025 
00026 #endif //_MASTERTDMA_H_