39.2.1.20 usb_h_high_bw_out
Issue a periodic high bandwidth output on a pipe.
static int32_t usb_h_high_bw_out(
struct usb_h_pipe * pipe,
uint8_t * data,
uint32_t length,
uint16_t trans_pkt_size
)
Parameters
- pipe
-
Type: struct usb_h_pipe *
The pipe
- data
-
Type: uint8_t *
Pointer to the data buffer
- length
-
Type: uint32_t
The data length
- trans_pkt_size
-
Type: uint16_t
The transaction packet sizes in a micro frame, 0 to use endpoint max packet size
Returns
Type: int32_t
Operation result status
- ERR_NOT_INITIALIZED
-
The pipe is not allocated
- ERR_BUSY
-
The pipe is busy transferring
- ERR_INVALID_ARG
-
Argument error
- ERR_UNSUPPORTED_OP
-
The pipe is not a high bandwidth periodic pipe, or the DMA feature is not enabled, or high bandwidth not enabled
- ERR_NONE
-
The operation is done successfully