47 uint8_t
ACM::Init(uint8_t parent, uint8_t port,
bool lowspeed) {
50 uint8_t buf[constBufSize];
128 goto FailSetDevTblEntry;
132 for (uint8_t i = 0; i < num_of_conf; i++) {
146 goto FailGetConfDescr;
151 goto FailGetConfDescr;
169 goto FailSetConfDescr;
211 ErrorMessage<uint8_t > (PSTR(
"Conf.Val"), conf);
212 ErrorMessage<uint8_t > (PSTR(
"Iface Num"), iface);
213 ErrorMessage<uint8_t > (PSTR(
"Alt.Set"), alt);
295 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL));
299 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL));
303 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_CLEAR_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, 0, 0, NULL, NULL));
307 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_LINE_CODING, 0x00, 0x00,
bControlIface, sizeof (
LINE_CODING),
sizeof (
LINE_CODING), (uint8_t*)dataptr, NULL));
311 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_LINE_CODING, 0x00, 0x00,
bControlIface, sizeof (
LINE_CODING),
sizeof (
LINE_CODING), (uint8_t*)dataptr, NULL));
315 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_CONTROL_LINE_STATE, state, 0,
bControlIface, 0, 0, NULL, NULL));
319 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SEND_BREAK, (duration & 0xff), (duration >> 8),
bControlIface, 0, 0, NULL, NULL));
323 Notify(PSTR(
"Endpoint descriptor:"), 0x80);
324 Notify(PSTR(
"\r\nLength:\t\t"), 0x80);
325 PrintHex<uint8_t > (ep_ptr->
bLength, 0x80);
326 Notify(PSTR(
"\r\nType:\t\t"), 0x80);
328 Notify(PSTR(
"\r\nAddress:\t"), 0x80);
330 Notify(PSTR(
"\r\nAttributes:\t"), 0x80);
332 Notify(PSTR(
"\r\nMaxPktSize:\t"), 0x80);
334 Notify(PSTR(
"\r\nPoll Intrv:\t"), 0x80);
335 PrintHex<uint8_t > (ep_ptr->
bInterval, 0x80);
336 Notify(PSTR(
"\r\n"), 0x80);