feat: diode, math (stats), dBm, temp, restore mode

Add diode mode, math (min/max/avg), temp - k type thermocouple and
thermistor (only 5k tho..), restore mode to the one we came from when
exiting feature.
Add all features to USB-CDC interface, clean up state a bit (union)
This commit is contained in:
2025-11-30 23:29:40 +06:00
parent dc5194f1c8
commit d95e5cb557
4 changed files with 940 additions and 205 deletions

View File

@@ -22,10 +22,10 @@
#define FUSB_USB_VID 0x1209
#define FUSB_USB_PID 0x3478
#define FUSB_USB_REV 0x0100
#define FUSB_USB_REV 0x0110
#define FUSB_STR_MANUFACTURER u"Open Source GPIB"
#define FUSB_STR_PRODUCT u"HP3478A Internal Adapter"
#define FUSB_STR_SERIAL u"3478A-USB-001"
#define FUSB_STR_SERIAL u"3478A-USB-110"
//Taken from http://www.usbmadesimple.co.uk/ums_ms_desc_dev.htm
static const uint8_t device_descriptor[] = {