Raritan PX2/PX3 JSON-RPC API
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
SerialPort.idl
1 #include <GsmModem.idl>
2 #include <AnalogModem.idl>
3 
5 module serial {
6 
11  interface SerialPort_2_0_0 {
15  constant int SUCCESS = 0;
16  constant int ERR_INVALID_VALUE = 1;
17 
21  enumeration PortState {
24  GSMMODEM
25  };
26 
30  enumeration BaudRate {
38  BR115200
39  };
40 
45  structure State {
47  string deviceName;
48  };
49 
53  structure Settings {
56  };
57 
61  valueobject ModemEvent extends idl.Event {
62  Object modem;
63  };
64 
68  valueobject ModemAddedEvent extends ModemEvent {
69  };
70 
74  valueobject ModemRemovedEvent extends ModemEvent {
75  };
76 
82  Settings getSettings();
83 
92  int setSettings(in Settings settings);
93 
99  State getState();
100 
107  Object getModem();
108  };
109 
110 }
BaudRate
Possible baud rates.
Definition: SerialPort.idl:30
19.200 kbit/s
Definition: SerialPort.idl:35
string deviceName
Name of the device currently connected.
Definition: SerialPort.idl:47
38.400 kbit/s
Definition: SerialPort.idl:36
4.800 kbit/s
Definition: SerialPort.idl:33
PortState state
Current connection state.
Definition: SerialPort.idl:46
Port settings.
Definition: SerialPort.idl:53
2.400 kbit/s
Definition: SerialPort.idl:32
1.200 kbit/s
Definition: SerialPort.idl:31
PortState
Possible states the port can be in at a given time.
Definition: SerialPort.idl:21
No modem is attached, the console application is running on the port.
Definition: SerialPort.idl:22
Interface describing a physical serial port and the devices which can be attached to it...
Definition: SerialPort.idl:11
BaudRate modemBaudRate
Baud rate to be used for communicating with an attached modem.
Definition: SerialPort.idl:55
9.600 kbit/s
Definition: SerialPort.idl:34
57.600 kbit/s
Definition: SerialPort.idl:37
Structure holding information about the current state of the port.
Definition: SerialPort.idl:45
An analog modem is attached to the port.
Definition: SerialPort.idl:23
BaudRate consoleBaudRate
Baud rate to be used for running the console application.
Definition: SerialPort.idl:54