Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Receive data from host through Bulk OUT endpoint. This function is non-blocking. It returns immediately after transfer preparation. Upon transfer completion, a callback provided by the application will be called to finalize the transfer.

Files

usbd_vendor.h / usbd_vendor.c

Prototype

Arguments

class_nbr

Class instance number.

p_buf

Pointer to receive buffer.

buf_len

Receive buffer length in octets.

async_fnct

Receive callback.

p_async_arg

Additional argument provided by application for receive callback.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_NULL_PTR
USBD_ERR_INVALID_ARG
USBD_ERR_INVALID_CLASS_STATE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_EP_INVALID_NBR
USBD_ERR_DEV_INVALID_STATE
USBD_ERR_EP_INVALID_TYPE
USBD_ERR_EP_INVALID_STATE

Returned Value

None.

Callers

Application.

Notes / Warnings

None.

  • No labels