Macros
USB Private Macros
Peripheral Driver » HAL Driver » USB » Defines
Collaboration diagram for USB Private Macros:

## Macros
#define | IS_USB_PWR_MODE(__MODE__)
| Check if USB PWR Mode is valid. More...
#define | IS_USB_SPEED(__MODE__)
| Check if USB speed Mode is valid. More...
#define | IS_USB_ENUM_TYPE(__TYPE__)
| Check if USB enumeration type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_USB_ENUM_TYPE

#define IS_USB_ENUM_TYPE | ( |  | __TYPE__ | ) |

Value:
(((__TYPE__) == USB_ENUM_TYPE_HW) || \
((__TYPE__) == USB_ENUM_TYPE_MCU))

Check if USB enumeration type is valid.

Parameters

  <strong>TYPE</strong> | USB enumeration type.

Return values

  SET | (TYPE is HW enumeration) or RESET (TYPE is MCU enumeration)

Definition at line 451 of file gr55xx_hal_usb.h.

## ◆ IS_USB_PWR_MODE

#define IS_USB_PWR_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == LL_USB_PWR_MODE_LP) || \
((__MODE__) == USB_PWR_MODE_NORMAL))

Check if USB PWR Mode is valid.

Parameters

  <strong>MODE</strong> | USB power Mode.

Return values

  SET | (MODE is low power) or RESET (MODE is normal)

Definition at line 437 of file gr55xx_hal_usb.h.

## ◆ IS_USB_SPEED

#define IS_USB_SPEED | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == USB_HAL_SPEED_LOW) || \
((__MODE__) == USB_HAL_SPEED_FULL))

Check if USB speed Mode is valid.

Parameters

  <strong>MODE</strong> | USB speed Mode.

Return values

  SET | (MODE is low speed) or RESET (MODE is full speed)

Definition at line 444 of file gr55xx_hal_usb.h.

USB_ENUM_TYPE_HW
#define USB_ENUM_TYPE_HW
USB hardware enumeration type
Definition: gr55xx_hal_usb.h:302
USB_HAL_SPEED_LOW
#define USB_HAL_SPEED_LOW
USB Transceiver speed select: low speed
Definition: gr55xx_hal_usb.h:294
USB_PWR_MODE_NORMAL
#define USB_PWR_MODE_NORMAL
usb working in normal mode.
Definition: gr55xx_hal_usb.h:288
USB_ENUM_TYPE_MCU
#define USB_ENUM_TYPE_MCU
USB MCU enumeration type
Definition: gr55xx_hal_usb.h:303
USB_HAL_SPEED_FULL
#define USB_HAL_SPEED_FULL
USB Transceiver speed select: full speed
Definition: gr55xx_hal_usb.h:295