Bibliothek zur USB-Kommunikation von Jürgen W.
Mehr ...
gehe zum Quellcode dieser Datei
|
#define | EP_DEF(NAME, EPNO, TYPE, PACKET_SIZE, HANDLER) |
|
#define | EP_DEF_in(NAME) ep_def_in(&(NAME##_data)) |
|
#define | EP_DEF_init(NAME) ep_def_init(&(NAME##_data)) |
|
#define | EP_DEF_init_buffer(NAME) ep_def_init_buffer(&(NAME##_data)) |
|
#define | EP_DEF_out(NAME) ep_def_out(&(NAME##_data)) |
|
#define | EP_NOTE_CLR_DCD 2 |
|
#define | EP_NOTE_IDLE 0 |
|
#define | EP_NOTE_SEND 0x80 |
|
#define | EP_NOTE_SET_DCD 1 |
|
#define | USB_EP_IN 0x80 |
|
#define | USB_EP_PP 0x40 |
|
#define | USB_EP_size_to_gc(x) |
|
|
typedef struct ep_data | EP_data |
|
typedef union USB_EP_pair | USB_EP_pair_t |
|
typedef unsigned int(* | USBDataCallback) (void *, unsigned int) |
|
Bibliothek zur USB-Kommunikation von Jürgen W.
- Autoren
- : Jürgen H. (woodym) aus http://www.mikrocontroller.net/topic/295339
- Datum
- 03.05.2013 / 30.08.2015
$Revision: 351 $
$Date: 2016-03-19 23:27:55 +0100 (Sa, 19 Mrz 2016) $
Definiert in Datei usb_ep.h.
#define EP_DEF |
( |
|
NAME, |
|
|
|
EPNO, |
|
|
|
TYPE, |
|
|
|
PACKET_SIZE, |
|
|
|
HANDLER |
|
) |
| |
Wert:extern unsigned char NAME##_buf[((EPNO)&USB_EP_PP)?PACKET_SIZE*2:PACKET_SIZE ]; \
unsigned char NAME##_buf[((EPNO)&USB_EP_PP)?PACKET_SIZE*2:PACKET_SIZE ]; \
EP_data NAME##_data = { \
.ep = (EPNO), \
.type = (TYPE), \
.bank = 0, \
.buf = NAME##_buf, \
.len = PACKET_SIZE, \
.handler = HANDLER, \
};
Definiert in Zeile 76 der Datei usb_ep.h.
#define USB_EP_size_to_gc |
( |
|
x | ) |
|
Wert:((x <= 8 )?USB_EP_BUFSIZE_8_gc:\
(x <= 16 )?USB_EP_BUFSIZE_16_gc:\
(x <= 32 )?USB_EP_BUFSIZE_32_gc:\
(x <= 64 )?USB_EP_BUFSIZE_64_gc:\
(x <= 128 )?USB_EP_BUFSIZE_128_gc:\
(x <= 256 )?USB_EP_BUFSIZE_256_gc:\
(x <= 512 )?USB_EP_BUFSIZE_512_gc:\
USB_EP_BUFSIZE_1023_gc)
Definiert in Zeile 44 der Datei usb_ep.h.