51 lines
1.0 KiB
C
51 lines
1.0 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"
|
|
|
|
typedef struct {
|
|
tGpioPin de;
|
|
} tRs485DirectionPins;
|
|
|
|
typedef struct {
|
|
tSerialPortArtery Rs485;
|
|
tSerialPortIO Rs485_IO;
|
|
|
|
tSerialPortHalfDuplex Rs485_HalfDuplex;
|
|
tSerialPortIO Rs485_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;
|
|
|
|
tSerialPortUsbArtery SerialPortUsb;
|
|
tSerialPortIO SerialPortUsbIO;
|
|
|
|
} tSerialPorts;
|
|
|
|
extern tSerialPorts SERIAL_PORTS;
|
|
|
|
void SerialPorts_Init(tRs485DirectionPins *directionPins);
|
|
|
|
|
|
#endif //WATER_BOX_BSD_SERIALPORTS_H
|