Macros
USB Endpoint address define
Collaboration diagram for USB Endpoint address define:

Macros

#define USBEndpointDescriptor_ADDRESS(direction, number)   (((direction & 0x01) << 7) | (number & 0xF))
 

Detailed Description

This section lists macro for USB endpoint address definition.

Macro Definition Documentation

◆ USBEndpointDescriptor_ADDRESS

#define USBEndpointDescriptor_ADDRESS (   direction,
  number 
)    (((direction & 0x01) << 7) | (number & 0xF))

Calculates the address of an endpoint given its number and direction

Parameters
directionUSB endpoint direction definition
numberUSB endpoint number
Returns
The value used to set the endpoint descriptor based on input number and direction

Definition at line 415 of file USBDescriptors.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:09