STSW-STLKT01
|
This file implements the USB Device library callbacks and MSP. More...
#include "stm32l4xx_hal.h"
#include "usbd_core.h"
Go to the source code of this file.
Functions | |
void | HAL_PCD_MspInit (PCD_HandleTypeDef *hpcd) |
Initializes the PCD MSP. More... | |
void | HAL_PCD_MspDeInit (PCD_HandleTypeDef *hpcd) |
DeInitializes the PCD MSP. More... | |
void | HAL_PCD_SetupStageCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_DataOutStageCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
SOF callback. More... | |
void | HAL_PCD_DataInStageCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
SOF callback. More... | |
void | HAL_PCD_SOFCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_ResetCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_SuspendCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_ResumeCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_ISOOUTIncompleteCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
SOF callback. More... | |
void | HAL_PCD_ISOINIncompleteCallback (PCD_HandleTypeDef *hpcd, uint8_t epnum) |
SOF callback. More... | |
void | HAL_PCD_ConnectCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
void | HAL_PCD_DisconnectCallback (PCD_HandleTypeDef *hpcd) |
SOF callback. More... | |
USBD_StatusTypeDef | USBD_LL_Init (USBD_HandleTypeDef *pdev) |
USBD_LL_Init Initialize the Low Level portion of the Device driver. More... | |
USBD_StatusTypeDef | USBD_LL_DeInit (USBD_HandleTypeDef *pdev) |
USBD_LL_DeInit De-Initialize the Low Level portion of the Device driver. More... | |
USBD_StatusTypeDef | USBD_LL_Start (USBD_HandleTypeDef *pdev) |
USBD_LL_Start Start the Low Level portion of the Device driver. More... | |
USBD_StatusTypeDef | USBD_LL_Stop (USBD_HandleTypeDef *pdev) |
USBD_LL_Stop Stop the Low Level portion of the Device driver. More... | |
USBD_StatusTypeDef | USBD_LL_OpenEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps) |
USBD_LL_OpenEP Open an endpoint of the Low Level Driver. More... | |
USBD_StatusTypeDef | USBD_LL_CloseEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_CloseEP Close an endpoint of the Low Level Driver. More... | |
USBD_StatusTypeDef | USBD_LL_FlushEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_FlushEP Flush an endpoint of the Low Level Driver. More... | |
USBD_StatusTypeDef | USBD_LL_StallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_StallEP Set a Stall condition on an endpoint of the Low Level Driver. More... | |
USBD_StatusTypeDef | USBD_LL_ClearStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_ClearStallEP Clear a Stall condition on an endpoint of the Low Level Driver. More... | |
uint8_t | USBD_LL_IsStallEP (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_IsStallEP Return Stall condition. More... | |
USBD_StatusTypeDef | USBD_LL_SetUSBAddress (USBD_HandleTypeDef *pdev, uint8_t dev_addr) |
USBD_LL_SetDevAddress Assign an USB address to the device. More... | |
USBD_StatusTypeDef | USBD_LL_Transmit (USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size) |
USBD_LL_Transmit Transmit data over an endpoint. More... | |
USBD_StatusTypeDef | USBD_LL_PrepareReceive (USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint16_t size) |
USBD_LL_PrepareReceive prepare an endpoint for reception. More... | |
uint32_t | USBD_LL_GetRxDataSize (USBD_HandleTypeDef *pdev, uint8_t ep_addr) |
USBD_LL_GetRxDataSize Return the last transfered packet size. More... | |
void | USBD_LL_Delay (uint32_t Delay) |
USBD_LL_Delay Delay routine for the USB Device Library. More... | |
Variables | |
PCD_HandleTypeDef | hpcd |
Detailed Description
This file implements the USB Device library callbacks and MSP.
- Author
- Central Labs
- Version
- V1.1.0
- Date
- 11-Jan-2016
- Attention
© COPYRIGHT(c) 2014 STMicroelectronics
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file usbd_conf_l4.c.
Function Documentation
◆ HAL_PCD_ConnectCallback()
void HAL_PCD_ConnectCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 189 of file usbd_conf_l4.c.
◆ HAL_PCD_DataInStageCallback()
void HAL_PCD_DataInStageCallback | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | epnum | ||
) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 115 of file usbd_conf_l4.c.
◆ HAL_PCD_DataOutStageCallback()
void HAL_PCD_DataOutStageCallback | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | epnum | ||
) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 105 of file usbd_conf_l4.c.
◆ HAL_PCD_DisconnectCallback()
void HAL_PCD_DisconnectCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 199 of file usbd_conf_l4.c.
◆ HAL_PCD_ISOINIncompleteCallback()
void HAL_PCD_ISOINIncompleteCallback | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | epnum | ||
) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 179 of file usbd_conf_l4.c.
◆ HAL_PCD_ISOOUTIncompleteCallback()
void HAL_PCD_ISOOUTIncompleteCallback | ( | PCD_HandleTypeDef * | hpcd, |
uint8_t | epnum | ||
) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 169 of file usbd_conf_l4.c.
◆ HAL_PCD_MspDeInit()
void HAL_PCD_MspDeInit | ( | PCD_HandleTypeDef * | hpcd | ) |
DeInitializes the PCD MSP.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 76 of file usbd_conf_l4.c.
◆ HAL_PCD_MspInit()
void HAL_PCD_MspInit | ( | PCD_HandleTypeDef * | hpcd | ) |
Initializes the PCD MSP.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 42 of file usbd_conf_l4.c.
◆ HAL_PCD_ResetCallback()
void HAL_PCD_ResetCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 135 of file usbd_conf_l4.c.
◆ HAL_PCD_ResumeCallback()
void HAL_PCD_ResumeCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 159 of file usbd_conf_l4.c.
◆ HAL_PCD_SetupStageCallback()
void HAL_PCD_SetupStageCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 95 of file usbd_conf_l4.c.
◆ HAL_PCD_SOFCallback()
void HAL_PCD_SOFCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 125 of file usbd_conf_l4.c.
◆ HAL_PCD_SuspendCallback()
void HAL_PCD_SuspendCallback | ( | PCD_HandleTypeDef * | hpcd | ) |
SOF callback.
- Parameters
-
hpcd PCD handle
- Return values
-
None
Definition at line 149 of file usbd_conf_l4.c.
◆ USBD_LL_ClearStallEP()
USBD_StatusTypeDef USBD_LL_ClearStallEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_ClearStallEP Clear a Stall condition on an endpoint of the Low Level Driver.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
USBD Status
Definition at line 347 of file usbd_conf_l4.c.
◆ USBD_LL_CloseEP()
USBD_StatusTypeDef USBD_LL_CloseEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_CloseEP Close an endpoint of the Low Level Driver.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
USBD Status
Definition at line 308 of file usbd_conf_l4.c.
◆ USBD_LL_DeInit()
USBD_StatusTypeDef USBD_LL_DeInit | ( | USBD_HandleTypeDef * | pdev | ) |
USBD_LL_DeInit De-Initialize the Low Level portion of the Device driver.
- Parameters
-
pdev Device handle
- Return values
-
USBD Status
Definition at line 249 of file usbd_conf_l4.c.
◆ USBD_LL_Delay()
void USBD_LL_Delay | ( | uint32_t | Delay | ) |
USBD_LL_Delay Delay routine for the USB Device Library.
- Parameters
-
Delay Delay in ms
- Return values
-
None
Definition at line 440 of file usbd_conf_l4.c.
◆ USBD_LL_FlushEP()
USBD_StatusTypeDef USBD_LL_FlushEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_FlushEP Flush an endpoint of the Low Level Driver.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
USBD Status
Definition at line 321 of file usbd_conf_l4.c.
◆ USBD_LL_GetRxDataSize()
uint32_t USBD_LL_GetRxDataSize | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_GetRxDataSize Return the last transfered packet size.
- Parameters
-
phost Device handle ep_addr Endpoint Number
- Return values
-
Recived Data Size
Definition at line 429 of file usbd_conf_l4.c.
◆ USBD_LL_Init()
USBD_StatusTypeDef USBD_LL_Init | ( | USBD_HandleTypeDef * | pdev | ) |
USBD_LL_Init Initialize the Low Level portion of the Device driver.
- Parameters
-
pdev Device handle
- Return values
-
USBD Status
Definition at line 213 of file usbd_conf_l4.c.
◆ USBD_LL_IsStallEP()
uint8_t USBD_LL_IsStallEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_IsStallEP Return Stall condition.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
Stall (1: yes, 0: No)
Definition at line 360 of file usbd_conf_l4.c.
◆ USBD_LL_OpenEP()
USBD_StatusTypeDef USBD_LL_OpenEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr, | ||
uint8_t | ep_type, | ||
uint16_t | ep_mps | ||
) |
USBD_LL_OpenEP Open an endpoint of the Low Level Driver.
- Parameters
-
pdev device handle ep_addr Endpoint Number ep_type Endpoint Type ep_mps Endpoint Max Packet Size
- Return values
-
USBD Status
Definition at line 288 of file usbd_conf_l4.c.
◆ USBD_LL_PrepareReceive()
USBD_StatusTypeDef USBD_LL_PrepareReceive | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr, | ||
uint8_t * | pbuf, | ||
uint16_t | size | ||
) |
USBD_LL_PrepareReceive prepare an endpoint for reception.
- Parameters
-
pdev device handle ep_addr Endpoint Number pbuf:pointer to data to be received size data size
- Return values
-
USBD Status
Definition at line 413 of file usbd_conf_l4.c.
◆ USBD_LL_SetUSBAddress()
USBD_StatusTypeDef USBD_LL_SetUSBAddress | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | dev_addr | ||
) |
USBD_LL_SetDevAddress Assign an USB address to the device.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
USBD Status
Definition at line 380 of file usbd_conf_l4.c.
◆ USBD_LL_StallEP()
USBD_StatusTypeDef USBD_LL_StallEP | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr | ||
) |
USBD_LL_StallEP Set a Stall condition on an endpoint of the Low Level Driver.
- Parameters
-
pdev device handle ep_addr Endpoint Number
- Return values
-
USBD Status
Definition at line 334 of file usbd_conf_l4.c.
◆ USBD_LL_Start()
USBD_StatusTypeDef USBD_LL_Start | ( | USBD_HandleTypeDef * | pdev | ) |
USBD_LL_Start Start the Low Level portion of the Device driver.
- Parameters
-
pdev Device handle
- Return values
-
USBD Status
Definition at line 261 of file usbd_conf_l4.c.
◆ USBD_LL_Stop()
USBD_StatusTypeDef USBD_LL_Stop | ( | USBD_HandleTypeDef * | pdev | ) |
USBD_LL_Stop Stop the Low Level portion of the Device driver.
- Parameters
-
pdev Device handle
- Return values
-
USBD Status
Definition at line 273 of file usbd_conf_l4.c.
◆ USBD_LL_Transmit()
USBD_StatusTypeDef USBD_LL_Transmit | ( | USBD_HandleTypeDef * | pdev, |
uint8_t | ep_addr, | ||
uint8_t * | pbuf, | ||
uint16_t | size | ||
) |
USBD_LL_Transmit Transmit data over an endpoint.
- Parameters
-
pdev device handle ep_addr Endpoint Number pbuf:pointer to data to be sent size data size
- Return values
-
USBD Status
Definition at line 395 of file usbd_conf_l4.c.
Generated by
