Defines | Functions

OTG.h File Reference

USB OTG mode definitions. More...

#include <avr/io.h>
#include <stdbool.h>
#include "../../../Common/Common.h"

Defines

#define USB_OTG_SRP_VBUS   (1 << SRPSEL)
#define USB_OTG_STP_DATA   0

Functions

static void USB_OTG_Device_RequestHNP (void) ATTR_ALWAYS_INLINE
static void USB_OTG_Device_CancelHNPRequest (void) ATTR_ALWAYS_INLINE
static bool USB_OTG_Device_IsSendingHNP (void) ATTR_ALWAYS_INLINE
static void USB_OTG_Device_InitiateSRP (const uint8_t SRPTypeMask) ATTR_ALWAYS_INLINE
static void USB_OTG_Host_AcceptHNP (void) ATTR_ALWAYS_INLINE
static void USB_OTG_Host_RejectHNP (void) ATTR_ALWAYS_INLINE
static bool USB_OTG_Host_IsHNPReceived (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE

Detailed Description

This file contains structures, function prototypes and macros related to USB OTG mode, where two USB devices may be linked directly together and exchange host/device roles as needed.

Note:
This file should not be included directly. It is automatically included as needed by the USB driver dispatch header located in LUFA/Drivers/USB/USB.h.