// // Created by ilya on 25.03.24. // #ifndef SMART_COMPONENTS_SERIALPORTS_H #define SMART_COMPONENTS_SERIALPORTS_H #include "SerialPortArtery.h" #include "SerialPortP2p.h" #include "SerialPortHalfDuplexIO.h" //Пины RS485 typedef struct { tGpioPin receive; tGpioPin transmit; } tRs485DirectionPins; typedef struct { //Usart Debug // tSerialPortArtery Debug; // tSerialPortIO Debug_IO; //Usart модема tSerialPortArtery Modem; tSerialPortIO Modem_IO; tSerialPortIO Modem_snif_IO; //Usart-RS485 tSerialPortArtery Rs485; tSerialPortIO Rs485_IO; tSerialPortHalfDuplex Rs485_HalfDuplex; tSerialPortIO Rs485_HalfDuplexIo; tSerialPortP2p cliVirtualPort; tSerialPortIO cliVirtualInIo; tSerialPortIO cliVirtualOutIo; tSerialPortP2p gnssVirtualPort; tSerialPortIO gnssVirtualInIo; tSerialPortIO gnssVirtualOutIo; } tSerialPorts; extern tSerialPorts SERIAL_PORTS; void SerialPorts_Init(tRs485DirectionPins *directionPins); #endif //SMART_COMPONENTS_SERIALPORTS_H