当前位置: 首页>>代码示例>>C++>>正文


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怎么用?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;
}
开发者ID:ChrelleP,项目名称:autoquad,代码行数:34,代码来源:usbd_cdc_msc_core.c

示例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;
}
开发者ID:bminerd,项目名称:Plat4m_Ui,代码行数:27,代码来源:usbd_cdc_core.c

示例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;
}
开发者ID:JanusErasmus,项目名称:stmf4-discovery,代码行数:27,代码来源:usbd_cdc_core.c

示例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;
}
开发者ID:Ghanyy,项目名称:PTM-STM32F4,代码行数:27,代码来源:usbd_cdc_core.c

示例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;
}
开发者ID:Xcping2013,项目名称:firmware,代码行数:46,代码来源:usbd_cdc_core.c

示例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;
}
开发者ID:nbreit,项目名称:snapsWinter,代码行数:31,代码来源:usbd_composite_core.c


注:本文中的CDC_IF_Prop_TypeDef::pIf_DeInit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。