STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
usbh_core.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive ----------------------------------------------*/
29 #ifndef __USBH_CORE_H
30 #define __USBH_CORE_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "usbh_conf.h"
38 #include "usbh_def.h"
39 #include "usbh_ioreq.h"
40 #include "usbh_pipes.h"
41 #include "usbh_ctlreq.h"
42 
64 #define HOST_USER_SELECT_CONFIGURATION 1
65 #define HOST_USER_CLASS_ACTIVE 2
66 #define HOST_USER_CLASS_SELECTED 3
67 #define HOST_USER_CONNECTION 4
68 #define HOST_USER_DISCONNECTION 5
69 #define HOST_USER_UNRECOVERED_ERROR 6
70 
71 
99 USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void (*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t ), uint8_t id);
103 uint8_t USBH_FindInterface(USBH_HandleTypeDef *phost,
104  uint8_t Class,
105  uint8_t SubClass,
106  uint8_t Protocol);
108 
110  uint8_t interface_number,
111  uint8_t alt_settings);
112 
117 
118 /* USBH Low Level Driver */
123 
128 uint32_t USBH_LL_GetLastXferSize (USBH_HandleTypeDef *phost, uint8_t );
130 
131 USBH_StatusTypeDef USBH_LL_OpenPipe (USBH_HandleTypeDef *phost, uint8_t, uint8_t, uint8_t, uint8_t , uint8_t, uint16_t );
133 USBH_StatusTypeDef USBH_LL_SubmitURB (USBH_HandleTypeDef *phost, uint8_t, uint8_t,uint8_t, uint8_t, uint8_t*, uint16_t, uint8_t );
135 #if (USBH_USE_OS == 1)
136 USBH_StatusTypeDef USBH_LL_NotifyURBChange (USBH_HandleTypeDef *phost);
137 #endif
138 USBH_StatusTypeDef USBH_LL_SetToggle (USBH_HandleTypeDef *phost, uint8_t , uint8_t );
139 uint8_t USBH_LL_GetToggle (USBH_HandleTypeDef *phost, uint8_t );
140 
141 /* USBH Time base */
142 void USBH_Delay (uint32_t Delay);
143 void USBH_LL_SetTimer (USBH_HandleTypeDef *phost, uint32_t );
144 void USBH_LL_IncTimer (USBH_HandleTypeDef *phost);
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif /* __USBH_CORE_H */
154 
166 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
167 
168 
169 
USBH_StatusTypeDef USBH_SelectInterface(USBH_HandleTypeDef *phost, uint8_t interface)
USBH_SelectInterface Select current interface.
Definition: usbh_core.c:233
Header file for usbh_pipes.c.
USBH_StatusTypeDef USBH_LL_Connect(USBH_HandleTypeDef *phost)
USBH_LL_Connect Handle USB Host connexion event.
Definition: usbh_core.c:826
USBH_StatusTypeDef USBH_LL_ClosePipe(USBH_HandleTypeDef *phost, uint8_t)
USBH_LL_ClosePipe Close a pipe of the Low Level Driver.
USBH_StatusTypeDef USBH_LL_DriverVBUS(USBH_HandleTypeDef *phost, uint8_t)
USBH_LL_DriverVBUS Drive VBUS.
void USBH_Delay(uint32_t Delay)
USBH_Delay Delay routine for the USB Host Library.
Header file for usbh_ioreq.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.
Definition: usbh_core.c:274
USBH_StatusTypeDef USBH_LL_Init(USBH_HandleTypeDef *phost)
USBH_LL_Init Initialize the Low Level portion of the Host driver.
uint32_t USBH_LL_GetLastXferSize(USBH_HandleTypeDef *phost, uint8_t)
USBH_LL_GetLastXferSize Return the last transferred packet size.
USBH_SpeedTypeDef USBH_LL_GetSpeed(USBH_HandleTypeDef *phost)
USBH_LL_GetSpeed Return the USB Host Speed from the Low Level Driver.
USBH_StatusTypeDef USBH_LL_DeInit(USBH_HandleTypeDef *phost)
USBH_LL_DeInit De-Initialize the Low Level portion of the Host driver.
USBH_StatusTypeDef USBH_LL_OpenPipe(USBH_HandleTypeDef *phost, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint16_t)
USBH_LL_OpenPipe Open a pipe of the Low Level Driver.
uint8_t USBH_LL_GetToggle(USBH_HandleTypeDef *phost, uint8_t)
USBH_LL_GetToggle Return the current toggle of a pipe.
USBH_StatusTypeDef USBH_LL_Stop(USBH_HandleTypeDef *phost)
USBH_LL_Stop Stop the Low Level portion of the Host driver.
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...
Definition: usbh_core.c:306
void USBH_LL_SetTimer(USBH_HandleTypeDef *phost, uint32_t)
USBH_LL_SetTimer Set the initial Host Timer tick.
Definition: usbh_core.c:791
Header file for usbh_ctlreq.c.
USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void(*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t), uint8_t id)
HCD_Init Initialize the HOST Core.
Definition: usbh_core.c:92
void USBH_LL_IncTimer(USBH_HandleTypeDef *phost)
USBH_LL_IncTimer Increment Host Timer tick.
Definition: usbh_core.c:801
USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost)
USBH_Process Background process of the USB Core.
Definition: usbh_core.c:397
USBH_URBStateTypeDef
Definition: usbh_def.h:384
USBH_StatusTypeDef USBH_LL_SetToggle(USBH_HandleTypeDef *phost, uint8_t, uint8_t)
USBH_LL_SetToggle Set toggle for a pipe.
USBH_StatusTypeDef USBH_RegisterClass(USBH_HandleTypeDef *phost, USBH_ClassTypeDef *pclass)
USBH_RegisterClass Link class driver to Host Core.
Definition: usbh_core.c:199
USBH_URBStateTypeDef USBH_LL_GetURBState(USBH_HandleTypeDef *phost, uint8_t)
USBH_LL_GetURBState Get a URB state from the low level driver.
USBH_StatusTypeDef USBH_ReEnumerate(USBH_HandleTypeDef *phost)
HCD_ReEnumerate Perform a new Enumeration phase.
Definition: usbh_core.c:371
USBH_StatusTypeDef USBH_LL_SubmitURB(USBH_HandleTypeDef *phost, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t *, uint16_t, uint8_t)
USBH_LL_SubmitURB Submit a new URB to the low level driver.
USBH_StatusTypeDef USBH_LL_ResetPort(USBH_HandleTypeDef *phost)
USBH_LL_ResetPort Reset the Host Port of the Low Level Driver.
USBH_StatusTypeDef
Definition: usbh_def.h:302
USBH_StatusTypeDef USBH_Start(USBH_HandleTypeDef *phost)
USBH_Start Start the USB Host Core.
Definition: usbh_core.c:333
uint8_t USBH_GetActiveClass(USBH_HandleTypeDef *phost)
USBH_GetActiveClass Return Device Class.
Definition: usbh_core.c:260
USBH_SpeedTypeDef
Definition: usbh_def.h:317
USBH_StatusTypeDef USBH_DeInit(USBH_HandleTypeDef *phost)
HCD_Init De-Initialize the Host portion of the driver.
Definition: usbh_core.c:143
USBH_StatusTypeDef USBH_Stop(USBH_HandleTypeDef *phost)
USBH_Stop Stop the USB Host Core.
Definition: usbh_core.c:350
USBH_StatusTypeDef USBH_LL_Disconnect(USBH_HandleTypeDef *phost)
USBH_LL_Disconnect Handle USB Host disconnection event.
Definition: usbh_core.c:854
Definitions used in the USB host library.
USBH_StatusTypeDef USBH_LL_Start(USBH_HandleTypeDef *phost)
USBH_LL_Start Start the Low Level portion of the Host driver.