Slave Implementation of WANOT Slave

Dependencies:   SX1276Lib mbed-src

SlaveTDMA.h

Committer:
semsem
Date:
2016-05-23
Revision:
0:80ebf9b1dd4f

File content as of revision 0:80ebf9b1dd4f:

#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_