mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
commit
50e61e0e16
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
#define TUD_AUDIO_MIC_ONE_CH_2_FORMAT_DESCRIPTOR(_itfnum, _stridx, _epin) \
|
#define TUD_AUDIO_MIC_ONE_CH_2_FORMAT_DESCRIPTOR(_itfnum, _stridx, _epin) \
|
||||||
/* Standard Interface Association Descriptor (IAD) */\
|
/* Standard Interface Association Descriptor (IAD) */\
|
||||||
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */\
|
/* Standard AC Interface Descriptor(4.7.1) */\
|
||||||
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
||||||
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
||||||
|
@ -57,7 +57,7 @@ enum
|
|||||||
+ TUD_AUDIO_DESC_OUTPUT_TERM_LEN\
|
+ TUD_AUDIO_DESC_OUTPUT_TERM_LEN\
|
||||||
/* Interface 1, Alternate 0 */\
|
/* Interface 1, Alternate 0 */\
|
||||||
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
|
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
|
||||||
/* Interface 1, Alternate 0 */\
|
/* Interface 1, Alternate 1 */\
|
||||||
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
|
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
|
||||||
+ TUD_AUDIO_DESC_CS_AS_INT_LEN\
|
+ TUD_AUDIO_DESC_CS_AS_INT_LEN\
|
||||||
+ TUD_AUDIO_DESC_TYPE_I_FORMAT_LEN\
|
+ TUD_AUDIO_DESC_TYPE_I_FORMAT_LEN\
|
||||||
@ -86,7 +86,7 @@ enum
|
|||||||
|
|
||||||
#define TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR(_stridx, _epout, _epin) \
|
#define TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR(_stridx, _epout, _epin) \
|
||||||
/* Standard Interface Association Descriptor (IAD) */\
|
/* Standard Interface Association Descriptor (IAD) */\
|
||||||
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ ITF_NUM_AUDIO_CONTROL, /*_nitfs*/ 3, /*_stridx*/ 0x00),\
|
TUD_AUDIO_DESC_IAD(/*_firstitf*/ ITF_NUM_AUDIO_CONTROL, /*_nitfs*/ ITF_NUM_TOTAL, /*_stridx*/ 0x00),\
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */\
|
/* Standard AC Interface Descriptor(4.7.1) */\
|
||||||
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ ITF_NUM_AUDIO_CONTROL, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ ITF_NUM_AUDIO_CONTROL, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
||||||
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
||||||
|
@ -448,9 +448,9 @@ TU_VERIFY_STATIC( sizeof(video_probe_and_commit_control_t) == 48, "size is not c
|
|||||||
#define TUD_VIDEO_GUID_M420 0x4D,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
|
#define TUD_VIDEO_GUID_M420 0x4D,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
|
||||||
#define TUD_VIDEO_GUID_I420 0x49,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
|
#define TUD_VIDEO_GUID_I420 0x49,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
|
||||||
|
|
||||||
#define TUD_VIDEO_DESC_IAD(_firstitfs, _nitfs, _stridx) \
|
#define TUD_VIDEO_DESC_IAD(_firstitf, _nitfs, _stridx) \
|
||||||
TUD_VIDEO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, \
|
TUD_VIDEO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, \
|
||||||
_firstitfs, _nitfs, TUSB_CLASS_VIDEO, VIDEO_SUBCLASS_INTERFACE_COLLECTION, \
|
_firstitf, _nitfs, TUSB_CLASS_VIDEO, VIDEO_SUBCLASS_INTERFACE_COLLECTION, \
|
||||||
VIDEO_ITF_PROTOCOL_UNDEFINED, _stridx
|
VIDEO_ITF_PROTOCOL_UNDEFINED, _stridx
|
||||||
|
|
||||||
#define TUD_VIDEO_DESC_STD_VC(_itfnum, _nEPs, _stridx) \
|
#define TUD_VIDEO_DESC_STD_VC(_itfnum, _nEPs, _stridx) \
|
||||||
|
@ -347,8 +347,8 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||||||
|
|
||||||
/* Standard Interface Association Descriptor (IAD) */
|
/* Standard Interface Association Descriptor (IAD) */
|
||||||
#define TUD_AUDIO_DESC_IAD_LEN 8
|
#define TUD_AUDIO_DESC_IAD_LEN 8
|
||||||
#define TUD_AUDIO_DESC_IAD(_firstitfs, _nitfs, _stridx) \
|
#define TUD_AUDIO_DESC_IAD(_firstitf, _nitfs, _stridx) \
|
||||||
TUD_AUDIO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, _firstitfs, _nitfs, TUSB_CLASS_AUDIO, AUDIO_FUNCTION_SUBCLASS_UNDEFINED, AUDIO_FUNC_PROTOCOL_CODE_V2, _stridx
|
TUD_AUDIO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, _firstitf, _nitfs, TUSB_CLASS_AUDIO, AUDIO_FUNCTION_SUBCLASS_UNDEFINED, AUDIO_FUNC_PROTOCOL_CODE_V2, _stridx
|
||||||
|
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */
|
/* Standard AC Interface Descriptor(4.7.1) */
|
||||||
#define TUD_AUDIO_DESC_STD_AC_LEN 9
|
#define TUD_AUDIO_DESC_STD_AC_LEN 9
|
||||||
@ -443,7 +443,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||||||
|
|
||||||
#define TUD_AUDIO_MIC_ONE_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
|
#define TUD_AUDIO_MIC_ONE_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
|
||||||
/* Standard Interface Association Descriptor (IAD) */\
|
/* Standard Interface Association Descriptor (IAD) */\
|
||||||
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */\
|
/* Standard AC Interface Descriptor(4.7.1) */\
|
||||||
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
||||||
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
||||||
@ -492,7 +492,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||||||
|
|
||||||
#define TUD_AUDIO_MIC_FOUR_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
|
#define TUD_AUDIO_MIC_FOUR_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
|
||||||
/* Standard Interface Association Descriptor (IAD) */\
|
/* Standard Interface Association Descriptor (IAD) */\
|
||||||
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */\
|
/* Standard AC Interface Descriptor(4.7.1) */\
|
||||||
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
||||||
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
||||||
@ -540,7 +540,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
|
|||||||
|
|
||||||
#define TUD_AUDIO_SPEAKER_MONO_FB_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epout, _epsize, _epfb) \
|
#define TUD_AUDIO_SPEAKER_MONO_FB_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epout, _epsize, _epfb) \
|
||||||
/* Standard Interface Association Descriptor (IAD) */\
|
/* Standard Interface Association Descriptor (IAD) */\
|
||||||
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
|
||||||
/* Standard AC Interface Descriptor(4.7.1) */\
|
/* Standard AC Interface Descriptor(4.7.1) */\
|
||||||
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
|
||||||
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user