EasyManua.ls Logo

ST STM32F2 - Hal_Hcd_Hc_Submitrequest; Hal_Hcd_Irqhandler; Hal_Hcd_Mspdeinit; Hal_Hcd_Sof_Callback

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1940
HAL HCD Generic Driver
DocID028236 Rev 2
283/1371
Function description
Initialize the HCD MSP.
Parameters
hhcd: HCD handle
Return values
None:
HAL_HCD_MspDeInit
Function name
void HAL_HCD_MspDeInit (HCD_HandleTypeDef * hhcd)
Function description
DeInitialize the HCD MSP.
Parameters
hhcd: HCD handle
Return values
None:
HAL_HCD_HC_SubmitRequest
Function name
HAL_StatusTypeDef HAL_HCD_HC_SubmitRequest
(HCD_HandleTypeDef * hhcd, uint8_t ch_num, uint8_t
direction, uint8_t ep_type, uint8_t token, uint8_t * pbuff,
uint16_t length, uint8_t do_ping)
Function description
Submit a new URB for processing.
Parameters
hhcd: HCD handle
ch_num: Channel number. This parameter can be a value
from 1 to 15
direction: Channel number. This parameter can be one of
these values: 0 : Output / 1 : Input
ep_type: Endpoint Type. This parameter can be one of these
values: EP_TYPE_CTRL: Control type/ EP_TYPE_ISOC:
Isochronous type/ EP_TYPE_BULK: Bulk type/
EP_TYPE_INTR: Interrupt type/
token: Endpoint Type. This parameter can be one of these
values: 0: HC_PID_SETUP / 1: HC_PID_DATA1
pbuff: pointer to URB data
length: Length of URB data
do_ping: activate do ping protocol (for high speed only). This
parameter can be one of these values: 0 : do ping inactive / 1
: do ping active
Return values
HAL: status
HAL_HCD_IRQHandler
Function name
void HAL_HCD_IRQHandler (HCD_HandleTypeDef * hhcd)
Function description
Handle HCD interrupt request.
Parameters
hhcd: HCD handle
Return values
None:
HAL_HCD_SOF_Callback
Function name
void HAL_HCD_SOF_Callback (HCD_HandleTypeDef * hhcd)
Function description
SOF callback.

Table of Contents

Related product manuals