STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Header file of PCD HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | PCD_HandleTypeDef |
PCD Handle Structure definition. More... | |
Typedefs | |
typedef USB_OTG_GlobalTypeDef | PCD_TypeDef |
typedef USB_OTG_CfgTypeDef | PCD_InitTypeDef |
typedef USB_OTG_EPTypeDef | PCD_EPTypeDef |
Enumerations | |
enum | PCD_StateTypeDef { HAL_PCD_STATE_RESET = 0x00 , HAL_PCD_STATE_READY = 0x01 , HAL_PCD_STATE_ERROR = 0x02 , HAL_PCD_STATE_BUSY = 0x03 , HAL_PCD_STATE_TIMEOUT = 0x04 } |
PCD State structure definition. More... | |
enum | PCD_LPM_StateTypeDef { LPM_L0 = 0x00 , LPM_L1 = 0x01 , LPM_L2 = 0x02 , LPM_L3 = 0x03 } |
enum | PCD_LPM_MsgTypeDef { PCD_LPM_L0_ACTIVE = 0x00 , PCD_LPM_L1_ACTIVE = 0x01 } |
enum | PCD_BCD_MsgTypeDef { PCD_BCD_ERROR = 0xFF , PCD_BCD_CONTACT_DETECTION = 0xFE , PCD_BCD_STD_DOWNSTREAM_PORT = 0xFD , PCD_BCD_CHARGING_DOWNSTREAM_PORT = 0xFC , PCD_BCD_DEDICATED_CHARGING_PORT = 0xFB , PCD_BCD_DISCOVERY_COMPLETED = 0x00 } |
Functions | |
HAL_StatusTypeDef | HAL_PCD_Init (PCD_HandleTypeDef *hpcd) |
Initializes the PCD according to the specified parameters in the PCD_InitTypeDef and initialize the associated handle. | |
HAL_StatusTypeDef | HAL_PCD_DeInit (PCD_HandleTypeDef *hpcd) |
DeInitializes the PCD peripheral. | |
void | HAL_PCD_MspInit (PCD_HandleTypeDef *hpcd) |
Initializes the PCD MSP. | |
void | HAL_PCD_MspDeInit (PCD_HandleTypeDef *hpcd) |
DeInitializes PCD MSP. | |
HAL_StatusTypeDef | HAL_PCD_Start (PCD_HandleTypeDef *hpcd) |
Start the USB device. | |
HAL_StatusTypeDef | HAL_PCD_Stop (PCD_HandleTypeDef *hpcd) |
Stop the USB device. | |
void | HAL_PCD_IRQHandler (PCD_HandleTypeDef *hpcd) |
Handles PCD interrupt request. | |
void | HAL_PCD_WKUP_IRQHandler (PCD_HandleTypeDef *hpcd) |
Handles PCD Wakeup interrupt request. | |
void | HAL_PCD_SOFCallback (PCD_HandleTypeDef *hpcd) |
USB Start Of Frame callback. | |
void | HAL_PCD_SetupStageCallback (PCD_HandleTypeDef *hpcd) |
Setup stage callback. | |
void | HAL_PCD_ResetCallback (PCD_HandleTypeDef *hpcd) |
USB Reset callback. | |
void | HAL_PCD_SuspendCallback (PCD_HandleTypeDef *hpcd) |
Suspend event callback. | |
void | HAL_PCD_ResumeCallback (PCD_HandleTypeDef *hpcd) |
Resume event callback. | |
void | HAL_PCD_ConnectCallback (PCD_HandleTypeDef *hpcd) |
Connection event callback. | |
void | HAL_PCD_DisconnectCallback (PCD_HandleTypeDef *hpcd) |
Disconnection event callback. | |
void | HAL_PCD_DataOutStageCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
Data OUT stage callback. | |
void | HAL_PCD_DataInStageCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
Data IN stage callback. | |
void | HAL_PCD_ISOOUTIncompleteCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
Incomplete ISO OUT callback. | |
void | HAL_PCD_ISOINIncompleteCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
Incomplete ISO IN callback. | |
HAL_StatusTypeDef | HAL_PCD_DevConnect (PCD_HandleTypeDef *hpcd) |
Connect the USB device. | |
HAL_StatusTypeDef | HAL_PCD_DevDisconnect (PCD_HandleTypeDef *hpcd) |
Disconnect the USB device. | |
HAL_StatusTypeDef | HAL_PCD_SetAddress (PCD_HandleTypeDef *hpcd, uint8_t address) |
Set the USB Device address. | |
HAL_StatusTypeDef | HAL_PCD_EP_Open (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type) |
Open and configure an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Close (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Deactivate an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Receive (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
Receive an amount of data. | |
HAL_StatusTypeDef | HAL_PCD_EP_Transmit (PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) |
Send an amount of data. | |
HAL_StatusTypeDef | HAL_PCD_EP_SetStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Set a STALL condition over an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_ClrStall (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Clear a STALL condition over in an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Flush (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Flush an endpoint. | |
HAL_StatusTypeDef | HAL_PCD_EP_Abort (PCD_HandleTypeDef *hpcd, uint8_t ep_addr) |
Abort an USB EP transaction. | |
HAL_StatusTypeDef | HAL_PCD_ActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
Activate remote wakeup signalling. | |
HAL_StatusTypeDef | HAL_PCD_DeActivateRemoteWakeup (PCD_HandleTypeDef *hpcd) |
De-activate remote wakeup signalling. | |
HAL_StatusTypeDef | HAL_PCD_SetTestMode (const PCD_HandleTypeDef *hpcd, uint8_t testmode) |
Set the USB Device high speed test mode. | |
uint32_t | HAL_PCD_EP_GetRxCount (PCD_HandleTypeDef const *hpcd, uint8_t ep_addr) |
Get Received Data Size. | |
PCD_StateTypeDef | HAL_PCD_GetState (PCD_HandleTypeDef const *hpcd) |
Return the PCD handle state. | |
Header file of PCD HAL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_hal_pcd.h.