80 uint8_t buf[constBufSize];
120 goto FailGetDevDescr;
160 goto FailSetDevTblEntry;
164 for (uint8_t i=0; i<num_of_conf; i++)
259 Serial.println(rcode, HEX);
267 ErrorMessage<uint8_t>(PSTR(
"Conf.Val"), conf);
268 ErrorMessage<uint8_t>(PSTR(
"Iface Num"),iface);
269 ErrorMessage<uint8_t>(PSTR(
"Alt.Set"), alt);
313 uint32_t time_now = millis();
362 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_MASSOUT,
MASS_REQ_BOMSR, 0, 0,
bIface, 0, 0, NULL, NULL ));
369 bLastUsbError =
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_MASSIN,
MASS_REQ_GET_MAX_LUN, 0, 0,
bIface, 1, 1, plun, NULL );
453 for (uint8_t i=0; i<16; i++)
457 cbw.
CBWCB[4] = bsize;
473 for (uint8_t i=0; i<16; i++)
493 for (uint8_t i=0; i<16; i++)
497 cbw.
CBWCB[4] = bsize;
513 for (uint8_t i=0; i<16; i++)
532 for (uint8_t i=0; i<16; i++)
537 cbw.
CBWCB[5] = (addr & 0xff);
538 cbw.
CBWCB[4] = ((addr >> 8) & 0xff);
539 cbw.
CBWCB[3] = ((addr >> 16) & 0xff);
540 cbw.
CBWCB[2] = ((addr >> 24) & 0xff);
555 ErrorMessage<uint8_t>(PSTR(
"CBW"), ret);
568 const uint8_t bufSize = 64;
569 uint16_t total = size;
571 uint8_t rbuf[bufSize];
575 while(count < total &&
606 ErrorMessage<uint8_t>(PSTR(
"RSP"), ret);
619 ErrorMessage<uint8_t>(PSTR(
"CSW"), ret);
632 Notify(PSTR(
"Endpoint descriptor:"));
633 Notify(PSTR(
"\r\nLength:\t\t"));
634 PrintHex<uint8_t>(ep_ptr->
bLength);
635 Notify(PSTR(
"\r\nType:\t\t"));
637 Notify(PSTR(
"\r\nAddress:\t"));
639 Notify(PSTR(
"\r\nAttributes:\t"));
641 Notify(PSTR(
"\r\nMaxPktSize:\t"));
643 Notify(PSTR(
"\r\nPoll Intrv:\t"));