|
STM32L4xx_HAL_Driver
1.14.0
|
Modules | |
| PCD Exported Constants | |
| USB Low Layer Exported Macros | |
| USB Low Layer Exported Functions | |
Data Structures | |
| struct | USB_OTG_CfgTypeDef |
| USB OTG Initialization Structure definition. More... | |
| struct | USB_OTG_EPTypeDef |
| struct | USB_OTG_HCTypeDef |
| struct | USB_CfgTypeDef |
| USB Initialization Structure definition. More... | |
| struct | USB_EPTypeDef |
Enumerations | |
| enum | USB_ModeTypeDef { USB_DEVICE_MODE = 0, USB_HOST_MODE = 1, USB_DRD_MODE = 2, USB_DEVICE_MODE = 0 } |
| USB Mode definition. More... | |
| enum | USB_OTG_URBStateTypeDef { URB_IDLE = 0, URB_DONE, URB_NOTREADY, URB_NYET, URB_ERROR, URB_STALL } |
| URB States definition. More... | |
| enum | USB_OTG_HCStateTypeDef { HC_IDLE = 0, HC_XFRC, HC_HALTED, HC_NAK, HC_NYET, HC_STALL, HC_XACTERR, HC_BBLERR, HC_DATATGLERR } |
| Host channel States definition. More... | |
| enum | USB_ModeTypeDef { USB_DEVICE_MODE = 0, USB_HOST_MODE = 1, USB_DRD_MODE = 2, USB_DEVICE_MODE = 0 } |
| struct USB_OTG_CfgTypeDef |
USB OTG Initialization Structure definition.
Definition at line 86 of file stm32l4xx_ll_usb.h.
| struct USB_OTG_EPTypeDef |
Definition at line 121 of file stm32l4xx_ll_usb.h.
| struct USB_OTG_HCTypeDef |
Definition at line 156 of file stm32l4xx_ll_usb.h.
| Data Fields | ||
|---|---|---|
| uint8_t | ch_num |
Host channel number. This parameter must be a number between Min_Data = 1 and Max_Data = 15 |
| uint8_t | data_pid |
Initial data PID. This parameter must be a number between Min_Data = 0 and Max_Data = 1 |
| uint8_t | dev_addr |
USB device address. This parameter must be a number between Min_Data = 1 and Max_Data = 255 |
| uint32_t | dma_addr |
32 bits aligned transfer buffer address. |
| uint8_t | do_ping |
Enable or disable the use of the PING protocol for HS mode. |
| uint8_t | ep_is_in |
Endpoint direction This parameter must be a number between Min_Data = 0 and Max_Data = 1 |
| uint8_t | ep_num |
Endpoint number. This parameter must be a number between Min_Data = 1 and Max_Data = 15 |
| uint8_t | ep_type |
Endpoint Type. This parameter can be any value of USB_EP_Type_ |
| uint32_t | ErrCnt |
Host channel error count. |
| uint16_t | max_packet |
Endpoint Max packet size. This parameter must be a number between Min_Data = 0 and Max_Data = 64KB |
| uint8_t | process_ping |
Execute the PING protocol for HS mode. |
| uint8_t | speed |
USB Host speed. This parameter can be any value of USB_Core_Speed_ |
| USB_OTG_HCStateTypeDef | state |
Host Channel state. This parameter can be any value of USB_OTG_HCStateTypeDef |
| uint8_t | toggle_in |
IN transfer current toggle flag. This parameter must be a number between Min_Data = 0 and Max_Data = 1 |
| uint8_t | toggle_out |
OUT transfer current toggle flag This parameter must be a number between Min_Data = 0 and Max_Data = 1 |
| USB_OTG_URBStateTypeDef | urb_state |
URB state. This parameter can be any value of USB_OTG_URBStateTypeDef |
| uint8_t * | xfer_buff |
Pointer to transfer buffer. |
| uint32_t | xfer_count |
Partial transfer length in case of multi packet transfer. |
| uint32_t | xfer_len |
Current transfer length. |
| struct USB_CfgTypeDef |
USB Initialization Structure definition.
Definition at line 220 of file stm32l4xx_ll_usb.h.
| struct USB_EPTypeDef |
Definition at line 243 of file stm32l4xx_ll_usb.h.
| enum USB_ModeTypeDef |
USB Mode definition.
| Enumerator | |
|---|---|
| USB_DEVICE_MODE | |
| USB_HOST_MODE | |
| USB_DRD_MODE | |
| USB_DEVICE_MODE | |
Definition at line 47 of file stm32l4xx_ll_usb.h.
| enum USB_ModeTypeDef |
| Enumerator | |
|---|---|
| USB_DEVICE_MODE | |
| USB_HOST_MODE | |
| USB_DRD_MODE | |
| USB_DEVICE_MODE | |
Definition at line 212 of file stm32l4xx_ll_usb.h.
Host channel States definition.
| Enumerator | |
|---|---|
| HC_IDLE | |
| HC_XFRC | |
| HC_HALTED | |
| HC_NAK | |
| HC_NYET | |
| HC_STALL | |
| HC_XACTERR | |
| HC_BBLERR | |
| HC_DATATGLERR | |
Definition at line 70 of file stm32l4xx_ll_usb.h.
URB States definition.
| Enumerator | |
|---|---|
| URB_IDLE | |
| URB_DONE | |
| URB_NOTREADY | |
| URB_NYET | |
| URB_ERROR | |
| URB_STALL | |
Definition at line 57 of file stm32l4xx_ll_usb.h.