houss red
/
Master_F
Master Implementation of WANOT
Diff: MasterTDMA.h
- Revision:
- 0:8b449140caa2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MasterTDMA.h Mon May 23 22:25:40 2016 +0000 @@ -0,0 +1,26 @@ +#ifndef _MASTERTDMA_H_ +#define _MASTERTDMA_H_ + +#include "WANOT.h" + +typedef enum { + TDMA_sendBeacon = 0, + TDMA_Wait_for_RTS, + TDMA_Send_CTS, + TDMA_Wait_for_Data, + TDMA_Send_Ack, + TDMA_Slave_Not_Found +} MasterTDMAStates; + +typedef enum { + TDMA_msgRTS = 0x11, + TDMA_msgCTS = 0x12, + TDMA_msgData = 0x13, + TDMA_msgAck = 0x14 + +} TDMA_msgType; + +void MasterTDMA(uint8_t SlaveLocalID); + + +#endif //_MASTERTDMA_H_ \ No newline at end of file