HAL HCD Generic Driver
Return values
HAL_HCD_DeInit
Function name
Function description
Parameters
Return values
HAL_HCD_HC_Init
Function name
Function description
Parameters
Return values
HAL_HCD_HC_Halt
Function name
Function description
Parameters
Return values
HAL_HCD_MspInit
Function name
282/1371
HAL: status
HAL_StatusTypeDef HAL_HCD_DeInit (HCD_HandleTypeDef *
hhcd)
DeInitialize the host driver.
hhcd: HCD handle
HAL: status
HAL_StatusTypeDef HAL_HCD_HC_Init (HCD_HandleTypeDef
* hhcd, uint8_t ch_num, uint8_t epnum, uint8_t dev_address,
uint8_t speed, uint8_t ep_type, uint16_t mps)
Initialize a host channel.
hhcd: HCD handle
ch_num: Channel number. This parameter can be a value
from 1 to 15
epnum: Endpoint number. This parameter can be a value
from 1 to 15
dev_address: : Current device address This parameter can
be a value from 0 to 255
speed: Current device speed. This parameter can be one of
these values: HCD_SPEED_HIGH: High speed mode,
HCD_SPEED_FULL: Full speed mode, HCD_SPEED_LOW:
Low speed mode
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
mps: Max Packet Size. This parameter can be a value from
0 to32K
HAL: status
HAL_StatusTypeDef HAL_HCD_HC_Halt
(HCD_HandleTypeDef * hhcd, uint8_t ch_num)
Halt a host channel.
hhcd: HCD handle
ch_num: Channel number. This parameter can be a value
from 1 to 15
HAL: status
void HAL_HCD_MspInit (HCD_HandleTypeDef * hhcd)
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers