Bert Vermeulen
109a3ba413
agilent-dmm: use new serial API
2012-11-12 02:25:37 +01:00
Bert Vermeulen
63f7cb9791
agilent-dmm: use standard serial_readline()
2012-11-07 01:25:10 +01:00
Bert Vermeulen
74ac7d7f73
agilent-dmm: no need to specify a serialcomm scan parameter
...
It's always 9600/8n1 anyway.
2012-11-07 00:46:30 +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
38d326e879
agilent-dmm: Use message logging helpers.
2012-10-30 19:35:35 +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
c2016fa0eb
agilent-dmm: don't log anything if no conn params given
2012-09-17 00:00:27 +02:00
Bert Vermeulen
e9022f596d
sr: make struct drv_context global
2012-09-11 21:27:26 +02:00
Bert Vermeulen
b186aa78b8
agilent-dmm: fix model identifiers
2012-09-10 21:27:50 +02:00
Bert Vermeulen
8c0152f29b
agilent-dmm: tentative support for all U123x and U125x models
...
Only tested on U1233A, but it just might work.
The U125x protocol decoding only supports voltage, current, resistance,
capacitance and diode measurements for now.
2012-09-10 01:00:48 +02:00
Bert Vermeulen
a4394fb3d9
agilent-dmm: code cleanup
...
This should make it easier to support other Agilent U12xx models
2012-09-10 00:13:26 +02:00
Bert Vermeulen
e066c32a25
agilent-dmm: fix AC/DC mode detection
2012-09-09 22:49:07 +02:00
Bert Vermeulen
f2e86bbfa6
agilent-dmm: make parser deal with input better
2012-09-09 22:48:22 +02:00
Bert Vermeulen
81599cc55b
agilent-dmm: remove IDN check at 1Hz, we just don't need it.
...
Some debug message cleanup.
2012-09-08 14:53:49 +02:00
Bert Vermeulen
e6b021f377
agilent-dmm: support for submodes
2012-09-08 03:06:45 +02:00
Bert Vermeulen
e93cdf428c
sr: mostly finished Agilent DMM driver
2012-09-02 15:42:56 +02:00
Bert Vermeulen
6ac0db19f3
sr: add new agilent-dmm driver (Agilent U12xxA multimeters)
2012-09-02 15:42:56 +02:00