27 const char* description,
34 manufacturer(manufacturer),
36 description(description),
62 return Init(parent, port, lowspeed);
66 uint8_t
ADK::Init(uint8_t parent, uint8_t port,
bool lowspeed) {
113 goto FailGetDevDescr;
148 goto FailSetDevTblEntry;
154 USBTRACE(
"\r\nAcc.mode device detected");
160 for (uint8_t i = 0; i < num_of_conf; i++) {
164 goto FailGetConfDescr;
175 goto FailSetDevTblEntry;
184 goto FailSetConfDescr;
201 USBTRACE(
"\r\nConfiguration successful");
208 uint16_t adkproto = -1;
209 rcode = getProto((uint8_t*) & adkproto);
213 USBTRACE2(
"\r\nADK protocol rev. ", adkproto);
236 #ifdef DEBUG_USB_HOST
242 #ifdef DEBUG_USB_HOST
248 #ifdef DEBUG_USB_HOST
254 #ifdef DEBUG_USB_HOST
260 #ifdef DEBUG_USB_HOST
266 #ifdef DEBUG_USB_HOST
272 #ifdef DEBUG_USB_HOST
273 USBTRACE(
"\r\nAccessory mode switch attempt");
336 Notify(PSTR(
"Endpoint descriptor:"), 0x80);
337 Notify(PSTR(
"\r\nLength:\t\t"), 0x80);
338 D_PrintHex<uint8_t > (ep_ptr->
bLength, 0x80);
339 Notify(PSTR(
"\r\nType:\t\t"), 0x80);
341 Notify(PSTR(
"\r\nAddress:\t"), 0x80);
343 Notify(PSTR(
"\r\nAttributes:\t"), 0x80);
345 Notify(PSTR(
"\r\nMaxPktSize:\t"), 0x80);
347 Notify(PSTR(
"\r\nPoll Intrv:\t"), 0x80);
348 D_PrintHex<uint8_t > (ep_ptr->
bInterval, 0x80);
349 Notify(PSTR(
"\r\n"), 0x80);