61 const uint8_t itf_ac = first_itf;
70 p =
writeStdIface(p, itf_ac, 0, ac_nEps, 0x01 , 0x01 , 0x20 );
102 const uint16_t cs_ac_len = (uint16_t)(p - cs_ac_start);
103 cs_ac_start[6] = (
uint8_t)(cs_ac_len & 0xFF);
104 cs_ac_start[7] = (
uint8_t)(cs_ac_len >> 8);
140 uint16_t outLen = (uint16_t)(p - desc);
171 return bytes_per_sample * (uint16_t)(((rate + 999) / 1000) + 1);
250 if (has_in && !has_out)
return 0x03;
251 if (!has_in && has_out)
return 0x01;
289 uint16_t term_type,
uint8_t clock_id) {
295 *p++ = (
uint8_t)(term_type & 0xFF);
296 *p++ = (
uint8_t)(term_type >> 8);
300 *p++ = (
uint8_t)(ch_cfg & 0xFF);
301 *p++ = (
uint8_t)((ch_cfg >> 8) & 0xFF);
302 *p++ = (
uint8_t)((ch_cfg >> 16) & 0xFF);
303 *p++ = (
uint8_t)((ch_cfg >> 24) & 0xFF);
333 *p++ = 0x0F; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00;
336 *p++ = 0x0F; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00;
349 *p++ = (
uint8_t)(term_type & 0xFF);
350 *p++ = (
uint8_t)(term_type >> 8);
366 *p++ = terminal_link;
370 *p++ = 0x01; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00;
372 *p++ = (
uint8_t)(ch_cfg & 0xFF);
373 *p++ = (
uint8_t)((ch_cfg >> 8) & 0xFF);
374 *p++ = (
uint8_t)((ch_cfg >> 16) & 0xFF);
375 *p++ = (
uint8_t)((ch_cfg >> 24) & 0xFF);
410 bool const is_in = (ep_addr & 0x80u);
411 bool const is_out = !is_in;
413 if (is_in) bmAttr = 0x05u;
#define USB_AUDIO_MAX_ISO_EP
Definition USBAudioConfig.h:96