cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

VlKh_2251656
Contributor II

Hello!

I have a Denebola board (uvc inteface).

I connected the button to it via the gipio connectors.

Tell me, what actions are required to be performed with the code (how to modify the program code) so that clicking this button would be equivalent to pressing the mouse button?

Ideally, I want to add a real hid device.

Tell me, please, how is this done?

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator

Hello Vladimir,

To implement the device as HID class compliant with the button events, HID class request handlers have to be added. Please refer to the project attached in FX3 Composite Device with HID Keyboard and UVC for details on how to handle the class specific requests.

Best regards,

Srinath S

View solution in original post

9 Replies
SrinathS_16
Moderator
Moderator

Hello Vladimir,

Please refer to FX3 Composite Device with HID Keyboard and UVC

Best regards,

Srinath S

0 Likes
VlKh_2251656
Contributor II

Many stanks, but I have a denebola.

I see example

https://community.cypress.com/thread/31593?q=UVC%20+%20HID

but it defined as usb2 device eveb usb3 port

It's a problem...

0 Likes
SrinathS_16
Moderator
Moderator

Hello Vladimir,

Please check the CyU3PConnectState() API in the firmware source code. It has got a parameter to enable/disable the USB3.0 functionality. Kindly, check if it is enabled.

Best regards,
Srinath S

VlKh_2251656
Contributor II

Many stank!

I will check it.

0 Likes
VlKh_2251656
Contributor II

many thanks!

0 Likes
VlKh_2251656
Contributor II

Аnd tell me, please, the descriptors in the case of USB2.0 for the HID device differ from the descriptors for HID in the case for USB3.0?

0 Likes
VlKh_2251656
Contributor II

I added descriptors for the HID interface in USB2.

it is defined AS COMBO DEVICE (UVC + HID), but it does not send push button events.

as I understood, we also need to write handlers for USB2 case..

0 Likes
SrinathS_16
Moderator
Moderator

Hello Vladimir,

To implement the device as HID class compliant with the button events, HID class request handlers have to be added. Please refer to the project attached in FX3 Composite Device with HID Keyboard and UVC for details on how to handle the class specific requests.

Best regards,

Srinath S

View solution in original post

VlKh_2251656
Contributor II

many thanks!

0 Likes