Slave Implementation of WANOT Slave

Dependencies:   SX1276Lib mbed-src

SlaveSetUp.h

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

File content as of revision 0:80ebf9b1dd4f:

#ifndef SLAVESETUP_H_
#define SLAVESETUP_H_

#include "WANOT.h"

typedef enum {
    Wait_for_Beacon = 0,
    Send_RTS,
    Send_JoinReq,
    Send_ACK,
    Wait_for_CTS,
    Wait_for_JoinAccept,
    Rx_Init,
    Phy_CS, //CSMA
    Virtual_CS,
    Channel_Busy

} SlaveSetUpStates;

typedef enum {
    msgRTS = 0x11,
    msgCTS = 0x12,
    msgJoinReq = 0x13,
    msgJoinAccept = 0x14,
    msgAck = 0x15

} msgType;

void SlaveSetUp();
#endif