|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Test-access surface for the USB CDC line-coding decoder. More...
Go to the source code of this file.
Functions | |
| void | ra8_usb_cdc_test_apply_line_coding (const uint8_t *data, uint16_t len) |
| Drive the private SET_LINE_CODING decoder from host tests. | |
Test-access surface for the USB CDC line-coding decoder.
Declares the line-coding decoder so host tests can exercise its compound input guard without manufacturing an asynchronous EP0 OUT packet. Production callers continue to reach it only through the CDC SETUP handler.
Definition in file ra8_usb_cdc_internal.h.
| void ra8_usb_cdc_test_apply_line_coding | ( | const uint8_t * | data, |
| uint16_t | len ) |
Drive the private SET_LINE_CODING decoder from host tests.
Forwards the caller-owned payload to the same private decoder used by the CDC SETUP handler. This is a test-access seam only; production code continues to call the private helper directly.
| [in] | data | Pointer to the line-coding payload in host byte order; may be null to exercise the reject path. |
| [in] | len | Length of data in bytes. |
data is non-null, it references at least len readable bytes. Definition at line 241 of file ra8_usb_cdc.c.
References internal_apply_line_coding().