63 lines
1.3 KiB
C
63 lines
1.3 KiB
C
//
|
|
// 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 de;
|
|
} tRs485DirectionPins;
|
|
|
|
typedef struct {
|
|
// tSerialPortArtery Rs485;
|
|
// tSerialPortIO Rs485_IO;
|
|
// tSerialPortHalfDuplex Rs485_HalfDuplex;
|
|
// tSerialPortIO Rs485_HalfDuplexIo;
|
|
|
|
// tSerialPortArtery Rs232;
|
|
// tSerialPortIO Rs232_IO;
|
|
|
|
tSerialPortArtery DEBUG_USART3;
|
|
tSerialPortIO DEBUG_USART3_IO;
|
|
|
|
|
|
/*
|
|
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 SerialPortUsb;
|
|
tSerialPortIO SerialPortUsbIO;
|
|
tSerialPortIO SerialPortUsbSnifferIO;
|
|
|
|
} tSerialPorts;
|
|
|
|
extern tSerialPorts SERIAL_PORTS;
|
|
|
|
void SerialPorts_Init(tRs485DirectionPins *directionPins);
|
|
|
|
|
|
#endif //WATER_BOX_BSD_SERIALPORTS_H
|