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);
254 USBTRACE(
"\r\nAccessory mode switch attempt");
318 Notify(PSTR(
"Endpoint descriptor:"), 0x80);
319 Notify(PSTR(
"\r\nLength:\t\t"), 0x80);
320 PrintHex<uint8_t > (ep_ptr->
bLength, 0x80);
321 Notify(PSTR(
"\r\nType:\t\t"), 0x80);
323 Notify(PSTR(
"\r\nAddress:\t"), 0x80);
325 Notify(PSTR(
"\r\nAttributes:\t"), 0x80);
327 Notify(PSTR(
"\r\nMaxPktSize:\t"), 0x80);
329 Notify(PSTR(
"\r\nPoll Intrv:\t"), 0x80);
330 PrintHex<uint8_t > (ep_ptr->
bInterval, 0x80);
331 Notify(PSTR(
"\r\n"), 0x80);