55 lines
1.1 KiB
C
55 lines
1.1 KiB
C
//
|
|
// Created by cfif on 15.11.22.
|
|
//
|
|
|
|
#ifndef SERIALPORTS_H
|
|
#define SERIALPORTS_H
|
|
|
|
#include "SerialPortArtery.h"
|
|
#include "SerialPortHalfDuplexIO.h"
|
|
#include "GpioPin.h"
|
|
#include "SerialPortP2p.h"
|
|
|
|
typedef struct {
|
|
tGpioPin receive;
|
|
tGpioPin transmit;
|
|
} tRs485DirectionPins;
|
|
|
|
typedef struct {
|
|
tSerialPortArtery PRO04;
|
|
tSerialPortIO PRO04IO;
|
|
|
|
tSerialPortArtery GONEC1;
|
|
tSerialPortIO GONEC1IO;
|
|
tSerialPortIO GONEC1IOSniffer;
|
|
|
|
tSerialPortArtery GONEC2;
|
|
tSerialPortIO GONEC2IO;
|
|
|
|
tSerialPortArtery SIM800F;
|
|
tSerialPortIO SIM800FIO;
|
|
tSerialPortIO SIM800FIOSniffer;
|
|
|
|
tSerialPortArtery ComInt485;
|
|
tSerialPortIO ComInt485IO;
|
|
|
|
tSerialPortArtery ComInt232;
|
|
tSerialPortIO ComInt232IO;
|
|
|
|
tSerialPortHalfDuplex ComIntHalfDuplex;
|
|
tSerialPortIO ComIntHalfDuplexIo;
|
|
|
|
tSerialPortP2p cliVirtualPort;
|
|
tSerialPortIO cliVirtualInIo;
|
|
tSerialPortIO cliVirtualOutIo;
|
|
} tSerialPorts;
|
|
|
|
extern tSerialPorts SERIAL_PORTS;
|
|
|
|
void SerialPorts_Init(tRs485DirectionPins *env485);
|
|
|
|
// Перенастройка порта ComInt485
|
|
void vSerialPort_ReInitUSART2(uint32_t BoundRate);
|
|
|
|
#endif //SERIALPORTS_H
|