Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I implement Feature report? HID class #32

Open
zavodnyrichard opened this issue Sep 16, 2022 · 0 comments
Open

How do I implement Feature report? HID class #32

zavodnyrichard opened this issue Sep 16, 2022 · 0 comments

Comments

@zavodnyrichard
Copy link

I'm trying to implement Feature reports on my device. I'm using hid_mouse example application and I came by this part of code in main.cpp:

int8_t app_set_report_callback(uint8_t interface, uint8_t report_type,
                               uint8_t report_id)
{
	/* To handle Set_Report, call usb_start_receive_ep0_data_stage()
	 * here. See the documentation for HID_SET_REPORT_CALLBACK() in
	 * usb_hid.h. For this device though, there are no output or
	 * feature reports. */
	return -1;
}

but I'm not sure how to correctly implement it even with the commented sections. Could someone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant