Modules | |
| USBH_OTG_DRIVER | |
| STM32_USB_HOST_LIBRARY | |
Functions | |
| static void | USBH_UserProcess (USBH_HandleTypeDef *phost, uint8_t id) | 
| void | MX_USB_HOST_Init (void) | 
| USB Host initialization function.  More... | |
| void | MX_USB_HOST_Process (void) | 
| void | Error_Handler (void) | 
| This function is executed in case of error occurrence.  More... | |
| USBH_StatusTypeDef | USBH_Get_USB_Status (HAL_StatusTypeDef hal_status) | 
| Retuns the USB status depending on the HAL status:  More... | |
| void | HAL_HCD_MspInit (HCD_HandleTypeDef *hcdHandle) | 
| void | HAL_HCD_MspDeInit (HCD_HandleTypeDef *hcdHandle) | 
| void | HAL_HCD_SOF_Callback (HCD_HandleTypeDef *hhcd) | 
| SOF callback.  More... | |
| void | HAL_HCD_Connect_Callback (HCD_HandleTypeDef *hhcd) | 
| SOF callback.  More... | |
| void | HAL_HCD_Disconnect_Callback (HCD_HandleTypeDef *hhcd) | 
| SOF callback.  More... | |
| void | HAL_HCD_HC_NotifyURBChange_Callback (HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state) | 
| Notify URB state change callback.  More... | |
| void | HAL_HCD_PortEnabled_Callback (HCD_HandleTypeDef *hhcd) | 
| Port Port Enabled callback.  More... | |
| void | HAL_HCD_PortDisabled_Callback (HCD_HandleTypeDef *hhcd) | 
| Port Port Disabled callback.  More... | |
| USBH_StatusTypeDef | USBH_LL_Init (USBH_HandleTypeDef *phost) | 
| Initialize the low level portion of the host driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_DeInit (USBH_HandleTypeDef *phost) | 
| De-Initialize the low level portion of the host driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_Start (USBH_HandleTypeDef *phost) | 
| Start the low level portion of the host driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_Stop (USBH_HandleTypeDef *phost) | 
| Stop the low level portion of the host driver.  More... | |
| USBH_SpeedTypeDef | USBH_LL_GetSpeed (USBH_HandleTypeDef *phost) | 
| Return the USB host speed from the low level driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_ResetPort (USBH_HandleTypeDef *phost) | 
| Reset the Host port of the low level driver.  More... | |
| uint32_t | USBH_LL_GetLastXferSize (USBH_HandleTypeDef *phost, uint8_t pipe) | 
| Return the last transfered packet size.  More... | |
| USBH_StatusTypeDef | USBH_LL_OpenPipe (USBH_HandleTypeDef *phost, uint8_t pipe_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps) | 
| Open a pipe of the low level driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_ClosePipe (USBH_HandleTypeDef *phost, uint8_t pipe) | 
| Close a pipe of the low level driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_SubmitURB (USBH_HandleTypeDef *phost, uint8_t pipe, uint8_t direction, uint8_t ep_type, uint8_t token, uint8_t *pbuff, uint16_t length, uint8_t do_ping) | 
| Submit a new URB to the low level driver.  More... | |
| USBH_URBStateTypeDef | USBH_LL_GetURBState (USBH_HandleTypeDef *phost, uint8_t pipe) | 
| Get a URB state from the low level driver.  More... | |
| USBH_StatusTypeDef | USBH_LL_DriverVBUS (USBH_HandleTypeDef *phost, uint8_t state) | 
| Drive VBUS.  More... | |
| USBH_StatusTypeDef | USBH_LL_SetToggle (USBH_HandleTypeDef *phost, uint8_t pipe, uint8_t toggle) | 
| Set toggle for a pipe.  More... | |
| uint8_t | USBH_LL_GetToggle (USBH_HandleTypeDef *phost, uint8_t pipe) | 
| Return the current toggle of a pipe.  More... | |
| void | USBH_Delay (uint32_t Delay) | 
| Delay routine for the USB Host Library.  More... | |
| void | MX_DriverVbusHS (uint8_t state) | 
| Drive VBUS.  More... | |
Variables | |
| USBH_HandleTypeDef | hUsbHostHS | 
| ApplicationTypeDef | Appli_state = APPLICATION_IDLE | 
| HCD_HandleTypeDef | hhcd_USB_OTG_HS | 
This function is executed in case of error occurrence.
| None | 
| void HAL_HCD_Connect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) | 
SOF callback.
| hhcd | HCD handle | 
| None | 
| void HAL_HCD_Disconnect_Callback | ( | HCD_HandleTypeDef * | hhcd | ) | 
SOF callback.
| hhcd | HCD handle | 
| None | 
| void HAL_HCD_HC_NotifyURBChange_Callback | ( | HCD_HandleTypeDef * | hhcd, | 
| uint8_t | chnum, | ||
| HCD_URBStateTypeDef | urb_state | ||
| ) | 
Notify URB state change callback.
| hhcd | HCD handle | 
| chnum | channel number | 
| urb_state | state | 
| None | 
| void HAL_HCD_MspDeInit | ( | HCD_HandleTypeDef * | hcdHandle | ) | 
USB_OTG_HS GPIO Configuration PB5 ---—> USB_OTG_HS_ULPI_D7 PI11 ---—> USB_OTG_HS_ULPI_DIR PC0 ---—> USB_OTG_HS_ULPI_STP PH4 ---—> USB_OTG_HS_ULPI_NXT PB10 ---—> USB_OTG_HS_ULPI_D3 PB11 ---—> USB_OTG_HS_ULPI_D4 PA5 ---—> USB_OTG_HS_ULPI_CK PB1 ---—> USB_OTG_HS_ULPI_D2 PB12 ---—> USB_OTG_HS_ULPI_D5 PA3 ---—> USB_OTG_HS_ULPI_D0 PB0 ---—> USB_OTG_HS_ULPI_D1 PB13 ---—> USB_OTG_HS_ULPI_D6
| void HAL_HCD_MspInit | ( | HCD_HandleTypeDef * | hcdHandle | ) | 
USB_OTG_HS GPIO Configuration PB5 ---—> USB_OTG_HS_ULPI_D7 PI11 ---—> USB_OTG_HS_ULPI_DIR PC0 ---—> USB_OTG_HS_ULPI_STP PH4 ---—> USB_OTG_HS_ULPI_NXT PB10 ---—> USB_OTG_HS_ULPI_D3 PB11 ---—> USB_OTG_HS_ULPI_D4 PA5 ---—> USB_OTG_HS_ULPI_CK PB1 ---—> USB_OTG_HS_ULPI_D2 PB12 ---—> USB_OTG_HS_ULPI_D5 PA3 ---—> USB_OTG_HS_ULPI_D0 PB0 ---—> USB_OTG_HS_ULPI_D1 PB13 ---—> USB_OTG_HS_ULPI_D6
| void HAL_HCD_PortDisabled_Callback | ( | HCD_HandleTypeDef * | hhcd | ) | 
Port Port Disabled callback.
| hhcd | HCD handle | 
| None | 
| void HAL_HCD_PortEnabled_Callback | ( | HCD_HandleTypeDef * | hhcd | ) | 
Port Port Enabled callback.
| hhcd | HCD handle | 
| None | 
| void HAL_HCD_SOF_Callback | ( | HCD_HandleTypeDef * | hhcd | ) | 
SOF callback.
| hhcd | HCD handle | 
| None | 
| void MX_DriverVbusHS | ( | uint8_t | state | ) | 
Drive VBUS.
| state | : VBUS state This parameter can be one of the these values:
  | 
