// // Created by cfif on 05.05.23. // #ifndef WATER_BOX_BSD_SERIALPORTS_H #define WATER_BOX_BSD_SERIALPORTS_H #include "SerialPortArtery.h" #include "GpioPin.h" #include "SerialPortP2p.h" #include "SerialPort_USB.h" #include "SerialPortHalfDuplexIO.h" #include "SerialPortVirt.h" typedef struct { tGpioPin receive; tGpioPin transmit; } tRs485DirectionPins; typedef struct { // tSerialPortArtery Rs485; // tSerialPortIO Rs485_IO; // tSerialPortHalfDuplex Rs485_HalfDuplex; // tSerialPortIO Rs485_HalfDuplexIo; // tSerialPortArtery Rs232; // tSerialPortIO Rs232_IO; tSerialPortArtery LIN1_UART4; tSerialPortIO LIN1_UART4_IO; /* tSerialPortArtery LIN2_UART5; tSerialPortIO LIN2_UART5_IO; tSerialPortArtery LIN3_USART6; tSerialPortIO LIN3_USART6_IO; tSerialPortArtery LIN4_UART7; tSerialPortIO LIN4_UART7_IO; tSerialPortArtery LIN5_UART8; tSerialPortIO LIN5_UART8_IO; tSerialPortArtery LIN6_USART1; tSerialPortIO LIN6_USART1_IO; */ tSerialPortArtery DEBUG_USART3; tSerialPortIO DEBUG_USART3_IO; tSerialPortArtery Rs485_USART2; tSerialPortIO Rs485_USART2_IO; tSerialPortHalfDuplex Rs485_USART2_HalfDuplex; tSerialPortIO Rs485_USART2_HalfDuplexIo; /* * tSerialPortArtery PRO04; tSerialPortIO PRO04IO; tSerialPortIO PRO04_snif_IO; tSerialPortArtery GSM; tSerialPortIO GSMIO; tSerialPortIO GSM_snif_IO; */ // tSerialPortArtery ComInt; // tSerialPortIO ComIntIO; // tSerialPortP2p cliVirtualPort; // tSerialPortIO cliVirtualInIo; // tSerialPortIO cliVirtualOutIo; tSerialPortVirt cliVirtualPortOut; tSerialPortIO cliVirtualPortOut_Io; tSerialPortUsbArtery SerialPortUsb1; tSerialPortIO SerialPortUsb1IO; tSerialPortIO SerialPortUsb1SnifferIO; tSerialPortUsbArtery SerialPortUsb2; tSerialPortIO SerialPortUsb2IO; tSerialPortIO SerialPortUsb2SnifferIO; } tSerialPorts; extern tSerialPorts SERIAL_PORTS; void SerialPorts_Init(tRs485DirectionPins *directionPins); #endif //WATER_BOX_BSD_SERIALPORTS_H