Slave Implementation of WANOT Slave
Dependencies: SX1276Lib mbed-src
Diff: SlaveTDMA.h
- Revision:
- 0:80ebf9b1dd4f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SlaveTDMA.h Mon May 23 22:28:07 2016 +0000 @@ -0,0 +1,30 @@ +#ifndef _SLAVETDMA_H_ +#define _SLAVETDMA_H_ + +#include "WANOT.h" + + +typedef enum { + TDMA_Wait_for_Beacon = 0, + TDMA_Send_RTS, + TDMA_Wait_for_CTS, + TDMA_Send_Data, + TDMA_Wait_for_Ack, + TDMA_Finished + + +} SlaveTDMAStates; + + +typedef enum { + TDMA_msgRTS = 0x11, + TDMA_msgCTS = 0x12, + TDMA_msgData = 0x13, + TDMA_msgAck = 0x14 + +} TDMA_msgType; + +void SlaveTDMA(); + + +#endif //_SLAVETDMA_H_ \ No newline at end of file