NM.SettingSerial

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingSerial NM.SettingSerial NM.Setting->NM.SettingSerial

Subclasses:

None

Methods

Inherited:

NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_baud ()

get_bits ()

get_parity ()

get_send_delay ()

get_stopbits ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

baud

int

r/w/en

bits

int

r/w/en

parity

NM.SettingSerialParity

r/w

send-delay

int

r/w/en

stopbits

int

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingSerial(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingSerialClass

Serial Link Settings

classmethod new()
Returns:

the new empty NM.SettingSerial object

Return type:

NM.Setting

Creates a new NM.SettingSerial object with default values.

get_baud()
Returns:

the NM.SettingSerial :baud property of the setting

Return type:

int

get_bits()
Returns:

the NM.SettingSerial :bits property of the setting

Return type:

int

get_parity()
Returns:

the NM.SettingSerial :parity property of the setting

Return type:

NM.SettingSerialParity

get_send_delay()
Returns:

the NM.SettingSerial :send-delay property of the setting

Return type:

int

get_stopbits()
Returns:

the NM.SettingSerial :stopbits property of the setting

Return type:

int

Property Details

NM.SettingSerial.props.baud
Name:

baud

Type:

int

Default Value:

57600

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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.

NM.SettingSerial.props.bits
Name:

bits

Type:

int

Default Value:

8

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Byte-width of the serial communication. The 8 in “8n1” for example.

NM.SettingSerial.props.parity
Name:

parity

Type:

NM.SettingSerialParity

Default Value:

NM.SettingSerialParity.NONE

Flags:

READABLE, WRITABLE

Parity setting of the serial port.

NM.SettingSerial.props.send_delay
Name:

send-delay

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Time to delay between each byte sent to the modem, in microseconds.

NM.SettingSerial.props.stopbits
Name:

stopbits

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Number of stop bits for communication on the serial port. Either 1 or 2. The 1 in “8n1” for example.