Master Implementation of WANOT

Dependencies:   SX1276Lib mbed

MasterTDMA.h

Committer:
semsem
Date:
2016-05-23
Revision:
0:8b449140caa2

File content as of revision 0:8b449140caa2:

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