Number of interfaces is set 2,but return 1

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

const uint8_t CyFxUSBSSConfigDscr[] __attribute__ ((aligned (32))) =

{

    /* Configuration descriptor */

    0x09,                           /* Descriptor size */

    CY_U3P_USB_CONFIG_DESCR,        /* Configuration descriptor type */

    0x4f,0x00,                      /* Length of this descriptor and all sub descriptors */

    0x02,                           /* Number of interfaces */

    0x01,                           /* Configuration number */

    0x00,                           /* COnfiguration string index */

    0x80,                           /* Config characteristics - Bus powered */

    0x32,                           /* Max power consumption of device (in 8mA unit) : 400mA */

    /* Interface descriptor */

..............

}

I set       0x02,                           /* Number of interfaces */,but returned 1 and Length of this descriptor is also wrong

I don't know why接口数不对.png

接口数不对2.png

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

- I have checked the behavior at my end and is working fine. Please check if you are comparing the descriptor information as the one in which in the device has enumerated. In your case, you have looked at the SS Configuration Descriptor. So please check if the device is enumerating in USB3.0 and not as USB2.0.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

- I have checked the behavior at my end and is working fine. Please check if you are comparing the descriptor information as the one in which in the device has enumerated. In your case, you have looked at the SS Configuration Descriptor. So please check if the device is enumerating in USB3.0 and not as USB2.0.

Best regards,

Srinath S

0 Likes