TestSubmodule/LOCAL/Inc/SerialPorts.h

29 lines
793 B
C

#ifndef CHARGER_SERIALPORTS_H
#define CHARGER_SERIALPORTS_H
#include "SerialPortIO.h"
#include "SerialPortP2p.h"
#include "SerialPortArtery.h"
#include "SerialPortHalfDuplexIO.h"
#include "Gpios.h"
typedef struct {
///Последовательный порт командного интерфейса
tSerialPortArtery comint;
tSerialPortIO comint_IO;
///Полудуплексный интерфейс RS485
tSerialPortHalfDuplex comInt_HD;
tSerialPortIO comint_HD_IO;
///Виртуальный интерфейс
tSerialPortP2p cliVirtualPort;
tSerialPortIO cliVirtualInIo;
tSerialPortIO cliVirtualOutIo;
}tSerialPorts;
extern tSerialPorts SERIAL_PORTS;
void SerialPorts_Init(tRS485DirectionPins *directionPins);
#endif //CHARGER_SERIALPORTS_H