STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
usbd_core.c File Reference

This file provides all the USBD core functions. More...

#include "usbd_core.h"
Include dependency graph for usbd_core.c:

Go to the source code of this file.

Functions

USBD_StatusTypeDef USBD_Init (USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id)
 USBD_Init Initialize the device stack and load the class driver.
USBD_StatusTypeDef USBD_DeInit (USBD_HandleTypeDef *pdev)
 USBD_DeInit De-Initialize the device library.
USBD_StatusTypeDef USBD_RegisterClass (USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass)
 USBD_RegisterClass Link class driver to Device Core.
USBD_StatusTypeDef USBD_Start (USBD_HandleTypeDef *pdev)
 USBD_Start Start the USB Device Core.
USBD_StatusTypeDef USBD_Stop (USBD_HandleTypeDef *pdev)
 USBD_Stop Stop the USB Device Core.
USBD_StatusTypeDef USBD_RunTestMode (USBD_HandleTypeDef *pdev)
 USBD_RunTestMode Launch test mode process.
USBD_StatusTypeDef USBD_SetClassConfig (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_SetClassConfig Configure device and start the interface.
USBD_StatusTypeDef USBD_ClrClassConfig (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_ClrClassConfig Clear current configuration.
USBD_StatusTypeDef USBD_LL_SetupStage (USBD_HandleTypeDef *pdev, uint8_t *psetup)
 USBD_LL_SetupStage Handle the setup stage.
USBD_StatusTypeDef USBD_LL_DataOutStage (USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata)
 USBD_LL_DataOutStage Handle data OUT stage.
USBD_StatusTypeDef USBD_LL_DataInStage (USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata)
 USBD_LL_DataInStage Handle data in stage.
USBD_StatusTypeDef USBD_LL_Reset (USBD_HandleTypeDef *pdev)
 USBD_LL_Reset Handle Reset event.
USBD_StatusTypeDef USBD_LL_SetSpeed (USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed)
 USBD_LL_SetSpeed Handle Reset event.
USBD_StatusTypeDef USBD_LL_Suspend (USBD_HandleTypeDef *pdev)
 USBD_LL_Suspend Handle Suspend event.
USBD_StatusTypeDef USBD_LL_Resume (USBD_HandleTypeDef *pdev)
 USBD_LL_Resume Handle Resume event.
USBD_StatusTypeDef USBD_LL_SOF (USBD_HandleTypeDef *pdev)
 USBD_LL_SOF Handle SOF event.
USBD_StatusTypeDef USBD_LL_IsoINIncomplete (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_LL_IsoINIncomplete Handle iso in incomplete event.
USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_LL_IsoOUTIncomplete Handle iso out incomplete event.
USBD_StatusTypeDef USBD_LL_DevConnected (USBD_HandleTypeDef *pdev)
 USBD_LL_DevConnected Handle device connection event.
USBD_StatusTypeDef USBD_LL_DevDisconnected (USBD_HandleTypeDef *pdev)
 USBD_LL_DevDisconnected Handle device disconnection event.
uint8_t USBD_CoreFindIF (USBD_HandleTypeDef *pdev, uint8_t index)
 USBD_CoreFindIF return the class index relative to the selected interface.
uint8_t USBD_CoreFindEP (USBD_HandleTypeDef *pdev, uint8_t index)
 USBD_CoreFindEP return the class index relative to the selected endpoint.
void * USBD_GetEpDesc (uint8_t *pConfDesc, uint8_t EpAddr)
 USBD_GetEpDesc This function return the Endpoint descriptor.
USBD_DescHeaderTypeDef * USBD_GetNextDesc (uint8_t *pbuf, uint16_t *ptr)
 USBD_GetNextDesc This function return the next descriptor header.

Detailed Description

This file provides all the USBD core functions.

Author
MCD Application Team
Attention

Copyright (c) 2015 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file usbd_core.c.