SAM3S8/SD8 Software Package: USB Endpoint address define

SAM3S8/SD8 Software Package 1.2
Defines

# USB Endpoint address define
[USB Endpoint definitions]

Collaboration diagram for USB Endpoint address define:

## Defines

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

## Detailed Description

This section lists macro for USB endpoint address definition.

- USBEndpointDescriptor_ADDRESS

## Define Documentation

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

Calculates the address of an endpoint given its number and direction

Parameters:

  direction | USB endpoint direction definition
  number | USB endpoint number

Returns:
  The value used to set the endpoint descriptor based on input number and direction

Definition at line 244 of file USBDescriptors.h.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines