sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Class/CCID/Src/usbd_ccid_if_template.c
/**
  * @brief  CCID_Init
  *         Initialize the CCID USB Layer
  * @param  pdev: device instance
  * @retval status value
  */
@brief  CCID_Init
Initialize the CCID USB Layer
@param  pdev: device instance
@retval status value
@brief CCID_Init Initialize the CCID USB Layer @param pdev : device instance @retval status value
uint8_t CCID_Init(USBD_HandleTypeDef  *pdev)
{
#ifdef USE_USBD_COMPOSITE
  USBD_CCID_HandleTypeDef  *hccid = (USBD_CCID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId];
#else
  USBD_CCID_HandleTypeDef  *hccid = (USBD_CCID_HandleTypeDef *)pdev->pClassData;
#endif 
  hccid->blkt_state = CCID_STATE_IDLE;
  return (uint8_t)USBD_OK;
}
uint8_t CCID_Init ( USBD_HandleTypeDef * pdev ) { #ifdef USE_USBD_COMPOSITE USBD_CCID_HandleTypeDef * hccid = ( USBD_CCID_HandleTypeDef * ) pdev -> pClassDataCmsit [ pdev -> classId ] ; #else USBD_CCID_HandleTypeDef * hccid = ( USBD_CCID_HandleTypeDef * ) pdev -> pClassData ; #endif hccid -> blkt_state = CCID_STATE_IDLE ; return ( uint8_t ) USBD_OK ; }
@brief  CCID_Init
         Initialize the CCID USB Layer
 @param  pdev: device instance
 @retval status value
@brief CCID_Init Initialize the CCID USB Layer @param pdev : device instance @retval status value
/* USE_USBD_COMPOSITE */ /* CCID Related Initialization */