Loading...
Searching...
No Matches
usbus_cdcacm_device Struct Reference

USBUS CDC ACM context struct. More...

Detailed Description

USBUS CDC ACM context struct.

Definition at line 155 of file acm.h.

#include <acm.h>

Data Fields

usbus_handler_t handler_ctrl
 control handler

 
usbus_interface_t iface_ctrl
 CDC control interface

 
usbus_interface_t iface_data
 CDC data interface

 
usbus_descr_gen_t cdcacm_descr
 CDC descriptor generator

 
usbus_cdcacm_cb_t cb
 Callback for data handlers

 
usbus_cdcacm_coding_cb_t coding_cb
 Callback for ACM coding changes.
 
tsrb_t tsrb
 TSRB for data to the host

 
usbus_tusbus
 USBUS reference

 
size_t occupied
 Number of bytes for the host

 
usbus_cdcacm_line_state_t state
 Current line state

 
event_t flush
 device2host forced flush event

 
usb_req_cdcacm_coding_t coding
 Current coding configuration

 
usbdev_ep_buf_t out_buf [CONFIG_USBUS_CDC_ACM_BULK_EP_SIZE]
 Host to device data buffer.
 
usbdev_ep_buf_t in_buf [CONFIG_USBUS_CDC_ACM_STDIO_BUF_SIZE]
 Device to host data buffer.
 

Field Documentation

◆ cb

usbus_cdcacm_cb_t usbus_cdcacm_device::cb

Callback for data handlers

Definition at line 160 of file acm.h.

◆ cdcacm_descr

usbus_descr_gen_t usbus_cdcacm_device::cdcacm_descr

CDC descriptor generator

Definition at line 159 of file acm.h.

◆ coding

usb_req_cdcacm_coding_t usbus_cdcacm_device::coding

Current coding configuration

Definition at line 167 of file acm.h.

◆ coding_cb

usbus_cdcacm_coding_cb_t usbus_cdcacm_device::coding_cb

Callback for ACM coding changes.

Definition at line 161 of file acm.h.

◆ flush

event_t usbus_cdcacm_device::flush

device2host forced flush event

Definition at line 166 of file acm.h.

◆ handler_ctrl

usbus_handler_t usbus_cdcacm_device::handler_ctrl

control handler

Definition at line 156 of file acm.h.

◆ iface_ctrl

usbus_interface_t usbus_cdcacm_device::iface_ctrl

CDC control interface

Definition at line 157 of file acm.h.

◆ iface_data

usbus_interface_t usbus_cdcacm_device::iface_data

CDC data interface

Definition at line 158 of file acm.h.

◆ in_buf

Device to host data buffer.

Definition at line 177 of file acm.h.

◆ occupied

size_t usbus_cdcacm_device::occupied

Number of bytes for the host

Definition at line 164 of file acm.h.

◆ out_buf

usbdev_ep_buf_t usbus_cdcacm_device::out_buf[CONFIG_USBUS_CDC_ACM_BULK_EP_SIZE]

Host to device data buffer.

Definition at line 172 of file acm.h.

◆ state

usbus_cdcacm_line_state_t usbus_cdcacm_device::state

Current line state

Definition at line 165 of file acm.h.

◆ tsrb

tsrb_t usbus_cdcacm_device::tsrb

TSRB for data to the host

Definition at line 162 of file acm.h.

◆ usbus

usbus_t* usbus_cdcacm_device::usbus

USBUS reference

Definition at line 163 of file acm.h.


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