SmartOS/Board/AP0801.h

42 lines
657 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _AP0801_H_
#define _AP0801_H_
#include "TokenBoard.h"
#include "Net\Socket.h"
#include "Device\Spi.h"
#include "Device\SerialPort.h"
#include "App\Alarm.h"
// 阿波罗0801
class AP0801 : public TokenBoard
{
public:
List<OutputPort*> Outputs;
List<InputPort*> Inputs;
Alarm* AlarmObj;
SpiConfig Net;
SerialConfig Esp;
AP0801();
// 打开以太网W5500
NetworkInterface* Create5500();
// 打开Esp8266作为主控或者纯AP
NetworkInterface* Create8266();
// ITransport* Create2401();
void InitNet();
void InitProxy();
void InitAlarm();
static AP0801* Current;
};
#endif