Description
Get PHDC connection state.
Files
usbd_phdc.h / usbd_phdc.c
Prototype
Arguments
class_nbr
PHDC instance number.
Returned Value
DEF_YES
, if PHDC is connected.
DEF_NO
, otherwise.
Callers
Application.
Notes / Warnings
USBD_PHDC_IsConn()
is typically used to verify that the device is in ‘configured’ state and that the PHDC instance is ready for communication. The following code illustrates a typical example:
Once the connected status is DEF_YES
, the communication can start.