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:
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