usbus_cdcecm_device Struct Reference

USBUS CDC ECM device interface context. More...

Detailed Description

USBUS CDC ECM device interface context.

Definition at line 92 of file ecm.h.

#include <ecm.h>

Data Fields

usbus_handler_t handler_ctrl
 Control interface handler.
 
usbus_interface_t iface_data
 Data interface.
 
usbus_interface_t iface_ctrl
 Control interface.
 
usbus_interface_alt_t iface_data_alt
 Data alternative (active) interface.
 
usbus_endpoint_tep_in
 Data endpoint in.
 
usbus_endpoint_tep_out
 Data endpoint out.
 
usbus_endpoint_tep_ctrl
 Control endpoint.
 
usbus_hdr_gen_t ecm_hdr
 ECM header generator.
 
event_t rx_flush
 Receive flush event.
 
event_t tx_xmit
 Transmit ready event.
 
netdev_t netdev
 Netdev context struct.
 
uint8_t mac_netdev [ETHERNET_ADDR_LEN]
 this device's MAC address
 
char mac_host [13]
 host side's MAC address as string
 
usbus_string_t mac_str
 String context for the host side mac address.
 
usbus_tusbus
 Ptr to the USBUS context.
 
mutex_t out_lock
 mutex used for locking netif/USBUS send
 
size_t tx_len
 Length of the current tx frame.
 
uint8_t in_buf [ETHERNET_FRAME_LEN]
 Buffer for the received frames.
 
size_t len
 Length of the current rx frame.
 
usbus_cdcecm_notif_t notif
 Startup message notification tracker.
 
unsigned active_iface
 Current active data interface.
 

The documentation for this struct was generated from the following file: