Public Attributes | List of all members
udd_ctrl_request_t Struct Reference

Global variable to give and record information of the setup request management. More...

#include <udd.h>

Public Attributes

void(* callback )(void)
 Callback called after reception of ZLP from setup request. More...
 
bool(* over_under_run )(void)
 
uint8_t * payload
 
uint16_t payload_size
 Size of buffer to send or fill, and content the number of byte transfered. More...
 
usb_setup_req_t req
 

Detailed Description

Global variable to give and record information of the setup request management.

This global variable allows to decode and response a setup request. It can be updated by udc_process_setup() from UDC or *setup() from UDIs.

Definition at line 74 of file udd.h.

Member Data Documentation

◆ callback

void(* udd_ctrl_request_t::callback) (void)

Callback called after reception of ZLP from setup request.

Definition at line 87 of file udd.h.

◆ over_under_run

bool(* udd_ctrl_request_t::over_under_run) (void)

Callback called when the buffer given (.payload) is full or empty. This one return false to abort data transfer, or true with a new buffer in .payload.

Definition at line 91 of file udd.h.

◆ payload

uint8_t* udd_ctrl_request_t::payload

Point to buffer to send or fill with data following SETUP packet This buffer must be word align for DATA IN phase (use prefix COMPILER_WORD_ALIGNED for buffer)

Definition at line 81 of file udd.h.

◆ payload_size

uint16_t udd_ctrl_request_t::payload_size

Size of buffer to send or fill, and content the number of byte transfered.

Definition at line 84 of file udd.h.

◆ req

usb_setup_req_t udd_ctrl_request_t::req

Data received in USB SETUP packet Note: The swap of "req.wValues" from uin16_t to le16_t is done by UDD.

Definition at line 77 of file udd.h.


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


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:03