gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingSerial

Description

Serial Link Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingSerial o) => IsSettingSerial o Source #

Type class for types which can be safely cast to SettingSerial, for instance with toSettingSerial.

Instances

Instances details
(GObject o, IsDescendantOf SettingSerial o) => IsSettingSerial o Source # 
Instance details

Defined in GI.NM.Objects.SettingSerial

toSettingSerial :: (MonadIO m, IsSettingSerial o) => o -> m SettingSerial Source #

Cast to SettingSerial, for types for which this is known to be safe. For general casts, use castTo.

Methods

getBaud

settingSerialGetBaud Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSerial a) 
=> a

setting: the SettingSerial

-> m Word32

Returns: the SettingSerial:baud property of the setting

No description available in the introspection data.

getBits

settingSerialGetBits Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSerial a) 
=> a

setting: the SettingSerial

-> m Word32

Returns: the SettingSerial:bits property of the setting

No description available in the introspection data.

getParity

settingSerialGetParity Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSerial a) 
=> a

setting: the SettingSerial

-> m SettingSerialParity

Returns: the SettingSerial:parity property of the setting

No description available in the introspection data.

getSendDelay

settingSerialGetSendDelay Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSerial a) 
=> a

setting: the SettingSerial

-> m Word64

Returns: the SettingSerial:sendDelay property of the setting

No description available in the introspection data.

getStopbits

settingSerialGetStopbits Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingSerial a) 
=> a

setting: the SettingSerial

-> m Word32

Returns: the SettingSerial:stopbits property of the setting

No description available in the introspection data.

new

settingSerialNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingSerial

Returns: the new empty SettingSerial object

Creates a new SettingSerial object with default values.

Properties

baud

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.

constructSettingSerialBaud :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “baud” property. This is rarely needed directly, but it is used by new.

getSettingSerialBaud :: (MonadIO m, IsSettingSerial o) => o -> m Word32 Source #

Get the value of the “baud” property. When overloading is enabled, this is equivalent to

get settingSerial #baud

setSettingSerialBaud :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m () Source #

Set the value of the “baud” property. When overloading is enabled, this is equivalent to

set settingSerial [ #baud := value ]

bits

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

constructSettingSerialBits :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “bits” property. This is rarely needed directly, but it is used by new.

getSettingSerialBits :: (MonadIO m, IsSettingSerial o) => o -> m Word32 Source #

Get the value of the “bits” property. When overloading is enabled, this is equivalent to

get settingSerial #bits

setSettingSerialBits :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m () Source #

Set the value of the “bits” property. When overloading is enabled, this is equivalent to

set settingSerial [ #bits := value ]

parity

Parity setting of the serial port.

constructSettingSerialParity :: (IsSettingSerial o, MonadIO m) => SettingSerialParity -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “parity” property. This is rarely needed directly, but it is used by new.

getSettingSerialParity :: (MonadIO m, IsSettingSerial o) => o -> m SettingSerialParity Source #

Get the value of the “parity” property. When overloading is enabled, this is equivalent to

get settingSerial #parity

setSettingSerialParity :: (MonadIO m, IsSettingSerial o) => o -> SettingSerialParity -> m () Source #

Set the value of the “parity” property. When overloading is enabled, this is equivalent to

set settingSerial [ #parity := value ]

sendDelay

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

constructSettingSerialSendDelay :: (IsSettingSerial o, MonadIO m) => Word64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “send-delay” property. This is rarely needed directly, but it is used by new.

getSettingSerialSendDelay :: (MonadIO m, IsSettingSerial o) => o -> m Word64 Source #

Get the value of the “send-delay” property. When overloading is enabled, this is equivalent to

get settingSerial #sendDelay

setSettingSerialSendDelay :: (MonadIO m, IsSettingSerial o) => o -> Word64 -> m () Source #

Set the value of the “send-delay” property. When overloading is enabled, this is equivalent to

set settingSerial [ #sendDelay := value ]

stopbits

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

constructSettingSerialStopbits :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “stopbits” property. This is rarely needed directly, but it is used by new.

getSettingSerialStopbits :: (MonadIO m, IsSettingSerial o) => o -> m Word32 Source #

Get the value of the “stopbits” property. When overloading is enabled, this is equivalent to

get settingSerial #stopbits

setSettingSerialStopbits :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m () Source #

Set the value of the “stopbits” property. When overloading is enabled, this is equivalent to

set settingSerial [ #stopbits := value ]