本文整理汇总了C++中CDC_IF_Prop_TypeDef::pIf_DeInit方法的典型用法代码示例。如果您正苦于以下问题:C++ CDC_IF_Prop_TypeDef::pIf_DeInit方法的具体用法?C++ CDC_IF_Prop_TypeDef::pIf_DeInit怎么用?C++ CDC_IF_Prop_TypeDef::pIf_DeInit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDC_IF_Prop_TypeDef
的用法示例。
在下文中一共展示了CDC_IF_Prop_TypeDef::pIf_DeInit方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static uint8_t usbd_cdc_msc_DeInit (void *pdev,
uint8_t cfgidx)
{
/* Open EP IN */
DCD_EP_Close(pdev,
CDC_IN_EP);
/* Open EP OUT */
DCD_EP_Close(pdev,
CDC_OUT_EP);
/* Open Command IN EP */
DCD_EP_Close(pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
APP_FOPS.pIf_DeInit();
/* Close MSC EPs */
DCD_EP_Close (pdev , MSC_IN_EP);
DCD_EP_Close (pdev , MSC_OUT_EP);
/* Un Init the BOT layer */
MSC_BOT_DeInit(pdev);
return USBD_OK;
}
示例2:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static uint8_t usbd_cdc_DeInit (void *pdev,
uint8_t cfgidx)
{
/* Open EP IN */
DCD_EP_Close((USB_OTG_CORE_HANDLE*) pdev,
CDC_IN_EP);
/* Open EP OUT */
DCD_EP_Close((USB_OTG_CORE_HANDLE*) pdev,
CDC_OUT_EP);
/* Open Command IN EP */
DCD_EP_Close((USB_OTG_CORE_HANDLE*) pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
APP_FOPS.pIf_DeInit();
return USBD_OK;
}
示例3:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static cyg_uint8 usbd_cdc_DeInit (void *pdev,
cyg_uint8 cfgidx)
{
/* Open EP IN */
DCD_EP_Close(pdev,
CDC_IN_EP);
/* Open EP OUT */
DCD_EP_Close(pdev,
CDC_OUT_EP);
/* Open Command IN EP */
DCD_EP_Close(pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
APP_FOPS.pIf_DeInit();
return USBD_OK;
}
示例4:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static uint8_t usbd_cdc_DeInit (void *pdev,
uint8_t cfgidx)
{
/* Open EP IN */
DCD_EP_Close(pdev,
CDC_IN_EP);
/* Open EP OUT */
DCD_EP_Close(pdev,
CDC_OUT_EP);
/* Open Command IN EP */
DCD_EP_Close(pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
TEMPLATE_fops.pIf_DeInit();
return USBD_OK;
}
示例5:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static uint8_t usbd_cdc_DeInit (void *pdev,
uint8_t cfgidx)
{
usbd_cdc_Change_Open_State(0);
if (cdcConfigured) {
if (USB_Tx_State) {
DCD_EP_Flush(pdev, CDC_IN_EP);
}
/* Close EP IN */
DCD_EP_Close(pdev,
CDC_IN_EP);
/* Close EP OUT */
DCD_EP_Close(pdev,
CDC_OUT_EP);
/* Close Command IN EP */
DCD_EP_Close(pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
APP_FOPS.pIf_DeInit();
}
usbd_cdc_Change_Open_State(0);
cdcConfigured = 0;
USB_Tx_State = 0;
USB_Rx_State = 0;
USB_Rx_Buffer_head = 0;
USB_Rx_Buffer_tail = 0;
USB_Rx_Buffer_length = USB_RX_BUFFER_SIZE;
USB_Tx_Buffer_tail = 0;
USB_Tx_Buffer_head = 0;
return USBD_OK;
}
示例6:
/**
* @brief usbd_cdc_Init
* DeInitialize the CDC layer
* @param pdev: device instance
* @param cfgidx: Configuration index
* @retval status
*/
static uint8_t usbd_composite_DeInit (void *pdev,
uint8_t cfgidx)
{
/* Open EP IN */
DCD_EP_Close(pdev,
CDC_IN_EP);
/* Open EP OUT */
DCD_EP_Close(pdev,
CDC_OUT_EP);
/* Open Command IN EP */
DCD_EP_Close(pdev,
CDC_CMD_EP);
/* Restore default state of the Interface physical components */
APP_FOPS.pIf_DeInit();
/* Close HID EPs */
DCD_EP_Close (pdev , HID_IN_EP);
DCD_EP_Close (pdev , HID_OUT_EP);
return USBD_OK;
}