Class: WMI::Win32_SerialPortConfiguration

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_SerialPortConfiguration.rb

Overview

Win32_SerialPortConfiguration クラスは、Win32 シリアル ポートのデータ転送の既定の設定を表します。これには、接続とエラー チェックを確立するための既定の構成が含まれまれている可能性があります。

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from Base

#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_

Instance Attribute Details

- (boolean) AbortReadWriteOnError (readonly)

AbortReadWriteOnError プロパティは、エラーが発生した場合に、読み取りおよび書き込みの操作を終了するかどうかを示します。

 

Returns:

  • (boolean)

    AbortReadWriteOnError



11
12
13
# File 'lib/Win32_SerialPortConfiguration.rb', line 11

def AbortReadWriteOnError
  @AbortReadWriteOnError
end

- (uint32) BaudRate (readonly)

BaudRate プロパティは、通信デバイスが作動するボー レート (ビット/秒) を示します。

 

Returns:

  • (uint32)

    BaudRate



18
19
20
# File 'lib/Win32_SerialPortConfiguration.rb', line 18

def BaudRate
  @BaudRate
end

- (boolean) BinaryModeEnabled (readonly)

BinaryModeEnabled プロパティは、シリアル ポートでバイナリ モードのデータの転送が有効になっているかどうかを示します。

 Win32 

Returns:

  • (boolean)

    BinaryModeEnabled



24
25
26
# File 'lib/Win32_SerialPortConfiguration.rb', line 24

def BinaryModeEnabled
  @BinaryModeEnabled
end

- (uint32) BitsPerByte (readonly)

BitsPerByte プロパティは、Win32 シリアル ポートで 1 バイトのデータに対して送受信されるビット数を示します。

 

Returns:

  • (uint32)

    BitsPerByte



32
33
34
# File 'lib/Win32_SerialPortConfiguration.rb', line 32

def BitsPerByte
  @BitsPerByte
end

- (string) Caption (readonly)

CIM_Setting オブジェクトの簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



37
38
39
# File 'lib/Win32_SerialPortConfiguration.rb', line 37

def Caption
  @Caption
end

- (boolean) ContinueXMitOnXOff (readonly)

ContinueXMitOnXOff プロパティにより、受信バッファがほとんどいっぱいで XoffChar 文字が送信機に送信されたときに、データの転送を続行するかどうかが指定されます。

 

Returns:

  • (boolean)

    ContinueXMitOnXOff



46
47
48
# File 'lib/Win32_SerialPortConfiguration.rb', line 46

def ContinueXMitOnXOff
  @ContinueXMitOnXOff
end

- (boolean) CTSOutflowControl (readonly)

CTSOutflowControl プロパティにより、データを送信する前に Clear To Send (CTS) がオンにされたかどうかが判別されます。

 CTS 

Returns:

  • (boolean)

    CTSOutflowControl



55
56
57
# File 'lib/Win32_SerialPortConfiguration.rb', line 55

def CTSOutflowControl
  @CTSOutflowControl
end

- (string) Description (readonly)

CIM_Setting オブジェクトの説明です。

Returns:

  • (string)

    Description



60
61
62
# File 'lib/Win32_SerialPortConfiguration.rb', line 60

def Description
  @Description
end

- (boolean) DiscardNULLBytes (readonly)

DiscardNULLBytes プロパティにより、NULL バイト (文字) を受信したときに廃棄するかどうかが決定されます。

 

Returns:

  • (boolean)

    DiscardNULLBytes



68
69
70
# File 'lib/Win32_SerialPortConfiguration.rb', line 68

def DiscardNULLBytes
  @DiscardNULLBytes
end

- (boolean) DSROutflowControl (readonly)

DSROutflowControl プロパティにより、データ セット レディ (DSR) 状態のときに、データ アウトフロー制御が有効になっているかどうかが判別されます。

 DSR 

Returns:

  • (boolean)

    DSROutflowControl



77
78
79
# File 'lib/Win32_SerialPortConfiguration.rb', line 77

def DSROutflowControl
  @DSROutflowControl
end

- (boolean) DSRSensitivity (readonly)

DSRSensitivity プロパティにより、通信ドライバが DSR シグナルの状態に反応するかどうかが指定されます。

 

Returns:

  • (boolean)

    DSRSensitivity



85
86
87
# File 'lib/Win32_SerialPortConfiguration.rb', line 85

def DSRSensitivity
  @DSRSensitivity
end

- (string) DTRFlowControlType (readonly)

DTRFlowControlType プロパティにより、接続が確立された後、使用するデータ ターミナル レディ (DTR) フロー制御が指定されます。

 

Returns:

  • (string)

    DTRFlowControlType



91
92
93
# File 'lib/Win32_SerialPortConfiguration.rb', line 91

def DTRFlowControlType
  @DTRFlowControlType
end

- (uint32) EOFCharacter (readonly)

EOFCharacter プロパティにより、データの終わりを知らせるために使用される文字の値が指定されます。

 

Returns:

  • (uint32)

    EOFCharacter



98
99
100
# File 'lib/Win32_SerialPortConfiguration.rb', line 98

def EOFCharacter
  @EOFCharacter
end

- (uint32) ErrorReplaceCharacter (readonly)

ErrorReplaceCharacter プロパティにより、パリティ エラーで受信したバイトを置き換えるために使用する文字の値が指定されます。

 

Returns:

  • (uint32)

    ErrorReplaceCharacter