References data.
USB Host initialization function.
Init USB host library, add supported class and start the library
| None | 
References Error_Handler(), HOST_HS, hUsbHostHS, and USBH_UserProcess().
| void USBH_Delay | ( | uint32_t | Delay | ) | 
Delay routine for the USB Host Library.
| Delay | Delay in ms | 
| None | 
| USBH_StatusTypeDef USBH_Get_USB_Status | ( | HAL_StatusTypeDef | hal_status | ) | 
Retuns the USB status depending on the HAL status:
| hal_status | HAL status | 
| USB | status | 
| USBH_StatusTypeDef USBH_LL_ClosePipe | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe | ||
| ) | 
Close a pipe of the low level driver.
| phost | Host handle | 
| pipe | Pipe index | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_DeInit | ( | USBH_HandleTypeDef * | phost | ) | 
De-Initialize the low level portion of the host driver.
| phost | Host handle | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_DriverVBUS | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | state | ||
| ) | 
Drive VBUS.
| phost | Host handle | 
| state | : VBUS state This parameter can be one of the these values: 0 : VBUS Inactive 1 : VBUS Active | 
| Status | 
References HOST_HS, and MX_DriverVbusHS().
| uint32_t USBH_LL_GetLastXferSize | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe | ||
| ) | 
Return the last transfered packet size.
| phost | Host handle | 
| pipe | Pipe index | 
| Packet | size | 
| USBH_SpeedTypeDef USBH_LL_GetSpeed | ( | USBH_HandleTypeDef * | phost | ) | 
Return the USB host speed from the low level driver.
| phost | Host handle | 
| USBH | speeds | 
| uint8_t USBH_LL_GetToggle | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe | ||
| ) | 
Return the current toggle of a pipe.
| phost | Host handle | 
| pipe | Pipe index | 
| toggle | (0/1) | 
| USBH_URBStateTypeDef USBH_LL_GetURBState | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe | ||
| ) | 
Get a URB state from the low level driver.
| phost | Host handle | 
| pipe | Pipe index This parameter can be a value from 1 to 15 | 
| URB | state This parameter can be one of the these values: 
  | 
| USBH_StatusTypeDef USBH_LL_Init | ( | USBH_HandleTypeDef * | phost | ) | 
Initialize the low level portion of the host driver.
| phost | Host handle | 
| USBH | status | 
References Error_Handler(), hhcd_USB_OTG_HS, and HOST_HS.
| USBH_StatusTypeDef USBH_LL_OpenPipe | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe_num, | ||
| uint8_t | epnum, | ||
| uint8_t | dev_address, | ||
| uint8_t | speed, | ||
| uint8_t | ep_type, | ||
| uint16_t | mps | ||
| ) | 
Open a pipe of the low level driver.
| phost | Host handle | 
| pipe_num | Pipe index | 
| epnum | Endpoint number | 
| dev_address | Device USB address | 
| speed | Device Speed | 
| ep_type | Endpoint type | 
| mps | Endpoint max packet size | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_ResetPort | ( | USBH_HandleTypeDef * | phost | ) | 
Reset the Host port of the low level driver.
| phost | Host handle | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_SetToggle | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe, | ||
| uint8_t | toggle | ||
| ) | 
Set toggle for a pipe.
| phost | Host handle | 
| pipe | Pipe index | 
| toggle | toggle (0/1) | 
| Status | 
| USBH_StatusTypeDef USBH_LL_Start | ( | USBH_HandleTypeDef * | phost | ) | 
Start the low level portion of the host driver.
| phost | Host handle | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_Stop | ( | USBH_HandleTypeDef * | phost | ) | 
Stop the low level portion of the host driver.
| phost | Host handle | 
| USBH | status | 
References USBH_Get_USB_Status().
| USBH_StatusTypeDef USBH_LL_SubmitURB | ( | USBH_HandleTypeDef * | phost, | 
| uint8_t | pipe, | ||
| uint8_t | direction, | ||
| uint8_t | ep_type, | ||
| uint8_t | token, | ||
| uint8_t * | pbuff, | ||
| uint16_t | length, | ||
| uint8_t | do_ping | ||
| ) | 
Submit a new URB to the low level driver.
| phost | Host handle | 
| pipe | Pipe index This parameter can be a value from 1 to 15 | 
| direction | : Channel number This parameter can be one of the these values: 0 : Output 1 : Input | 
| ep_type | : Endpoint Type This parameter can be one of the these values: 
  | 
| token | : Endpoint Type This parameter can be one of the these values: 
  | 
| pbuff | : pointer to URB data | 
| length | : Length of URB data | 
| do_ping | : activate do ping protocol (for high speed only) This parameter can be one of the these values: 0 : do ping inactive 1 : do ping active | 
| Status | 
References USBH_Get_USB_Status().
      
  | 
  static | 
References Appli_state, APPLICATION_DISCONNECT, APPLICATION_READY, and APPLICATION_START.
| ApplicationTypeDef Appli_state = APPLICATION_IDLE | 
| HCD_HandleTypeDef hhcd_USB_OTG_HS | 
| USBH_HandleTypeDef hUsbHostHS |