USB Device Middleware Library 2.10
cy_stc_usb_dev_control_transfer_t Struct Reference

Description

Execute transfer use this structure.

Data Fields

cy_stc_usb_dev_setup_packet_t setup
 Request packet.
 
uint8_t * ptr
 Pointer to data to transfer or space to store data.
 
uint8_t * buffer
 Pointer to buffer to store data send from host to device during control transfer.
 
uint16_t remaining
 Number of bytes remaining to complete send or receive.
 
uint16_t size
 Number of bytes to send or receive.
 
uint16_t bufferSize
 Size of the buffer to store data.
 
uint8_t direction
 Transfer direction.
 
bool zlp
 Defines whether zero length packet is needed to complete data stage.
 
bool notify
 Defines whether trigger callback that notifies end of data stage (device received data)