usb-gotemp: USB thermometer emulation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyIn review
- v23 patches 17 repliesSuperseded
- v13 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | usb: move HID request defines to hw/usb.hhw/ hw/ | +14 | 0 replies | |
| 2/3 | usb-gotemp: new module emulating a USB thermometerMakefile hw/ monitor.c +2 more | +916 | 0 replies | |
| 3/3 | Documentation: -usbdevice thermometer optionqemu-options.hx | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation
I reworked the second patch in this series to add generic monitor commands to change the temperature reported from thermometers.
Thermometer devices can now include "sensor.h" and call 'qemu_add_therm_temp_handler' to register themselves.
I went with separate 'therm_set DEVICE_INDEX' and 'therm_temp TEMPERATURE' commands since a 'therm_temp' command that only requires one argument seems easier to use on the monitor command line and doesn't require searching the list of thermometers repeatedly.
To cater to my original "driver tutorial" use case,
by default the temperature would still automatically increment unless the 'controlled_by_monitor' qdev property is set.
Even when auto incrementing the temperature is now always bounded between 25C ~ 40C. (previously the temperature would increment until int16_t overflows)