27 const char* description,
34 manufacturer(manufacturer),
36 description(description),
62 uint8_t
ADK::Init(uint8_t parent, uint8_t port,
bool lowspeed) {
109 goto FailGetDevDescr;
143 goto FailSetDevTblEntry;
149 USBTRACE(
"\r\nAcc.mode device detected");
155 for (uint8_t i = 0; i < num_of_conf; i++) {
159 goto FailGetConfDescr;
170 goto FailSetDevTblEntry;
179 goto FailSetConfDescr;
196 USBTRACE(
"\r\nConfiguration successful");
203 uint16_t adkproto = -1;
204 rcode = getProto((uint8_t*) & adkproto);
208 USBTRACE2(
"\r\nADK protocol rev. ", adkproto);
230 #ifdef DEBUG_USB_HOST
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
267 USBTRACE(
"\r\nAccessory mode switch attempt");
330 Notify(PSTR(
"Endpoint descriptor:"), 0x80);
331 Notify(PSTR(
"\r\nLength:\t\t"), 0x80);
332 PrintHex<uint8_t > (ep_ptr->
bLength, 0x80);
333 Notify(PSTR(
"\r\nType:\t\t"), 0x80);
335 Notify(PSTR(
"\r\nAddress:\t"), 0x80);
337 Notify(PSTR(
"\r\nAttributes:\t"), 0x80);
339 Notify(PSTR(
"\r\nMaxPktSize:\t"), 0x80);
341 Notify(PSTR(
"\r\nPoll Intrv:\t"), 0x80);
342 PrintHex<uint8_t > (ep_ptr->
bInterval, 0x80);
343 Notify(PSTR(
"\r\n"), 0x80);