ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
usb_in_buf_t Struct Reference

One pipe's device-visible IN staging buffer (device -> host payload). More...

#include <board_usb_internal.h>

Data Fields

uint8_t data [k_usb_in_cap]
 Bytes the device queued for the host.
uint16_t len
 Filled length (may span several MPS).
bool valid
 BVAL pulsed: ready for the host.

Detailed Description

One pipe's device-visible IN staging buffer (device -> host payload).

The device fills this through CFIFO (descriptor response on the DCP, echoed bytes on a bulk IN pipe) and pulses CFIFOCTR.BVAL; the host then drains it.

Definition at line 137 of file board_usb_internal.h.

Field Documentation

◆ data

uint8_t usb_in_buf_t::data[k_usb_in_cap]

Bytes the device queued for the host.

Definition at line 138 of file board_usb_internal.h.

◆ len

uint16_t usb_in_buf_t::len

Filled length (may span several MPS).

Definition at line 139 of file board_usb_internal.h.

◆ valid

bool usb_in_buf_t::valid

BVAL pulsed: ready for the host.

Definition at line 140 of file board_usb_internal.h.

Referenced by internal_cfifoctr_write().


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