Loading...
Searching...
No Matches
usbus_cdcecm_device Struct Reference

USBUS CDC ECM device interface context. More...

Detailed Description

USBUS CDC ECM device interface context.

Definition at line 113 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_descr_gen_t ecm_descr
 ECM descriptor 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.
 
usbus_cdcecm_notif_t notif
 Startup message notification tracker.
 
unsigned active_iface
 Current active data interface.
 
usbdev_ep_buf_t data_out [USBUS_ETHERNET_FRAME_BUF]
 Buffer for received frames from the host.
 
usbdev_ep_buf_t data_in [USBUS_CDCECM_EP_DATA_SIZE]
 Host in device out data buffer.
 
usbdev_ep_buf_t control_in [USBUS_CDCECM_EP_CTRL_SIZE]
 Host out device in control buffer.
 
usbus_urb_t out_urb
 Host out device in reception URB.
 

Field Documentation

◆ active_iface

unsigned usbus_cdcecm_device::active_iface

Current active data interface.

Definition at line 132 of file ecm.h.

◆ control_in

usbdev_ep_buf_t usbus_cdcecm_device::control_in[USBUS_CDCECM_EP_CTRL_SIZE]

Host out device in control buffer.

Definition at line 147 of file ecm.h.

◆ data_in

usbdev_ep_buf_t usbus_cdcecm_device::data_in[USBUS_CDCECM_EP_DATA_SIZE]

Host in device out data buffer.

Definition at line 142 of file ecm.h.

◆ data_out

usbdev_ep_buf_t usbus_cdcecm_device::data_out[USBUS_ETHERNET_FRAME_BUF]

Buffer for received frames from the host.

Definition at line 137 of file ecm.h.

◆ ecm_descr

usbus_descr_gen_t usbus_cdcecm_device::ecm_descr

ECM descriptor generator.

Definition at line 121 of file ecm.h.

◆ ep_ctrl

usbus_endpoint_t* usbus_cdcecm_device::ep_ctrl

Control endpoint.

Definition at line 120 of file ecm.h.

◆ ep_in

usbus_endpoint_t* usbus_cdcecm_device::ep_in

Data endpoint in.

Definition at line 118 of file ecm.h.

◆ ep_out

usbus_endpoint_t* usbus_cdcecm_device::ep_out

Data endpoint out.

Definition at line 119 of file ecm.h.

◆ handler_ctrl

usbus_handler_t usbus_cdcecm_device::handler_ctrl

Control interface handler.

Definition at line 114 of file ecm.h.

◆ iface_ctrl

usbus_interface_t usbus_cdcecm_device::iface_ctrl

Control interface.

Definition at line 116 of file ecm.h.

◆ iface_data

usbus_interface_t usbus_cdcecm_device::iface_data

Data interface.

Definition at line 115 of file ecm.h.

◆ iface_data_alt

usbus_interface_alt_t usbus_cdcecm_device::iface_data_alt

Data alternative (active) interface.

Definition at line 117 of file ecm.h.

◆ mac_host

char usbus_cdcecm_device::mac_host[13]

host side's MAC address as string

Definition at line 126 of file ecm.h.

◆ mac_netdev

uint8_t usbus_cdcecm_device::mac_netdev[ETHERNET_ADDR_LEN]

this device's MAC address

Definition at line 125 of file ecm.h.

◆ mac_str

usbus_string_t usbus_cdcecm_device::mac_str

String context for the host side mac address.

Definition at line 127 of file ecm.h.

◆ netdev

netdev_t usbus_cdcecm_device::netdev

Netdev context struct.

Definition at line 124 of file ecm.h.

◆ notif

usbus_cdcecm_notif_t usbus_cdcecm_device::notif

Startup message notification tracker.

Definition at line 131 of file ecm.h.

◆ out_lock

mutex_t usbus_cdcecm_device::out_lock

mutex used for locking netif/USBUS send

Definition at line 129 of file ecm.h.

◆ out_urb

usbus_urb_t usbus_cdcecm_device::out_urb

Host out device in reception URB.

Definition at line 151 of file ecm.h.

◆ rx_flush

event_t usbus_cdcecm_device::rx_flush

Receive flush event.

Definition at line 122 of file ecm.h.

◆ tx_len

size_t usbus_cdcecm_device::tx_len

Length of the current tx frame.

Definition at line 130 of file ecm.h.

◆ tx_xmit

event_t usbus_cdcecm_device::tx_xmit

Transmit ready event.

Definition at line 123 of file ecm.h.

◆ usbus

usbus_t* usbus_cdcecm_device::usbus

Ptr to the USBUS context.

Definition at line 128 of file ecm.h.


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