sketchbook
|
Macros | |
#define | USB_FLG_MSGPTR_IS_ROM (1<<6) |
#define | USB_FLG_USE_USER_RW (1<<7) |
#define | USB_CFG_DESCR_PROPS_STRING_0 sizeof(usbDescriptorString0) |
#define | USB_CFG_DESCR_PROPS_DEVICE sizeof(usbDescriptorDevice) |
#define | USB_CFG_DESCR_PROPS_CONFIGURATION sizeof(usbDescriptorConfiguration) |
#define | SWITCH_START(cmd) {uchar _cmd = cmd; if(0){ |
#define | SWITCH_CASE(value) }else if(_cmd == (value)){ |
#define | SWITCH_CASE2(v1, v2) }else if(_cmd == (v1) || _cmd == (v2)){ |
#define | SWITCH_CASE3(v1, v2, v3) }else if(_cmd == (v1) || _cmd == (v2) || (_cmd == v3)){ |
#define | SWITCH_DEFAULT }else{ |
#define | SWITCH_END }} |
#define | USB_RX_USER_HOOK(data, len) |
#define | USB_SET_ADDRESS_HOOK() |
#define | GET_DESCRIPTOR(cfgProp, staticName) |
Functions | |
USB_PUBLIC void | usbPoll (void) |
USB_PUBLIC void | usbInit (void) |
Variables | |
uchar | usbRxBuf [2 *USB_BUFSIZE] |
uchar | usbInputBufOffset |
uchar | usbDeviceAddr |
uchar | usbNewDeviceAddr |
uchar | usbConfiguration |
volatile schar | usbRxLen |
uchar | usbCurrentTok |
uchar | usbRxToken |
volatile uchar | usbTxLen = USBPID_NAK |
uchar | usbTxBuf [USB_BUFSIZE] |
usbMsgPtr_t | usbMsgPtr |
PROGMEM const char | usbDescriptorString0 [] |
PROGMEM const char | usbDescriptorDevice [] |
PROGMEM const char | usbDescriptorConfiguration [] |
#define GET_DESCRIPTOR | ( | cfgProp, | |
staticName | |||
) |
#define SWITCH_CASE | ( | value | ) | }else if(_cmd == (value)){ |
#define SWITCH_CASE2 | ( | v1, | |
v2 | |||
) | }else if(_cmd == (v1) || _cmd == (v2)){ |
#define SWITCH_CASE3 | ( | v1, | |
v2, | |||
v3 | |||
) | }else if(_cmd == (v1) || _cmd == (v2) || (_cmd == v3)){ |
#define SWITCH_DEFAULT }else{ |
#define SWITCH_END }} |
#define USB_CFG_DESCR_PROPS_CONFIGURATION sizeof(usbDescriptorConfiguration) |
#define USB_CFG_DESCR_PROPS_DEVICE sizeof(usbDescriptorDevice) |
#define USB_CFG_DESCR_PROPS_STRING_0 sizeof(usbDescriptorString0) |
#define USB_FLG_MSGPTR_IS_ROM (1<<6) |
#define USB_FLG_USE_USER_RW (1<<7) |
#define USB_RX_USER_HOOK | ( | data, | |
len | |||
) |
#define USB_SET_ADDRESS_HOOK | ( | ) |
USB_PUBLIC void usbInit | ( | void | ) |
USB_PUBLIC void usbPoll | ( | void | ) |
uchar usbConfiguration |
uchar usbCurrentTok |
PROGMEM const char usbDescriptorConfiguration[] |
PROGMEM const char usbDescriptorDevice[] |
PROGMEM const char usbDescriptorString0[] |
uchar usbDeviceAddr |
uchar usbInputBufOffset |
usbMsgPtr_t usbMsgPtr |
uchar usbNewDeviceAddr |
uchar usbRxBuf[2 *USB_BUFSIZE] |
volatile schar usbRxLen |
uchar usbRxToken |
uchar usbTxBuf[USB_BUFSIZE] |
volatile uchar usbTxLen = USBPID_NAK |