STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral State functions

Peripheral State functions. More...

Collaboration diagram for Peripheral State functions:

Functions

PCD_StateTypeDef HAL_PCD_GetState (PCD_HandleTypeDef const *hpcd)
 Return the PCD handle state.
 
HAL_StatusTypeDef HAL_PCD_SetTestMode (const PCD_HandleTypeDef *hpcd, uint8_t testmode)
 Set the USB Device high speed test mode.
 

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

◆ HAL_PCD_GetState()

PCD_StateTypeDef HAL_PCD_GetState ( PCD_HandleTypeDef const * hpcd)

#include <stm32f4xx_hal_pcd.h>

Return the PCD handle state.

Parameters
hpcdPCD handle
Return values
HALstate

Definition at line 2128 of file stm32f4xx_hal_pcd.c.

References PCD_HandleTypeDef::State.

◆ HAL_PCD_SetTestMode()

HAL_StatusTypeDef HAL_PCD_SetTestMode ( const PCD_HandleTypeDef * hpcd,
uint8_t testmode )

#include <stm32f4xx_hal_pcd.c>

Set the USB Device high speed test mode.

Parameters
hpcdPCD handle
testmodeUSB Device high speed test mode
Return values
HALstatus

Definition at line 2140 of file stm32f4xx_hal_pcd.c.

References HAL_OK, and PCD_HandleTypeDef::Instance.