Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.SettingSerial
Description
Serial Link Settings
Synopsis
- newtype SettingSerial = SettingSerial (ManagedPtr SettingSerial)
- class (GObject o, IsDescendantOf SettingSerial o) => IsSettingSerial o
- toSettingSerial :: (MonadIO m, IsSettingSerial o) => o -> m SettingSerial
- settingSerialGetBaud :: (HasCallStack, MonadIO m, IsSettingSerial a) => a -> m Word32
- settingSerialGetBits :: (HasCallStack, MonadIO m, IsSettingSerial a) => a -> m Word32
- settingSerialGetParity :: (HasCallStack, MonadIO m, IsSettingSerial a) => a -> m SettingSerialParity
- settingSerialGetSendDelay :: (HasCallStack, MonadIO m, IsSettingSerial a) => a -> m Word64
- settingSerialGetStopbits :: (HasCallStack, MonadIO m, IsSettingSerial a) => a -> m Word32
- settingSerialNew :: (HasCallStack, MonadIO m) => m SettingSerial
- constructSettingSerialBaud :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingSerialBaud :: (MonadIO m, IsSettingSerial o) => o -> m Word32
- setSettingSerialBaud :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m ()
- constructSettingSerialBits :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingSerialBits :: (MonadIO m, IsSettingSerial o) => o -> m Word32
- setSettingSerialBits :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m ()
- constructSettingSerialParity :: (IsSettingSerial o, MonadIO m) => SettingSerialParity -> m (GValueConstruct o)
- getSettingSerialParity :: (MonadIO m, IsSettingSerial o) => o -> m SettingSerialParity
- setSettingSerialParity :: (MonadIO m, IsSettingSerial o) => o -> SettingSerialParity -> m ()
- constructSettingSerialSendDelay :: (IsSettingSerial o, MonadIO m) => Word64 -> m (GValueConstruct o)
- getSettingSerialSendDelay :: (MonadIO m, IsSettingSerial o) => o -> m Word64
- setSettingSerialSendDelay :: (MonadIO m, IsSettingSerial o) => o -> Word64 -> m ()
- constructSettingSerialStopbits :: (IsSettingSerial o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingSerialStopbits :: (MonadIO m, IsSettingSerial o) => o -> m Word32
- setSettingSerialStopbits :: (MonadIO m, IsSettingSerial o) => o -> Word32 -> m ()
Exported types
newtype SettingSerial Source #
Memory-managed wrapper type.
Constructors
SettingSerial (ManagedPtr SettingSerial) |
Instances
Eq SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial Methods (==) :: SettingSerial -> SettingSerial -> Bool # (/=) :: SettingSerial -> SettingSerial -> Bool # | |
GObject SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial | |
ManagedPtrNewtype SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial Methods | |
TypedObject SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial | |
HasParentTypes SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial | |
IsGValue (Maybe SettingSerial) Source # | Convert |
Defined in GI.NM.Objects.SettingSerial Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingSerial -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingSerial) # | |
type ParentTypes SettingSerial Source # | |
Defined in GI.NM.Objects.SettingSerial |
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
(GObject o, IsDescendantOf SettingSerial o) => IsSettingSerial o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getBaud, getBits, getData, getDbusPropertyType, getName, getParity, getProperty, getQdata, getSecretFlags, getSendDelay, getStopbits.
Setters
getBaud
Arguments
:: (HasCallStack, MonadIO m, IsSettingSerial a) | |
=> a |
|
-> m Word32 | Returns: the SettingSerial:baud property of the setting |
No description available in the introspection data.
getBits
Arguments
:: (HasCallStack, MonadIO m, IsSettingSerial a) | |
=> a |
|
-> 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 |
|
-> 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 |
|
-> 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 |
|
-> m Word32 | Returns: the SettingSerial:stopbits property of the setting |
No description available in the introspection data.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingSerial | Returns: the new empty |
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 ]