...
- A pair of Bulk IN and OUT endpoints.
...
Table - CDC EEM Subclass Endpoints Usage describes the usage of the different endpoints:
Anchor |
---|
| Table - CDC EEM Subclass Endpoints Usage |
---|
| Table - CDC EEM Subclass Endpoints Usage |
---|
|
Panel |
---|
borderWidth | 0 |
---|
title | Table - CDC EEM Subclass Endpoints Usage |
---|
|
Endpoint | Direction | Usage |
|
---|
Bulk In | Device-to-host | Send Ethernet frames and commands to host. |
| Bulk OUT | Host-to-device | Receive Ethernet frames and commands from host. |
|
|
CDC EEM Messages
CDC EEM defines a header that is prepended to each message sent to / received from the host. The CDC EEM header has a size of two bytes. A USB transfer on the Bulk endpoints can contain multiple EEM messages. An EEM message can also span on multiple USB transfers.
Table - CDC EEM Message Format describes the content of a CDC EEM message.
Anchor |
---|
| Table - CDC EEM Message Format |
---|
| Table - CDC EEM Message Format |
---|
|
Panel |
---|
borderWidth | 0 |
---|
title | Table - CDC EEM Message Format |
---|
|
Bytes | 0..1 | 2..N |
---|
Content | Header | Payload (optional) |
---|
|
Table - CDC EEM Header Format describes the content of a CDC EEM header.
Anchor |
---|
| Table - CDC EEM Header Format |
---|
| Table - CDC EEM Header Format |
---|
|
Panel |
---|
borderWidth | 0 |
---|
title | Table - CDC EEM Header Format |
---|
|
Bit | 15 | 14 .. 0 |
---|
Content | bmType | Depends on bmType value |
---|
|
- bmType represents the message type, either a regular Ethernet frame or a CDC EEM specific command.
Anchor |
---|
| Table - CDC EEM Data Header Format |
---|
| Table - CDC EEM Data Header Format |
---|
|
Panel |
---|
borderWidth | 0 |
---|
title | Table - CDC EEM Data Header Format |
---|
|
Bit | 15 | 14 | 13 .. 0 |
---|
Content | bmType (0) | bmCRC | Length of Ethernet frame |
---|
|
- bmCRC indicates if the CRC was calculated on the Ethernet frame. If not, CRC is set to 0xDEADBEEF.
Table - CDC EEM Command Header Format describes the content of a CDC EEM command message header. Note that the EEM commands provide USB local link management. This management is opaque to the network stack. Anchor |
---|
| Table - CDC EEM Command Header Format |
---|
| Table - CDC EEM Command Header Format |
---|
|
Panel |
---|
borderWidth | 0 |
---|
title | Table - CDC EEM Command Header Format |
---|
|
Bit | 15 | 14 | 13 .. 11 | 10 .. 0 |
---|
Content | bmType (1) | bmReserved (0) | bmEEMCmd | bmEEMCmdParam |
---|
|
- bmEEMCmd represents the command code to execute.
- bmEEMCmdParam contains command data. Fomat depends on the bmEEMCmd.
...