USBD_DevStateGet

Description

Gets current device state.

Files

usbd_core.h/usbd_core.c

Prototype

USBD_DEV_STATE  USBD_DevStateGet (CPU_INT08U   dev_nbr,
                                  USBD_ERR    *p_err);


Arguments

dev_nbr

Device number.

p_err

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

USBD_ERR_NONE
USBD_ERR_DEV_INVALID_NBR

Returned Value

Current device state, if no error(s).

USBD_DEV_STATE_NONE, otherwise.

Callers

Application,

Classes.

Notes / Warnings

None.