Enumerations
Enumerations
Peripheral Driver » HAL Driver » USB
Collaboration diagram for Enumerations:

## Enumerations
enum | hal_usb_state_t { HAL_USB_STATE_RESET = 0x00, HAL_USB_STATE_READY = 0x01, HAL_USB_STATE_BUSY = 0x02, HAL_USB_STATE_BUSY_HOST_REST = 0x12, HAL_USB_STATE_BUSY_ADDR = 0x22, HAL_USB_STATE_BUSY_CFG = 0x32, HAL_USB_STATE_ERROR = 0x04, HAL_USB_STATE_ERROR_CRC16 = 0x14, HAL_USB_STATE_ERROR_UPID = 0x24, HAL_USB_STATE_ERROR_TIMEOUT = 0x34, HAL_USB_STATE_ERROR_SEQ = 0x44, HAL_USB_STATE_ERROR_PID_CKS = 0x54, HAL_USB_STATE_ERROR_PID_CRC = 0x64, HAL_USB_STATE_ERROR_DMA_RX = 0x74, HAL_USB_STATE_ERROR_NSE = 0x84, HAL_USB_STATE_ERROR_SYNC = 0x94, HAL_USB_STATE_ERROR_BIT_STUFF = 0xA4, HAL_USB_STATE_ERROR_BYTE = 0xB4, HAL_USB_STATE_ERROR_EP5_TIMER = 0xC4, HAL_USB_STATE_ABORT = 0x08, HAL_USB_STATE_SUSPEND = 0x10 }
| HAL USB State Enumerations definition. More...
enum | hal_usb_ep_t { HAL_USB_EP0 = 0x00, HAL_USB_EP1 = 0x01, HAL_USB_EP2 = 0x02, HAL_USB_EP3 = 0x03, HAL_USB_EP4 = 0x04, HAL_USB_EP5 = 0x05 }
| HAL USB EP. More...

## Detailed Description

## Enumeration Type Documentation

## ◆ hal_usb_ep_t

enum hal_usb_ep_t

HAL USB EP.

Enumerator
HAL_USB_EP0 | USB EP0.
HAL_USB_EP1 | USB EP1.
HAL_USB_EP2 | USB EP2.
HAL_USB_EP3 | USB EP3.
HAL_USB_EP4 | USB EP4.
HAL_USB_EP5 | USB EP4.

Definition at line 99 of file gr55xx_hal_usb.h.

## ◆ hal_usb_state_t

enum hal_usb_state_t

HAL USB State Enumerations definition.

Enumerator
HAL_USB_STATE_RESET | Peripheral not initialized
HAL_USB_STATE_READY | Peripheral initialized and ready for use
HAL_USB_STATE_BUSY | An internal process is ongoing
HAL_USB_STATE_BUSY_HOST_REST | USB in host rest state during enumeration
HAL_USB_STATE_BUSY_ADDR | USB in adress state during enumeration
HAL_USB_STATE_BUSY_CFG | USB in configure state during enumeration
HAL_USB_STATE_ERROR | Peripheral in error
HAL_USB_STATE_ERROR_CRC16 | USB receive CRC error data
HAL_USB_STATE_ERROR_UPID | USB receive unsupported PID error
HAL_USB_STATE_ERROR_TIMEOUT | USB rx/tx timeout error
HAL_USB_STATE_ERROR_SEQ | USB DATA0/DATA1 PID sequence error
HAL_USB_STATE_ERROR_PID_CKS | USB PID checksum error
HAL_USB_STATE_ERROR_PID_CRC | USB PID CRC error
HAL_USB_STATE_ERROR_DMA_RX | USB ep3 or ep4 AHB master receive ERROR response
HAL_USB_STATE_ERROR_NSE | USB no such endpoint error
HAL_USB_STATE_ERROR_SYNC | USB SYNC error
HAL_USB_STATE_ERROR_BIT_STUFF | USB bit stuff error
HAL_USB_STATE_ERROR_BYTE | USB byte error
HAL_USB_STATE_ERROR_EP5_TIMER | USB ep5 timer out error
HAL_USB_STATE_ABORT | Peripheral with abort request ongoing
HAL_USB_STATE_SUSPEND | USB transceiver suspend

Definition at line 71 of file gr55xx_hal_usb.h.