Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
UHC endpoint buffer info. More...
#include <uhc.h>
Data Fields | |
sys_dnode_t | node |
dlist node | |
uint8_t | setup_pkt [8] |
Control transfer setup packet. | |
struct net_buf * | buf |
Transfer data buffer. | |
uint8_t | addr |
Device (peripheral) address. | |
uint8_t | ep |
Endpoint to which request is associated. | |
uint8_t | attrib |
Endpoint attributes (TBD) | |
uint16_t | mps |
Maximum packet size. | |
uint16_t | timeout |
Timeout in number of frames. | |
unsigned int | queued: 1 |
Flag marks request buffer is queued. | |
unsigned int | stage: 2 |
Control stage status, up to the driver to use it or not. | |
void * | udev |
Pointer to USB device (opaque for the UHC) | |
void * | cb |
Pointer to transfer completion callback (opaque for the UHC) | |
int | err |
Transfer result, 0 on success, other values on error. | |
UHC endpoint buffer info.
This structure is mandatory for all UHC request. It contains the meta data about the request and FIFOs to store net_buf structures for each request.
The members of this structure should not be used directly by a higher layer (host stack).
uint8_t uhc_transfer::addr |
Device (peripheral) address.
uint8_t uhc_transfer::attrib |
Endpoint attributes (TBD)
struct net_buf* uhc_transfer::buf |
Transfer data buffer.
void* uhc_transfer::cb |
Pointer to transfer completion callback (opaque for the UHC)
uint8_t uhc_transfer::ep |
Endpoint to which request is associated.
int uhc_transfer::err |
Transfer result, 0 on success, other values on error.
uint16_t uhc_transfer::mps |
Maximum packet size.
sys_dnode_t uhc_transfer::node |
dlist node
unsigned int uhc_transfer::queued |
Flag marks request buffer is queued.
uint8_t uhc_transfer::setup_pkt[8] |
Control transfer setup packet.
unsigned int uhc_transfer::stage |
Control stage status, up to the driver to use it or not.
uint16_t uhc_transfer::timeout |
Timeout in number of frames.
void* uhc_transfer::udev |
Pointer to USB device (opaque for the UHC)