STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Peripheral State functions. More...
Functions | |
HCD_StateTypeDef | HAL_HCD_GetState (HCD_HandleTypeDef const *hhcd) |
Return the HCD handle state. | |
HCD_URBStateTypeDef | HAL_HCD_HC_GetURBState (HCD_HandleTypeDef const *hhcd, uint8_t chnum) |
Return URB state for a channel. | |
HCD_HCStateTypeDef | HAL_HCD_HC_GetState (HCD_HandleTypeDef const *hhcd, uint8_t chnum) |
Return the Host Channel state. | |
uint32_t | HAL_HCD_HC_GetXferCount (HCD_HandleTypeDef const *hhcd, uint8_t chnum) |
Return the last host transfer size. | |
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. | |
HAL_StatusTypeDef | HAL_HCD_HC_SetHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num, uint8_t addr, uint8_t PortNbr) |
Set host channel Hub information. | |
HAL_StatusTypeDef | HAL_HCD_HC_ClearHubInfo (HCD_HandleTypeDef *hhcd, uint8_t ch_num) |
Clear host channel hub information. | |
Peripheral State functions.
=============================================================================== ##### Peripheral State functions ##### =============================================================================== [..] This subsection permits to get in run-time the status of the peripheral and the data flow.
HCD_StateTypeDef HAL_HCD_GetState | ( | HCD_HandleTypeDef const * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
Return the HCD handle state.
hhcd | HCD handle |
HAL | state |
Definition at line 1135 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::State.
HCD_URBStateTypeDef HAL_HCD_HC_GetURBState | ( | HCD_HandleTypeDef const * | hhcd, |
uint8_t | chnum ) |
#include <stm32f4xx_hal_hcd.h>
Return URB state for a channel.
hhcd | HCD handle |
chnum | Channel number. This parameter can be a value from 1 to 15 |
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 1154 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::hc.
HCD_HCStateTypeDef HAL_HCD_HC_GetState | ( | HCD_HandleTypeDef const * | hhcd, |
uint8_t | chnum ) |
#include <stm32f4xx_hal_hcd.h>
Return the Host Channel state.
hhcd | HCD handle |
chnum | Channel number. This parameter can be a value from 1 to 15 |
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 1189 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::hc.
uint32_t HAL_HCD_HC_GetXferCount | ( | HCD_HandleTypeDef const * | hhcd, |
uint8_t | chnum ) |
#include <stm32f4xx_hal_hcd.h>
Return the last host transfer size.
hhcd | HCD handle |
chnum | Channel number. This parameter can be a value from 1 to 15 |
last | transfer size in byte |
Definition at line 1167 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::hc.
uint32_t HAL_HCD_GetCurrentFrame | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
Return the current Host frame number.
hhcd | HCD handle |
Current | Host frame number |
Definition at line 1199 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::Instance.
uint32_t HAL_HCD_GetCurrentSpeed | ( | HCD_HandleTypeDef * | hhcd | ) |
#include <stm32f4xx_hal_hcd.h>
Return the Host enumeration speed.
hhcd | HCD handle |
Enumeration | speed |
Definition at line 1209 of file stm32f4xx_hal_hcd.c.
References HCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_HCD_HC_SetHubInfo | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | ch_num, | ||
uint8_t | addr, | ||
uint8_t | PortNbr ) |
#include <stm32f4xx_hal_hcd.c>
Set host channel Hub information.
hhcd | HCD handle |
ch_num | Channel number. This parameter can be a value from 1 to 15 |
addr | Hub address |
PortNbr | Hub port number |
HAL | status |
Definition at line 1223 of file stm32f4xx_hal_hcd.c.
References HAL_OK, HCD_HandleTypeDef::hc, HCD_DEVICE_SPEED_HIGH, and HCD_HandleTypeDef::Instance.
HAL_StatusTypeDef HAL_HCD_HC_ClearHubInfo | ( | HCD_HandleTypeDef * | hhcd, |
uint8_t | ch_num ) |
#include <stm32f4xx_hal_hcd.c>
Clear host channel hub information.
hhcd | HCD handle |
ch_num | Channel number. This parameter can be a value from 1 to 15 |
HAL | status |
Definition at line 1253 of file stm32f4xx_hal_hcd.c.
References HAL_OK, and HCD_HandleTypeDef::hc.
Referenced by HAL_HCD_HC_Init().