embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module device

Module device 

Source
Expand description

CDC-ECM (Ethernet Control Model) class implementation, aka raw Ethernet over USB.

Unlike CDC-NCM which batches datagrams into complex NTBs, CDC-ECM transfers raw Ethernet frames directly over USB bulk endpoints (one Ethernet frame per USB transfer).

§Compatibility

Well-supported out of the box on Linux, macOS, Android, and Unix/embedded systems.

Modules§

embassy_net
embassy-net driver for the CDC-ECM class.

Structs§

CdcEcmClass
CDC-ECM class instance.
Config
Configuration for CdcEcmClass.
Receiver
Receiver half for the CDC-ECM class.
Sender
Sender half for the CDC-ECM class.
State
State for the CDC-ECM class.

Constants§

CDC_PROTOCOL_NONE
Default protocol.
CDC_SUBCLASS_ECM
CDC ECM subclass.
USB_CLASS_CDC
USB CDC base class.
USB_CLASS_CDC_DATA
USB CDC-Data class.