- /* Macros: */\r
- /** Vector name for the common endpoint and pipe vector. This can be used to write an ISR handler\r
- * for the endpoint and pipe events, to make certain USB functions interrupt rather than poll\r
- * driven.\r
- */\r
- #define ENDPOINT_PIPE_vect USB_COM_vect\r
- \r
- /** Enables the given USB interrupt vector (such as the ENDPOINT_INT_* and PIPE_INT_* vectors in\r
- * Endpoint.h and Pipe.h).\r
- */\r
- #define USB_INT_Enable(int) MACROS{ USB_INT_GET_EN_REG(int) |= USB_INT_GET_EN_MASK(int); }MACROE\r
-\r
- /** Disables the given USB interrupt vector.\r
- *\r
- * \see \ref USB_INT_Enable()\r
- */\r
- #define USB_INT_Disable(int) MACROS{ USB_INT_GET_EN_REG(int) &= ~(USB_INT_GET_EN_MASK(int)); }MACROE\r
-\r
- /** Resets the given USB interrupt flag, so that the interrupt is re-primed for the next firing. */\r
- #define USB_INT_Clear(int) MACROS{ USB_INT_GET_INT_REG(int) &= ~(USB_INT_GET_INT_MASK(int)); }MACROE\r
- \r
- /** Returns boolean false if the given USB interrupt is disabled, or true if the interrupt is currently\r
- * enabled.\r
- */\r
- #define USB_INT_IsEnabled(int) ((USB_INT_GET_EN_REG(int) & USB_INT_GET_EN_MASK(int)) ? true : false)\r
-\r
- /** Returns boolean true if the given interrupt flag is set (i.e. the condition for the interrupt has occurred,\r
- * but the interrupt vector is not necessarily enabled), otherwise returns false.\r
- */\r
- #define USB_INT_HasOccurred(int) ((USB_INT_GET_INT_REG(int) & USB_INT_GET_INT_MASK(int)) ? true : false)\r
- \r