When is CY_U3P_USB_EVENT_SETCONF prompted in FX3

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

cross mob
MaXi_1246331
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

The datasheet says this event is prompted when set configuration. However, I do not know the exact meaninng of setting configuration. Does it mean downloading the firmware into FX3

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

Hello,

Whenever a device is connected to the host, the host issues a set of requests to know about the details of the device. As part of this enumeration process, the host issues a GET_CONFIGURATION request and knows about the configurations of the device. When the configuration descriptor details are valid, the host issues a SET_CONFIGURATION event which is captured by the FX3 as CY_U3P_USB_EVENT_SETCONF. Basically, whenever a device is connected to the host with valid descriptors, it receives a SET_CONFIGURATION event.

Best regards,

Srinath S

View solution in original post

0 Likes
3 Replies
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello,

Whenever a device is connected to the host, the host issues a set of requests to know about the details of the device. As part of this enumeration process, the host issues a GET_CONFIGURATION request and knows about the configurations of the device. When the configuration descriptor details are valid, the host issues a SET_CONFIGURATION event which is captured by the FX3 as CY_U3P_USB_EVENT_SETCONF. Basically, whenever a device is connected to the host with valid descriptors, it receives a SET_CONFIGURATION event.

Best regards,

Srinath S

0 Likes

Thank you.

If the configuration descriptor is valid, why should host send a set configuration request to FX3?

0 Likes
lock attach
Attachments are accessible only for community members.

Hello,

It is as per the USB protocol. When the host sends a SET_CONFIGURATION request with the configuration number, it means that the interfaces and the endpoints under that particular configuration are enabled. Please refer to section 9.4.7 of the attached USB Spec for SET_CONFIGURATION request defined by USB-IF.

Best regards,

Srinath S