6#ifndef __DSAMPORT_IDL__
7#define __DSAMPORT_IDL__
9#include <UserEvent.idl>
17 constant
int SUCCESS = 0;
20 constant
int SETTINGS_INVALID = 1;
21 constant
int SSH_DPA_PORT_INVALID = 2;
22 constant
int SSH_DPA_PORT_IN_USE = 3;
Info getInfo()
Get current port info.
Settings getSettings()
Get current port settings.
int getTtyUsbNumber()
Get the number of the ttyUSB device.
@ STATE_AVAILABLE
no clients connected to port
@ STATE_OCCUPIED
at least one client connected, more clients allowed
int setSettings(in Settings settings)
Set port settings.
DeviceInterfaceType
Serial device interface type.
@ DEV_IFTYPE_AUTO
auto detect
@ DEV_IFTYPE_DTE
DTE (Data Terminal Equipment) device detected.
FlowControl
Flow control type.
@ FLOW_CTRL_HARDWARE
Hardware flow control.
@ FLOW_CTRL_NONE
No flow control.
@ PARITY_ODD
Odd parity (implies 7 data bits)
@ PARITY_NONE
No parity (implies 8 data bits)
void setState(in State state)
Set the state of the port.
Event that is send when the port info has changed.
Info oldInfo
Old port info.
string portName
current port name
Info newInfo
New port info.
boolean connected
true if serial device is connected
State state
state of the port
int dsamNumber
DSAM number (1-based)
int portNumber
port number (1-based)
DeviceInterfaceType devIfType
serial device interface type if connected is true
Event that is send whenthe port settings have changed.
int portNumber
port number
Settings oldSettings
Old port settings.
int dsamNumber
DSAM number.
Settings newSettings
New port settings.
int breakDurationMs
Length of BREAK signal duration in milli seconds.
int sshDpaPort
SSH DPA port number.
FlowControl flowCtrl
Flow control type.
boolean allowSharedAccess
Allow more than one user to connect to this port.
DeviceInterfaceType devIfType
Port interface type (allows forcing the interface type)
int stopBits
Number of stop bits (1 or 2)
boolean sshDpaPortEnabled
true if dedicated SSH DPA port is enabled
Parity parity
Parity mode.