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
Peripheral State functions
[HCD Exported Functions]
Peripheral State functions. More...
Functions | |
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
Peripheral State functions.
=============================================================================== ##### Peripheral State functions ##### =============================================================================== [..] This subsection permits to get in run-time the status of the peripheral and the data flow.
Function Documentation
uint32_t HAL_HCD_GetCurrentFrame | ( | HCD_HandleTypeDef * | hhcd ) |
Return the current Host frame number.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
Current Host frame number
Definition at line 808 of file stm32l4xx_hal_hcd.c.
uint32_t HAL_HCD_GetCurrentSpeed | ( | HCD_HandleTypeDef * | hhcd ) |
Return the Host enumeration speed.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
Enumeration speed
Definition at line 818 of file stm32l4xx_hal_hcd.c.
HCD_StateTypeDef HAL_HCD_GetState | ( | HCD_HandleTypeDef * | hhcd ) |
Return the HCD handle state.
- Parameters:
-
hhcd,: HCD handle
- Return values:
-
HAL state
Definition at line 744 of file stm32l4xx_hal_hcd.c.
HCD_HCStateTypeDef HAL_HCD_HC_GetState | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | chnum | ||
) |
Return the Host Channel state.
- Parameters:
-
hhcd,: HCD handle chnum,: Channel number. This parameter can be a value from 1 to 15
- Return values:
-
Host channel state This parameter can be one of these values: HC_IDLE/ HC_XFRC/ HC_HALTED/ HC_NYET/ HC_NAK/ HC_STALL/ HC_XACTERR/ HC_BBLERR/ HC_DATATGLERR
Definition at line 798 of file stm32l4xx_hal_hcd.c.
HCD_URBStateTypeDef HAL_HCD_HC_GetURBState | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | chnum | ||
) |
Return URB state for a channel.
- Parameters:
-
hhcd,: HCD handle chnum,: Channel number. This parameter can be a value from 1 to 15
- Return values:
-
URB state. This parameter can be one of these values: URB_IDLE/ URB_DONE/ URB_NOTREADY/ URB_NYET/ URB_ERROR/ URB_STALL
Definition at line 763 of file stm32l4xx_hal_hcd.c.
uint32_t HAL_HCD_HC_GetXferCount | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | chnum | ||
) |
Return the last Host transfer size.
- Parameters:
-
hhcd,: HCD handle chnum,: Channel number. This parameter can be a value from 1 to 15
- Return values:
-
last transfer size in byte
Definition at line 776 of file stm32l4xx_hal_hcd.c.
Generated on Tue Jul 12 2022 17:38:53 by
