Top |
NMSettingSerialNMSettingSerial — Describes connection properties for devices that use serial communications |
guint | baud | Read / Write |
guint | bits | Read / Write |
NMSettingSerialParity | parity | Read / Write |
guint64 | send-delay | Read / Write |
guint | stopbits | Read / Write |
#define | NM_SETTING_SERIAL_SETTING_NAME |
enum | NMSettingSerialParity |
#define | NM_SETTING_SERIAL_BAUD |
#define | NM_SETTING_SERIAL_BITS |
#define | NM_SETTING_SERIAL_PARITY |
#define | NM_SETTING_SERIAL_STOPBITS |
#define | NM_SETTING_SERIAL_SEND_DELAY |
NMSettingSerial |
The NMSettingSerial object is a NMSetting subclass that describes properties necessary for connections that may use serial communications, such as mobile broadband or analog telephone connections.
NMSetting *
nm_setting_serial_new (void
);
Creates a new NMSettingSerial object with default values.
NMSettingSerialParity
nm_setting_serial_get_parity (NMSettingSerial *setting
);
guint64
nm_setting_serial_get_send_delay (NMSettingSerial *setting
);
“baud”
property“baud” guint
Speed to use for communication over the serial port. Note that this value usually has no effect for mobile broadband modems as they generally ignore speed settings and use the highest available speed.
Owner: NMSettingSerial
Flags: Read / Write
Default value: 57600
“bits”
property“bits” guint
Byte-width of the serial communication. The 8 in "8n1" for example.
Owner: NMSettingSerial
Flags: Read / Write
Allowed values: [5,8]
Default value: 8
“parity”
property“parity” NMSettingSerialParity
Parity setting of the serial port.
Owner: NMSettingSerial
Flags: Read / Write
Default value: NM_SETTING_SERIAL_PARITY_NONE
“send-delay”
property“send-delay” guint64
Time to delay between each byte sent to the modem, in microseconds.
Owner: NMSettingSerial
Flags: Read / Write
Default value: 0
“stopbits”
property“stopbits” guint
Number of stop bits for communication on the serial port. Either 1 or 2. The 1 in "8n1" for example.
Owner: NMSettingSerial
Flags: Read / Write
Allowed values: [1,2]
Default value: 1