serialportTypes.h
Go to the documentation of this file.
1 
4 
8 #pragma once
9 
10 #include <map>
11 #include <list>
12 #include <vector>
13 #include <string>
14 #include <boost/system/error_code.hpp>
15 #include <mutex>
16 
17 namespace dpySerialPort {
18 
19 enum ParityType
20 {
21  NONE = 0, ODD = 1, EVEN = 2, MARK = 3, SPACE = 4
22 };
23 
25 {
26  FLOW_NONE = 0, XONXOFF = 1,
27  RTSCTS = 2,
28  DSRDTR = 3
29 };
30 
32 {
33  RS485 = 0,
34  RS232 = 1,
35  RSJ1708 = 2,
36 };
37 
39 {
40  RFS = 0,
41  PIC = 1,
42 };
43 
45 {
46  std::string alias = "Serial Port 1";
48  int baudRate = 9600;
49  int dataBits = 8;
50  int stopBits = 1;
51  ParityType parity = dpySerialPort::ParityType::NONE;
52  FlowControl flowControl = dpySerialPort::FlowControl::FLOW_NONE;
54  std::string address = "ttyCOM1";
55  std::string RS485pinout = "0_36";
56  std::string RS485txen = "0_37";
57  std::string RSEnablePin = "0_0";
58  std::vector<SerialPortProtocol> allowedProtocols;
59 };
60 
61 }
ParityType parity
Parity type.
Definition: serialportTypes.h:51
Definition: serialportTypes.h:44
FlowControl flowControl
Flow Control.
Definition: serialportTypes.h:52
Pic MCU Gpio.
Definition: serialportTypes.h:41
SerialPortProtocol protocol
Connection Type.
Definition: serialportTypes.h:47
int baudRate
Baud Rate.
Definition: serialportTypes.h:48
J1708.
Definition: serialportTypes.h:35
Xon/Xoff.
Definition: serialportTypes.h:26
SerialPortProtocol
Definition: serialportTypes.h:31
Not using any technology (modem disabled, sleep or being enabled) or technology is unknown...
Definition: iModem.h:111
int stopBits
Stop bits.
Definition: serialportTypes.h:50
GpioManagedType
Definition: serialportTypes.h:38
232
Definition: serialportTypes.h:34
485
Definition: serialportTypes.h:33
RFS Gpio.
Definition: serialportTypes.h:40
Deepsy SERIAL PORT namespace that includes the different enums, structs or method signatures that sho...
FlowControl
Definition: serialportTypes.h:24
Rts/Cts.
Definition: serialportTypes.h:27
Dsr/Dtr.
Definition: serialportTypes.h:28
int dataBits
Data bits.
Definition: serialportTypes.h:49