7 Replies Latest reply on Mar 26, 2019 2:36 AM by SrinathS_16

    Add more alternate setting

    likec_1981161

      Hi

       

      I add the other alternate setting(Interface 1,Alternate setting 2)  but the USB descriptor didn't detect this setting.

       

      The descriptor of the alternate_1 and alternate_2 are shown as below:

       

      *Interface 1,Alternate setting 1

          /* Standard video streaming interface descriptor (Interface 1,Alternate setting 1) */

          0x09,                           /* Descriptor size */

          CY_U3P_USB_INTRFC_DESCR,        /* Interface descriptor type */

          0x01,                           /* Interface number */

          0x01,                           /* Alternate setting number */

          0x01,                           /* Number of end points : 1 ISO EP */

          0x0E,                           /* Interface class : CC_VIDEO */

          0x02,                           /* Interface sub class : CC_VIDEOSTREAMING */

          0x00,                           /* Interface protocol code : Undefined */

          0x00,                           /* Interface descriptor string index */

       

       

          /* Endpoint Descriptor for isochronous Streaming Video Data */

          0x07,                               /* Descriptor size */

          CY_U3P_USB_ENDPNT_DESCR,            /* Endpoint Descriptor Type */

          CX3_EP_VIDEO,                  /* Endpoint address and description: EP 3 IN */

          CY_U3P_USB_EP_ISO | 0x04,           /* isochronous End point */

          0x00,

          0x04,                            /* Max packet size is 1024 bytes. */

          0x01,                               /* Servicing interval for data transfers */

       

       

          /* Super Speed Endpoint Companion Descriptor */

          0x06,                               /* Descriptor size */

          CY_U3P_SS_EP_COMPN_DESCR,           /* SS Endpoint Companion Descriptor Type */

          CX3_EP_SUPER_SPEED_BURST_LEN,       /* Max no. of packets in a burst */

          CX3_EP_SUPER_SPEED_MULT,            /* Mult setting: Number of bursts per service interval. */

          0x00,

          0x90, /* Bytes per interval : 1024 */

       

       

      *Interface 1,Alternate setting 2

          /* Standard video streaming interface descriptor (Interface 1,Alternate setting 2) */

          0x09,                           /* Descriptor size */

          CY_U3P_USB_INTRFC_DESCR,        /* Interface descriptor type */

          0x01,                           /* Interface number */

          0x02,                           /* Alternate setting number */

          0x01,                           /* Number of end points : 1 ISO EP */

          0x0E,                           /* Interface class : CC_VIDEO */

          0x02,                           /* Interface sub class : CC_VIDEOSTREAMING */

          0x00,                           /* Interface protocol code : Undefined */

          0x00,                           /* Interface descriptor string index */

       

       

          /* Endpoint Descriptor for isochronous Streaming Video Data */

          0x07,                               /* Descriptor size */

          CY_U3P_USB_ENDPNT_DESCR,            /* Endpoint Descriptor Type */

          CX3_EP_VIDEO,                  /* Endpoint address and description: EP 3 IN */

          CY_U3P_USB_EP_ISO | 0x04,           /* isochronous End point */

          0x00,

          0x04,                            /* Max packet size is 1024 bytes. */

          0x01,                               /* Servicing interval for data transfers */

       

       

          /* Super Speed Endpoint Companion Descriptor */

          0x06,                               /* Descriptor size */

          CY_U3P_SS_EP_COMPN_DESCR,           /* SS Endpoint Companion Descriptor Type */

          CX3_EP_SUPER_SPEED_BURST_LEN,       /* Max no. of packets in a burst */

          CX3_EP_SUPER_SPEED_MULT,            /* Mult setting: Number of bursts per service interval. */

          0x00,

          0x90, /* Bytes per interval : 1024 */

       

      If you can help on this issue would be greatly appreciated.

       

      kelvin