Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F746NG_patch mbed-rtos mbed
Functions | |
| static USBH_StatusTypeDef | USBH_HandleEnum (USBH_HandleTypeDef *phost) |
| USBH_HandleEnum This function includes the complete enumeration process. | |
| static void | USBH_HandleSof (USBH_HandleTypeDef *phost) |
| USBH_HandleSof Call SOF process. | |
| static USBH_StatusTypeDef | DeInitStateMachine (USBH_HandleTypeDef *phost) |
| DeInitStateMachine De-Initialize the Host state machine. | |
| static void | USBH_Process_OS (void const *argument) |
| USB Host Thread task. | |
| USBH_StatusTypeDef | USBH_Init (USBH_HandleTypeDef *phost, void(*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t), uint8_t id) |
| HCD_Init Initialize the HOST Core. | |
| USBH_StatusTypeDef | USBH_DeInit (USBH_HandleTypeDef *phost) |
| HCD_Init De-Initialize the Host portion of the driver. | |
| USBH_StatusTypeDef | USBH_RegisterClass (USBH_HandleTypeDef *phost, USBH_ClassTypeDef *pclass) |
| USBH_RegisterClass Link class driver to Host Core. | |
| USBH_StatusTypeDef | USBH_SelectInterface (USBH_HandleTypeDef *phost, uint8_t interface) |
| USBH_SelectInterface Select current interface. | |
| uint8_t | USBH_GetActiveClass (USBH_HandleTypeDef *phost) |
| USBH_GetActiveClass Return Device Class. | |
| uint8_t | USBH_FindInterface (USBH_HandleTypeDef *phost, uint8_t Class, uint8_t SubClass, uint8_t Protocol) |
| USBH_FindInterface Find the interface index for a specific class. | |
| uint8_t | USBH_FindInterfaceIndex (USBH_HandleTypeDef *phost, uint8_t interface_number, uint8_t alt_settings) |
| USBH_FindInterfaceIndex Find the interface index for a specific class interface and alternate setting number. | |
| USBH_StatusTypeDef | USBH_Start (USBH_HandleTypeDef *phost) |
| USBH_Start Start the USB Host Core. | |
| USBH_StatusTypeDef | USBH_Stop (USBH_HandleTypeDef *phost) |
| USBH_Stop Stop the USB Host Core. | |
| USBH_StatusTypeDef | USBH_ReEnumerate (USBH_HandleTypeDef *phost) |
| HCD_ReEnumerate Perform a new Enumeration phase. | |
| USBH_StatusTypeDef | USBH_Process (USBH_HandleTypeDef *phost) |
| USBH_Process Background process of the USB Core. | |
| void | USBH_LL_SetTimer (USBH_HandleTypeDef *phost, uint32_t time) |
| USBH_LL_SetTimer Set the initial Host Timer tick. | |
| void | USBH_LL_IncTimer (USBH_HandleTypeDef *phost) |
| USBH_LL_IncTimer Increment Host Timer tick. | |
| USBH_StatusTypeDef | USBH_LL_Connect (USBH_HandleTypeDef *phost) |
| USBH_LL_Connect Handle USB Host connexion event. | |
| USBH_StatusTypeDef | USBH_LL_Disconnect (USBH_HandleTypeDef *phost) |
| USBH_LL_Disconnect Handle USB Host disconnection event. | |
| USBH_StatusTypeDef | USBH_LL_NotifyURBChange (USBH_HandleTypeDef *phost) |
| USBH_LL_NotifyURBChange Notify URB state Change. | |
Function Documentation
| static USBH_StatusTypeDef DeInitStateMachine | ( | USBH_HandleTypeDef * | phost ) | [static] |
DeInitStateMachine De-Initialize the Host state machine.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 162 of file usbh_core.c.
| USBH_StatusTypeDef USBH_DeInit | ( | USBH_HandleTypeDef * | phost ) |
HCD_Init De-Initialize the Host portion of the driver.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 143 of file usbh_core.c.
| uint8_t USBH_FindInterface | ( | USBH_HandleTypeDef * | phost, |
| uint8_t | Class, | ||
| uint8_t | SubClass, | ||
| uint8_t | Protocol | ||
| ) |
USBH_FindInterface Find the interface index for a specific class.
- Parameters:
-
phost,: Host Handle Class,: Class code SubClass,: SubClass code Protocol,: Protocol code
- Return values:
-
interface index in the configuration structure
- Note:
- : (1)interface index 0xFF means interface index not found
Definition at line 274 of file usbh_core.c.
| uint8_t USBH_FindInterfaceIndex | ( | USBH_HandleTypeDef * | phost, |
| uint8_t | interface_number, | ||
| uint8_t | alt_settings | ||
| ) |
USBH_FindInterfaceIndex Find the interface index for a specific class interface and alternate setting number.
- Parameters:
-
phost,: Host Handle interface_number,: interface number alt_settings : alternate setting number
- Return values:
-
interface index in the configuration structure
- Note:
- : (1)interface index 0xFF means interface index not found
Definition at line 306 of file usbh_core.c.
| uint8_t USBH_GetActiveClass | ( | USBH_HandleTypeDef * | phost ) |
USBH_GetActiveClass Return Device Class.
- Parameters:
-
phost,: Host Handle interface,: Interface index
- Return values:
-
Class Code
Definition at line 260 of file usbh_core.c.
| static USBH_StatusTypeDef USBH_HandleEnum | ( | USBH_HandleTypeDef * | phost ) | [static] |
USBH_HandleEnum This function includes the complete enumeration process.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH_Status
Definition at line 609 of file usbh_core.c.
| void USBH_HandleSof | ( | USBH_HandleTypeDef * | phost ) | [static] |
USBH_HandleSof Call SOF process.
- Parameters:
-
phost,: Host Handle
- Return values:
-
None
Definition at line 813 of file usbh_core.c.
| USBH_StatusTypeDef USBH_Init | ( | USBH_HandleTypeDef * | phost, |
| void(*)(USBH_HandleTypeDef *phost, uint8_t) | pUsrFunc, | ||
| uint8_t | id | ||
| ) |
HCD_Init Initialize the HOST Core.
- Parameters:
-
phost,: Host Handle pUsrFunc,: User Callback
- Return values:
-
USBH Status
Definition at line 92 of file usbh_core.c.
| USBH_StatusTypeDef USBH_LL_Connect | ( | USBH_HandleTypeDef * | phost ) |
USBH_LL_Connect Handle USB Host connexion event.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH_Status
Definition at line 826 of file usbh_core.c.
| USBH_StatusTypeDef USBH_LL_Disconnect | ( | USBH_HandleTypeDef * | phost ) |
USBH_LL_Disconnect Handle USB Host disconnection event.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH_Status
Definition at line 854 of file usbh_core.c.
| void USBH_LL_IncTimer | ( | USBH_HandleTypeDef * | phost ) |
USBH_LL_IncTimer Increment Host Timer tick.
- Parameters:
-
phost,: Host Handle
- Return values:
-
None
Definition at line 801 of file usbh_core.c.
| USBH_StatusTypeDef USBH_LL_NotifyURBChange | ( | USBH_HandleTypeDef * | phost ) |
USBH_LL_NotifyURBChange Notify URB state Change.
- Parameters:
-
phost,: Host handle
- Return values:
-
USBH Status
Definition at line 911 of file usbh_core.c.
| void USBH_LL_SetTimer | ( | USBH_HandleTypeDef * | phost, |
| uint32_t | time | ||
| ) |
USBH_LL_SetTimer Set the initial Host Timer tick.
- Parameters:
-
phost,: Host Handle
- Return values:
-
None
Definition at line 791 of file usbh_core.c.
| USBH_StatusTypeDef USBH_Process | ( | USBH_HandleTypeDef * | phost ) |
USBH_Process Background process of the USB Core.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 397 of file usbh_core.c.
| static void USBH_Process_OS | ( | void const * | argument ) | [static] |
USB Host Thread task.
- Parameters:
-
pvParameters not used
- Return values:
-
None
Definition at line 890 of file usbh_core.c.
| USBH_StatusTypeDef USBH_ReEnumerate | ( | USBH_HandleTypeDef * | phost ) |
HCD_ReEnumerate Perform a new Enumeration phase.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 371 of file usbh_core.c.
| USBH_StatusTypeDef USBH_RegisterClass | ( | USBH_HandleTypeDef * | phost, |
| USBH_ClassTypeDef * | pclass | ||
| ) |
USBH_RegisterClass Link class driver to Host Core.
- Parameters:
-
phost : Host Handle pclass,: Class handle
- Return values:
-
USBH Status
Definition at line 199 of file usbh_core.c.
| USBH_StatusTypeDef USBH_SelectInterface | ( | USBH_HandleTypeDef * | phost, |
| uint8_t | interface | ||
| ) |
USBH_SelectInterface Select current interface.
- Parameters:
-
phost,: Host Handle interface,: Interface number
- Return values:
-
USBH Status
Definition at line 233 of file usbh_core.c.
| USBH_StatusTypeDef USBH_Start | ( | USBH_HandleTypeDef * | phost ) |
USBH_Start Start the USB Host Core.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 333 of file usbh_core.c.
| USBH_StatusTypeDef USBH_Stop | ( | USBH_HandleTypeDef * | phost ) |
USBH_Stop Stop the USB Host Core.
- Parameters:
-
phost,: Host Handle
- Return values:
-
USBH Status
Definition at line 350 of file usbh_core.c.
Generated on Tue Jul 12 2022 14:58:53 by
1.7.2