27 const char* description,
39 manufacturer(manufacturer),
41 description(description),
62 uint8_t
ADK::Init(uint8_t parent, uint8_t port,
bool lowspeed)
110 goto FailGetDevDescr;
144 goto FailSetDevTblEntry;
150 USBTRACE(
"\r\nAcc.mode device detected");
156 for (uint8_t i=0; i<num_of_conf; i++) {
163 USBTRACE2(
"\r\nGot 1st bad code for config: ", rcode);
169 goto FailGetConfDescr;
180 goto FailSetDevTblEntry;
206 USBTRACE(
"\r\nConfiguration successful");
213 uint16_t adkproto = -1;
215 rcode = getProto((uint8_t*)&adkproto );
219 USBTRACE2(
"\r\nGot 1st bad code for proto: ", rcode);
221 rcode = getProto((uint8_t*)&adkproto );
227 USBTRACE2(
"\r\nADK protocol rev. ", adkproto );
265 USBTRACE(
"\r\nAccessory mode switch attempt");
341 Notify(PSTR(
"Endpoint descriptor:"));
342 Notify(PSTR(
"\r\nLength:\t\t"));
343 PrintHex<uint8_t>(ep_ptr->
bLength);
344 Notify(PSTR(
"\r\nType:\t\t"));
346 Notify(PSTR(
"\r\nAddress:\t"));
348 Notify(PSTR(
"\r\nAttributes:\t"));
350 Notify(PSTR(
"\r\nMaxPktSize:\t"));
352 Notify(PSTR(
"\r\nPoll Intrv:\t"));