modrzywolski / rx666m

GNU General Public License v2.0
3 stars 2 forks source link

Understanding RX666/888 FX3 Commands/USB Requests #2

Open ringof opened 1 year ago

ringof commented 1 year ago

NOT AN ISSUE.

I'm looking to modifying this code for the RX888mk2, and I admittedly am an absolute beginner in USB code.

Where I am stuck is in modifying the rx666m code to use the firmware functions for gain and attenuation. Specifically, I'm looking at the usb control messages, as in here:

https://github.com/modrzywolski/rx666m/blob/500ea0557493d2f9c77d00e71cfe514ab12cb00a/driver/rx666m.c#L987-L989

the '0xbe' being the request value.

The question is, how does that end up mapping to the FX3 Commands, as in the firmware's command set here:

https://github.com/ik1xpv/ExtIO_sddc/blob/master/Interface.h

and mapped to USB request values by:

https://github.com/ik1xpv/ExtIO_sddc/blob/fd9bb683100f62ae6c43a054c2ab3c0171385a45/SDDC_FX3/USBhandler.c#L217 https://github.com/ik1xpv/ExtIO_sddc/blob/fd9bb683100f62ae6c43a054c2ab3c0171385a45/SDDC_FX3/USBhandler.c#L290-L298

ringof commented 1 year ago

Wow, I completely forgot my own fixes where I handle this:

https://github.com/ringof/rx666m/commit/b55243b60b0cf8d26185d727731a3cb788c8d9aa

Anyway - if you have some memory of what was and why, it would be a help. E