37 #include "usbh_conf.h" 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 110 uint8_t interface_number,
111 uint8_t alt_settings);
135 #if (USBH_USE_OS == 1) USBH_StatusTypeDef USBH_SelectInterface(USBH_HandleTypeDef *phost, uint8_t interface)
USBH_SelectInterface Select current interface.
Header file for usbh_pipes.c.
USBH_StatusTypeDef USBH_LL_Connect(USBH_HandleTypeDef *phost)
USBH_LL_Connect Handle USB Host connexion event.
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.
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...
void USBH_LL_SetTimer(USBH_HandleTypeDef *phost, uint32_t)
USBH_LL_SetTimer Set the initial Host Timer tick.
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.
void USBH_LL_IncTimer(USBH_HandleTypeDef *phost)
USBH_LL_IncTimer Increment Host Timer tick.
USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost)
USBH_Process Background process of the USB Core.
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.
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.
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 USBH_Start(USBH_HandleTypeDef *phost)
USBH_Start Start the USB Host Core.
uint8_t USBH_GetActiveClass(USBH_HandleTypeDef *phost)
USBH_GetActiveClass Return Device Class.
USBH_StatusTypeDef USBH_DeInit(USBH_HandleTypeDef *phost)
HCD_Init De-Initialize the Host portion of the driver.
USBH_StatusTypeDef USBH_Stop(USBH_HandleTypeDef *phost)
USBH_Stop Stop the USB Host Core.
USBH_StatusTypeDef USBH_LL_Disconnect(USBH_HandleTypeDef *phost)
USBH_LL_Disconnect Handle USB Host disconnection event.
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.