|
|
%!s(int64=4) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| include | %!s(int64=4) %!d(string=hai) anos | |
| test | %!s(int64=4) %!d(string=hai) anos | |
| CMakeLists.txt | %!s(int64=4) %!d(string=hai) anos | |
| README.md | %!s(int64=4) %!d(string=hai) anos | |
| cdc_acm_host.c | %!s(int64=4) %!d(string=hai) anos | |
This directory contains an implementation of a USB CDC-ACM Host Class Driver that is implemented on top of the USB Host Library.
The CDC-ACM Host driver supports the following types of CDC devices:
The CDC-ACM Class driver supports CDC-ACM devices that meet the following requirements:
0x02 or implement Interface Association Descriptor (IAD)The CDC-ACM Class driver supports CDC-like devices that meet the following requirements:
0xFFFor CDC-like devices, users are responsible for ensuring that they only call APIs (e.g., cdc_acm_host_send_break()) that are supported by the target device.
The following steps outline the typical API call pattern of the CDC-ACM Class Driver
usb_host_install()cdc_acm_host_install()cdc_acm_host_open()/cdc_acm_host_open_vendor_specific() to open a target CDC-ACM/CDC-like device. These functions will block until the target device is connectedcdc_acm_host_data_tx_blocking()cdc_acm_host_close()cdc_acm_host_uninstall()