USBD_CDC_IsConn

Description

Determine if CDC instance is connected.

Files

usbd_cdc.h/usbd_cdc.c

Prototype

CPU_BOOLEAN  USBD_CDC_IsConn (CPU_INT08U  class_nbr)


Arguments

class_nbr

CDC instance number.

Returned Value

DEF_OK, if CDC instance is connected and device is not in suspended state.

DEF_FAIL, otherwise.

Callers

  • CDC Subclass drivers
  • Application

Notes / Warnings

  1. If the USBD_CDC_IsConn() returns DEF_OK, than the CDC instance is ready for management, notification, read and write operations.