105
106
107
# File 'lib/Win32_SerialPortConfiguration.rb', line 105

def ErrorReplaceCharacter
  @ErrorReplaceCharacter
end

- (boolean) ErrorReplacementEnabled (readonly)

ErrorReplacementEnabled により、パリティ エラーで受信したバイトを ErrorReplaceCharacter 値で置き換えるかどうかが指定されます。

 

Returns:

  • (boolean)

    ErrorReplacementEnabled



111
112
113
# File 'lib/Win32_SerialPortConfiguration.rb', line 111

def ErrorReplacementEnabled
  @ErrorReplacementEnabled
end

- (uint32) EventCharacter (readonly)

EventCharacter により、ファイルの終わりなどのイベントを知らせるために使用される制御文字の値が指定されます。

 

Returns:

  • (uint32)

    EventCharacter



118
119
120
# File 'lib/Win32_SerialPortConfiguration.rb', line 118

def EventCharacter
  @EventCharacter
end

- (boolean) IsBusy (readonly)

IsBusy プロパティにより、シリアル ポートがビジー状態であるかどうかが判別されます。

 

Returns:

  • (boolean)

    IsBusy



126
127
128
# File 'lib/Win32_SerialPortConfiguration.rb', line 126

def IsBusy
  @IsBusy
end

- (string) Name (readonly)

Name プロパティは、Win32 シリアル ポートの名前を示します。

 

Returns:

  • (string)

    Name



133
134
135
# File 'lib/Win32_SerialPortConfiguration.rb', line 133

def Name
  @Name
end

- (string) Parity (readonly)

Parity プロパティにより、使用されるパリティ チェックのメソッドが指定されます。

 

Returns:

  • (string)

    Parity



145
146
147
# File 'lib/Win32_SerialPortConfiguration.rb', line 145

def Parity
  @Parity
end

- (boolean) ParityCheckEnabled (readonly)

ParityCheckEnabled プロパティにより、パリティ チェックが有効かどうかが決定されます。

 

Returns:

  • (boolean)

    ParityCheckEnabled



153
154
155
# File 'lib/Win32_SerialPortConfiguration.rb', line 153

def ParityCheckEnabled
  @ParityCheckEnabled
end

- (string) RTSFlowControlType (readonly)

RTSFlowControlType プロパティにより、request-to-send (RTS) フロー制御が指定されます。

  RTS 

Returns:

  • (string)

    RTSFlowControlType



168
169
170
# File 'lib/Win32_SerialPortConfiguration.rb', line 168

def RTSFlowControlType
  @RTSFlowControlType
end

- (string) SettingID (readonly)

CIM_Setting オブジェクトを認識する識別子です。

Returns:

  • (string)

    SettingID



173
174
175
# File 'lib/Win32_SerialPortConfiguration.rb', line 173

def SettingID
  @SettingID
end

- (string) StopBits (readonly)

StopBits により、使用されるストップ ビットの数が指定されます。

 StopBits 

Returns:

  • (string)

    StopBits



182
183
184
# File 'lib/Win32_SerialPortConfiguration.rb', line 182

def StopBits
  @StopBits
end

- (uint32) XOffCharacter (readonly)

XOffCharacter プロパティにより、送受信の XOFF 文字の値が指定されます。

 XOFF 

Returns:

  • (uint32)

    XOffCharacter



189
190
191
# File 'lib/Win32_SerialPortConfiguration.rb', line 189

def XOffCharacter
  @XOffCharacter
end

- (uint32) XOffXMitThreshold (readonly)

XOffXMitThreshold プロパティにより、XOFF 文字が送信される前に入力バッファで許可される最大バイト数が指定されます。

Returns:

  • (uint32)

    XOffXMitThreshold



194
195
196
# File 'lib/Win32_SerialPortConfiguration.rb', line 194

def XOffXMitThreshold
  @XOffXMitThreshold
end

- (uint32) XOnCharacter (readonly)

XOnCharacter プロパティにより、送受信の XON 文字の値が指定されます。

 XON 

Returns:

  • (uint32)

    XOnCharacter



201
202
203
# File 'lib/Win32_SerialPortConfiguration.rb', line 201

def XOnCharacter
  @XOnCharacter
end

- (uint32) XOnXMitThreshold (readonly)

XOnXMitThreshold プロパティにより、XON 文字が送信される前に入力バッファで許可される最大バイト数が指定されます。

 

Returns:

  • (uint32)

    XOnXMitThreshold



207
208
209
# File 'lib/Win32_SerialPortConfiguration.rb', line 207

def XOnXMitThreshold
  @XOnXMitThreshold
end

- (uint32) XOnXOffInFlowControl (readonly)

XOnXOffInFlowControl プロパティにより、操作中に XON/XOFF フロー制御が使用されるかどうかが指定されます。

 

Returns:

  • (uint32)

    XOnXOffInFlowControl



215
216
217
# File 'lib/Win32_SerialPortConfiguration.rb', line 215

def XOnXOffInFlowControl
  @XOnXOffInFlowControl
end

- (uint32) XOnXOffOutFlowControl (readonly)

XOnXOffOutFlowControl により、送信中に XON/XOFF フロー制御が使用されるかどうかが指定されます。

 

Returns:

  • (uint32)

    XOnXOffOutFlowControl



223
224
225
# File 'lib/Win32_SerialPortConfiguration.rb', line 223

def XOnXOffOutFlowControl
  @XOnXOffOutFlowControl
end