opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::SerialSettings Struct Reference

Settings structure for the serial port. More...

#include <opendnp3/channel/SerialSettings.h>

Public Member Functions

 SerialSettings ()
 Defaults to the familiar 9600 8/N/1, no flow control. More...
 

Public Attributes

TimeDuration asyncOpenDelay
 Some physical layers need time to "settle" so that the first tx isn't lost. More...
 
int baud
 Baud rate of the port, i.e. 9600 or 57600. More...
 
int dataBits
 Data bits, usually 8. More...
 
std::string deviceName
 name of the port, i.e. "COM1" or "/dev/tty0" More...
 
FlowControl flowType
 Flow control setting, usually FLOW_NONE. More...
 
Parity parity
 Parity setting for the port, usually PAR_NONE. More...
 
StopBits stopBits
 Stop bits, usually set to 1. More...
 

Detailed Description

Settings structure for the serial port.

Definition at line 34 of file SerialSettings.h.

Constructor & Destructor Documentation

◆ SerialSettings()

opendnp3::SerialSettings::SerialSettings ( )
inline

Defaults to the familiar 9600 8/N/1, no flow control.

Definition at line 38 of file SerialSettings.h.

Member Data Documentation

◆ asyncOpenDelay

TimeDuration opendnp3::SerialSettings::asyncOpenDelay

Some physical layers need time to "settle" so that the first tx isn't lost.

Definition at line 67 of file SerialSettings.h.

◆ baud

int opendnp3::SerialSettings::baud

Baud rate of the port, i.e. 9600 or 57600.

Definition at line 52 of file SerialSettings.h.

◆ dataBits

int opendnp3::SerialSettings::dataBits

Data bits, usually 8.

Definition at line 55 of file SerialSettings.h.

◆ deviceName

std::string opendnp3::SerialSettings::deviceName

name of the port, i.e. "COM1" or "/dev/tty0"

Definition at line 49 of file SerialSettings.h.

◆ flowType

FlowControl opendnp3::SerialSettings::flowType

Flow control setting, usually FLOW_NONE.

Definition at line 64 of file SerialSettings.h.

◆ parity

Parity opendnp3::SerialSettings::parity

Parity setting for the port, usually PAR_NONE.

Definition at line 61 of file SerialSettings.h.

◆ stopBits

StopBits opendnp3::SerialSettings::stopBits

Stop bits, usually set to 1.

Definition at line 58 of file SerialSettings.h.


The documentation for this struct was generated from the following file: