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.
Fork of TUKS-COURSE-TIMER by
stm32l4xx_hal_hcd.c File Reference
HCD HAL module driver. This file provides firmware functions to manage the following functionalities of the USB Peripheral Controller: + Initialization and de-initialization functions + IO operation functions + Peripheral Control functions + Peripheral State functions. More...
Go to the source code of this file.
Functions | |
static void | HCD_HC_IN_IRQHandler (HCD_HandleTypeDef *hhcd, uint8_t chnum) |
Handle Host Channel IN interrupt requests. | |
static void | HCD_HC_OUT_IRQHandler (HCD_HandleTypeDef *hhcd, uint8_t chnum) |
Handle Host Channel OUT interrupt requests. | |
static void | HCD_RXQLVL_IRQHandler (HCD_HandleTypeDef *hhcd) |
Handle Rx Queue Level interrupt requests. | |
static void | HCD_Port_IRQHandler (HCD_HandleTypeDef *hhcd) |
Handle Host Port interrupt requests. | |
HAL_StatusTypeDef | HAL_HCD_Init (HCD_HandleTypeDef *hhcd) |
Initialize the Host driver. | |
HAL_StatusTypeDef | HAL_HCD_HC_Init (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps) |
Initialize a Host channel. | |
HAL_StatusTypeDef | HAL_HCD_HC_Halt (HCD_HandleTypeDef *hhcd, uint8_t ch_num) |
Halt a Host channel. | |
HAL_StatusTypeDef | HAL_HCD_DeInit (HCD_HandleTypeDef *hhcd) |
DeInitialize the Host driver. | |
__weak void | HAL_HCD_MspInit (HCD_HandleTypeDef *hhcd) |
Initialize the HCD MSP. | |
__weak void | HAL_HCD_MspDeInit (HCD_HandleTypeDef *hhcd) |
DeInitialize the HCD MSP. | |
HAL_StatusTypeDef | HAL_HCD_HC_SubmitRequest (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t direction, uint8_t ep_type, uint8_t token, uint8_t *pbuff, uint16_t length, uint8_t do_ping) |
Submit a new URB for processing. | |
void | HAL_HCD_IRQHandler (HCD_HandleTypeDef *hhcd) |
Handle HCD interrupt request. | |
__weak void | HAL_HCD_SOF_Callback (HCD_HandleTypeDef *hhcd) |
SOF callback. | |
__weak void | HAL_HCD_Connect_Callback (HCD_HandleTypeDef *hhcd) |
Connection Event callback. | |
__weak void | HAL_HCD_Disconnect_Callback (HCD_HandleTypeDef *hhcd) |
Disconnection Event callback. | |
__weak void | HAL_HCD_HC_NotifyURBChange_Callback (HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state) |
Notify URB state change callback. | |
HAL_StatusTypeDef | HAL_HCD_Start (HCD_HandleTypeDef *hhcd) |
Start the Host driver. | |
HAL_StatusTypeDef | HAL_HCD_Stop (HCD_HandleTypeDef *hhcd) |
Stop the Host driver. | |
HAL_StatusTypeDef | HAL_HCD_ResetPort (HCD_HandleTypeDef *hhcd) |
Reset the Host port. | |
HCD_StateTypeDef | HAL_HCD_GetState (HCD_HandleTypeDef *hhcd) |
Return the HCD handle state. | |
HCD_URBStateTypeDef | HAL_HCD_HC_GetURBState (HCD_HandleTypeDef *hhcd, uint8_t chnum) |
Return URB state for a channel. | |
uint32_t | HAL_HCD_HC_GetXferCount (HCD_HandleTypeDef *hhcd, uint8_t chnum) |
Return the last Host transfer size. | |
HCD_HCStateTypeDef | HAL_HCD_HC_GetState (HCD_HandleTypeDef *hhcd, uint8_t chnum) |
Return the Host Channel state. | |
uint32_t | HAL_HCD_GetCurrentFrame (HCD_HandleTypeDef *hhcd) |
Return the current Host frame number. | |
uint32_t | HAL_HCD_GetCurrentSpeed (HCD_HandleTypeDef *hhcd) |
Return the Host enumeration speed. |
Detailed Description
HCD HAL module driver. This file provides firmware functions to manage the following functionalities of the USB Peripheral Controller: + Initialization and de-initialization functions + IO operation functions + Peripheral Control functions + Peripheral State functions.
- Version:
- V1.5.1
- Date:
- 31-May-2016
============================================================================== ##### How to use this driver ##### ============================================================================== [..] (#)Declare a HCD_HandleTypeDef handle structure, for example: HCD_HandleTypeDef hhcd; (#)Fill parameters of Init structure in HCD handle (#)Call HAL_HCD_Init() API to initialize the HCD peripheral (Core, Host core, ...) (#)Initialize the HCD low level resources through the HAL_HCD_MspInit() API: (##) Enable the HCD/USB Low Level interface clock using the following macro (+++) __HAL_RCC_USB_OTG_FS_CLK_ENABLE() (##) Initialize the related GPIO clocks (##) Configure HCD pin-out (##) Configure HCD NVIC interrupt (#)Associate the Upper USB Host stack to the HAL HCD Driver: (##) hhcd.pData = phost; (#)Enable HCD transmission and reception: (##) HAL_HCD_Start();
- Attention:
© COPYRIGHT(c) 2016 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32l4xx_hal_hcd.c.
Generated on Tue Jul 12 2022 17:38:51 by
