66 #ifndef __ENDPOINT_H__
67 #define __ENDPOINT_H__
70 #include "../../../Common/Common.h"
76 #if defined(__cplusplus)
81 #if !defined(__INCLUDE_FROM_USB_DRIVER)
82 #error Do not include this file directly. Include lpcroot/libraries/LPCUSBlib/Drivers/USB/USB.h instead.
90 #define ENDPOINT_EPNUM_MASK 0x0F
95 #define ENDPOINT_CONTROLEP 0
97 #if defined(__LPC18XX__) || defined(__LPC43XX__)
99 #elif defined(__LPC175X_6X__) || defined(__LPC177X_8X__) || defined(__LPC407X_8X__)
101 #elif defined(__LPC11U1X__) || defined(__LPC11U2X_3X__) || defined(__LPC1347__)
112 #define ENDPOINT_BANK_SINGLE (0 << 1)
119 #define ENDPOINT_BANK_DOUBLE (1 << 1)
121 #if (!defined(FIXED_CONTROL_ENDPOINT_SIZE) || defined(__DOXYGEN__))
125 #define ENDPOINT_CONTROLEP_DEFAULT_SIZE 64
135 #define ENDPOINT_MAX_SIZE(EPIndex) 512
137 #if !defined(CONTROL_ONLY_DEVICE) || defined(__DOXYGEN__)
142 #define ENDPOINT_TOTAL_ENDPOINTS0 ENDPOINT_DETAILS_MAXEP0
143 #define ENDPOINT_TOTAL_ENDPOINTS1 ENDPOINT_DETAILS_MAXEP1
144 #define ENDPOINT_TOTAL_ENDPOINTS(corenum) ((corenum) ? ENDPOINT_DETAILS_MAXEP1 : ENDPOINT_DETAILS_MAXEP0)
146 #define ENDPOINT_TOTAL_ENDPOINTS 1
224 usb_data_buffer_index[corenum]++;
229 usb_data_buffer_OUT_index[corenum]++;
285 usb_data_buffer_index[corenum]++;
289 usb_data_buffer_IN_index[corenum]++;
305 volatile uint8_t dummy;
328 tem = (tem2 << 8) | tem1;
351 tem = (tem1 << 8) | tem2;
426 uint8_t tem1, tem2, tem3, tem4;
432 tem = (tem4 << 24) | (tem3 << 16) | (tem2 << 8) | tem1;
451 uint8_t tem1, tem2, tem3, tem4;
457 tem = (tem1 << 24) | (tem2 << 16) | (tem3 << 8) | tem4;
527 #if defined(__cplusplus)