CDC(Communication Device Class Version1.1 クラスコード02h)、サブクラスコード02h=Abstract Control Modelを対象にします
TAやモデムの事の様です
標準リクエストは省略して、使いそうなクラスリクエストは下記です。英語だから分からない、しかもドキュメントの構成が分かり辛いです
USB仮想シリアル・サンプル・プロジェクトでは未使用? でもMandatory・・・
This request is used to issue a command in the format of the supported control protocol of the Communication Class interface.
USB仮想シリアル・サンプル・プロジェクトでは未使用? でもMandatory・・・
This request is used to request a response in the format of the supported control protocol of the Communication Class interface.
使用!!
This request allows the host to specify typical asynchronous line-character formatting properties, which may be required by some applications. This request applies to asynchronous byte stream data class interfaces and endpoints; it also applies to data transfers both from the host to the device and from the device to the host.
USB仮想シリアル・サンプル・プロジェクトで使用!!
This request allows the host to find out the currently configured line coding.
The line coding properties are defined in the following table:
USB仮想シリアル・サンプル・プロジェクトで使用!!
This request generates RS-232/V.24 style control signals.
Control Signal Bitmap Values for SetControlLineState
TAやモデムの事の様です
標準リクエストは省略して、使いそうなクラスリクエストは下記です。英語だから分からない、しかもドキュメントの構成が分かり辛いです
USB仮想シリアル・サンプル・プロジェクトでは未使用? でもMandatory・・・
This request is used to issue a command in the format of the supported control protocol of the Communication Class interface.
バイト | フィールド | 説 明 |
---|---|---|
0 | bmRequestType | 0 01 00001B |
1 | bRequest | 00h:SEND_ENCAPSULATED_COMMAND |
2 | wValue | Zero |
3 | ||
4 | wIndex | Interface |
5 | ||
6 | wLength | Amount of data, in bytes, associated with this recipient. |
7 | ||
8 | Data | Control protocol-based command |
USB仮想シリアル・サンプル・プロジェクトでは未使用? でもMandatory・・・
This request is used to request a response in the format of the supported control protocol of the Communication Class interface.
バイト | フィールド | 説 明 |
---|---|---|
0 | bmRequestType | 1 01 00001B |
1 | bRequest | 01h:GET_ENCAPSULATED_RESPONSE |
2 | wValue | Zero |
3 | ||
4 | wIndex | Interface |
5 | ||
6 | wLength | Amount of data, in bytes, associated with this recipient. |
7 | ||
8 | Data | Protocol dependent data |
使用!!
This request allows the host to specify typical asynchronous line-character formatting properties, which may be required by some applications. This request applies to asynchronous byte stream data class interfaces and endpoints; it also applies to data transfers both from the host to the device and from the device to the host.
バイト | フィールド | 説 明 |
---|---|---|
0 | bmRequestType | 0 01 00001B |
1 | bRequest | 20h:SET_LINE_CODING・・・・・・・・・・・・・・・・・ |
2 | wValue | Zero |
3 | ||
4 | wIndex | Interface |
5 | ||
6 | wLength | Size of Structure |
7 | ||
8 | Data | Line Coding Structure |
USB仮想シリアル・サンプル・プロジェクトで使用!!
This request allows the host to find out the currently configured line coding.
バイト | フィールド | 説 明 |
---|---|---|
0 | bmRequestType | 1 01 00001B |
1 | bRequest | 21h:GET_LINE_CODING・・・・・・・・・・・・・・・・・ |
2 | wValue | Zero |
3 | ||
4 | wIndex | Interface |
5 | ||
6 | wLength | Size of Structure |
7 | ||
8 | Data | Line Coding Structure |
The line coding properties are defined in the following table:
Off- set | Field | Size | Value | Description |
---|---|---|---|---|
0 ・ ・ | dwDTERate | 4 | Number | Data terminal rate, in bits per second. |
4 | bCharFormat | 1 | Number | Stop bits ・・0 - 1 Stop bit ・・1 - 1.5 Stop bits ・・2 - 2 Stop bits |
5 | bParityType | 1 | Number | Parity ・・0 - None ・・1 - Odd ・・2 - Even ・・3 - Mark ・・4 - Space |
6 ・ ・ | bDataBits | 1 | Number | Data bits (5, 6, 7, 8 or 16). |
USB仮想シリアル・サンプル・プロジェクトで使用!!
This request generates RS-232/V.24 style control signals.
バイト | フィールド | 説 明 |
---|---|---|
0 | bmRequestType | 0 01 00001B |
1 | bRequest | 22h:SET_CONTROL_LINE_STATE・・・・・・・・・・・・・・・・・ |
2 | wValue | Control Signal Bitmap |
3 | ||
4 | wIndex | Interface |
5 | ||
6 | wLength | Zero |
7 | ||
8 | Data | None |
Control Signal Bitmap Values for SetControlLineState
Bit position | Description |
---|---|
D15...D2 | RESERVED (Reset to zero)・・・・・・・・・・・・・・・・・ |
D1 | Carrier control for half duplex modems. This signal corresponds to V.24 signal 105 and RS-232 signal RTS. ・・・・・・・・・・0 - Deactivate carrier ・・・・・・・・・・1 - Activate carrier The device ignores the value of this bit when operating in full duplex mode. |
D0 | Indicates to DCE if DTE is present or not. This signal corresponds to V.24 signal 108/2 and RS-232 signal DTR. ・・・・・・・・・・0 - Not Present ・・・・・・・・・・1 - Present |
最新コメント
2017-08-16
2017-08-15
2017-03-05
2010-11-25
2010-11-17