Bert Vermeulen
58d03f034f
fluke-dmm: use new serial API
2012-11-12 02:25:17 +01:00
Uwe Hermann
64d33dc28e
All drivers: Drop unneeded comments.
2012-11-11 18:09:11 +01:00
Bert Vermeulen
642e9d623c
more deconstifying sr_dev_inst for dev_acquisition_stop()
2012-11-06 19:32:53 +01:00
Bert Vermeulen
69b07d14db
allow for intermediate stage in stopping acquisition
...
In the case of USB drivers, a driver's dev_acquisition_stop() cannot
simply remove its fd sources from the session and close its devices:
a USB transfer might still be underway, and it needs to be finished
(and its memory freed) properly.
An sr_dev_inst->status value is added: SR_ST_STOPPING, which should
be set when the driver's dev_acquisition_stop() is called, and acts
as a marker for the USB event handler to wind up its operations.
In order for dev_acquisition_stop() to be able to set the sdi status,
however, it needs to be unconstified.
2012-11-06 15:16:22 +01:00
Uwe Hermann
886a52b6fb
Return SR_ERR_MALLOC upon allocation errors.
...
Add some TODOs.
2012-10-30 20:25:54 +01:00
Uwe Hermann
6f22a8ef2c
Factor out serial_readline() to serial.c.
...
Only one (slightly different) variant remains in agilent-dmm, this will
be merged soon too, though.
2012-10-30 19:59:21 +01:00
Uwe Hermann
31d84da3a2
fluke-dmm: Use message logging helpers.
2012-10-30 19:28:37 +01:00
Bert Vermeulen
a28dac0a73
fluke-dmm: code cleanup
2012-10-29 11:54:20 +01:00
Bert Vermeulen
2c04dede20
Fluke 287/289: support for dBu/dBV measurement units
2012-10-29 11:50:34 +01:00
Uwe Hermann
545f978639
config.h usage cleanups.
...
- Drop config.h #include from files that don't actually use any of
its contents (at the moment).
- Add comment for those that do need it.
2012-10-24 00:41:21 +02:00
Bert Vermeulen
fe31f8b9f9
fluke-dmm: add support for Fluke 187
2012-10-16 23:33:54 +02:00
Uwe Hermann
a2e222d24f
sr: struct drv_context is global now.
2012-09-27 23:29:33 +02:00
Bert Vermeulen
d38d2ef0ce
fluke-dmm: support for all basic 287 functionality
2012-09-25 19:53:05 +02:00
Bert Vermeulen
f46a36ad80
fluke-dmm: definitely use CR as line terminator
2012-09-25 19:53:05 +02:00
Bert Vermeulen
acd29accb3
fluke-dmm: add Fluke 287 to supported list
2012-09-25 19:53:05 +02:00
Bert Vermeulen
d3f8f1415c
fluke-dmm: flesh out the driver API
2012-09-25 19:53:05 +02:00
Bert Vermeulen
4129832014
fluke-dmm: auto-discover serial bitrate if not provided
2012-09-25 19:53:05 +02:00
Bert Vermeulen
bc41e012e6
fluke-dmm: don't log anything if no conn params given
2012-09-25 19:53:05 +02:00
Bert Vermeulen
fb480d578e
fluke-dmm: fix discovery
2012-09-25 19:53:05 +02:00
Bert Vermeulen
e7edd64f45
fluke-dmm: build fixes
2012-09-25 19:53:05 +02:00
Bert Vermeulen
4f958423d1
fluke-dmm: basic scan functionality
2012-09-25 19:53:05 +02:00
Bert Vermeulen
883a2e9e71
fluke-dmm: initial driver skeleton
2012-09-25 19:53:05 +02:00