46 uint8_t
ACM::Init(uint8_t parent, uint8_t port,
bool lowspeed) {
49 uint8_t buf[constBufSize];
127 goto FailSetDevTblEntry;
131 for (uint8_t i = 0; i < num_of_conf; i++) {
145 goto FailGetConfDescr;
150 goto FailGetConfDescr;
168 goto FailSetConfDescr;
208 ErrorMessage<uint8_t > (PSTR(
"Conf.Val"), conf);
209 ErrorMessage<uint8_t > (PSTR(
"Iface Num"), iface);
210 ErrorMessage<uint8_t > (PSTR(
"Alt.Set"), alt);
292 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL));
296 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, nbytes, nbytes, dataptr, NULL));
300 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_CLEAR_COMM_FEATURE, (fid & 0xff), (fid >> 8),
bControlIface, 0, 0, NULL, NULL));
304 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_LINE_CODING, 0x00, 0x00,
bControlIface, sizeof (
LINE_CODING),
sizeof (
LINE_CODING), (uint8_t*)dataptr, NULL));
308 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCIN,
CDC_GET_LINE_CODING, 0x00, 0x00,
bControlIface, sizeof (
LINE_CODING),
sizeof (
LINE_CODING), (uint8_t*)dataptr, NULL));
312 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SET_CONTROL_LINE_STATE, state, 0,
bControlIface, 0, 0, NULL, NULL));
316 return (
pUsb->
ctrlReq(
bAddress, 0,
bmREQ_CDCOUT,
CDC_SEND_BREAK, (duration & 0xff), (duration >> 8),
bControlIface, 0, 0, NULL, NULL));
320 Notify(PSTR(
"Endpoint descriptor:"), 0x80);
321 Notify(PSTR(
"\r\nLength:\t\t"), 0x80);
322 PrintHex<uint8_t > (ep_ptr->
bLength, 0x80);
323 Notify(PSTR(
"\r\nType:\t\t"), 0x80);
325 Notify(PSTR(
"\r\nAddress:\t"), 0x80);
327 Notify(PSTR(
"\r\nAttributes:\t"), 0x80);
329 Notify(PSTR(
"\r\nMaxPktSize:\t"), 0x80);
331 Notify(PSTR(
"\r\nPoll Intrv:\t"), 0x80);
332 PrintHex<uint8_t > (ep_ptr->
bInterval, 0x80);
333 Notify(PSTR(
"\r\n"), 0x80);