50 uint8_t
ACM::Init(uint8_t parent, uint8_t port,
bool lowspeed)
54 uint8_t buf[constBufSize];
134 goto FailSetDevTblEntry;
138 for (uint8_t i=0; i<num_of_conf; i++)
205 Serial.println(rcode, HEX);
309 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL ));
314 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL ));
319 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_CLEAR_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, 0, 0, NULL, NULL ));
324 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_LINE_CODING, 0x00, 0x00,
bControlIface,
sizeof(
LINE_CODING),
sizeof(
LINE_CODING), (uint8_t*)dataptr, NULL ));
329 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_LINE_CODING, 0x00, 0x00,
bControlIface,
sizeof(
LINE_CODING),
sizeof(
LINE_CODING), (uint8_t*)dataptr, NULL ));
334 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_CONTROL_LINE_STATE, state, 0,
bControlIface, 0, 0, NULL, NULL ));
339 return(
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SEND_BREAK, (duration & 0xff), (duration >> 8),
bControlIface, 0, 0, NULL, NULL ));
345 Notify(PSTR(
"Endpoint descriptor:"));
346 Notify(PSTR(
"\r\nLength:\t\t"));
347 PrintHex<uint8_t>(ep_ptr->
bLength);
348 Notify(PSTR(
"\r\nType:\t\t"));
350 Notify(PSTR(
"\r\nAddress:\t"));
352 Notify(PSTR(
"\r\nAttributes:\t"));
354 Notify(PSTR(
"\r\nMaxPktSize:\t"));
356 Notify(PSTR(
"\r\nPoll Intrv:\t"));