Commit Graph

60 Commits

Author SHA1 Message Date
Michael Davidsaver
1ce449d40d parse unknown format as number
forward compatibility
2019-01-15 19:15:21 -08:00
Michael Davidsaver
f3d7d7cd8f change display.format, add display.form and .precision
Replace printf-style format string with enum + integer.

ScalarBuilder explode scalar()/scalarArray()
2019-01-15 18:48:18 -08:00
Michael Davidsaver
3c5a5c805c fix 64-bit integer field access 2019-01-08 09:10:10 -08:00
Michael Davidsaver
76c6473b6f QSRV: fix put w/ proc w/o values
A put with forced processing, but no values
will cause all mappings to process.
2018-05-28 08:10:21 -07:00
Michael Davidsaver
c0ac33dc4b pvif handle NELM=1, NORD=0
Sometimes a DBF "scalar" isn't really a scalar.
2018-04-17 22:36:49 -07:00
Michael Davidsaver
1cc1d1857e fix DBR2PVD() DBF_ENUM handling
must treat DBF_ENUM differently in
pvif than in dbf_copy as the storage
types used are different.
2018-04-17 19:10:54 -07:00
Michael Davidsaver
cd2c1762b7 pvd <-> dbf
Yet more type conversions.

This is a complement to pvif.h in that
PVIF calls into dbPut() which this code is
called by dbPut().
2018-04-17 19:10:54 -07:00
Michael Davidsaver
8b8e421a65 pvif type code mapping cleanup
DBR2PVD() remove default: so that missed case is a compile warning.
return -1 for invalid codes.

PVD2DBR() correct int64 (not used so far)
2018-04-17 19:10:54 -07:00
Michael Davidsaver
d229efbb66 pvif: DBCH cleanup
avoid some duplication
2018-02-14 11:10:09 -08:00
Michael Davidsaver
392a44b791 pvif: DBCH drop unused overload 2018-02-14 10:52:52 -08:00
Michael Davidsaver
6982fa2d8f pvif: DBCH fix NULL check 2018-02-14 10:52:37 -08:00
Michael Davidsaver
9cc417103b pvif: consolidate timestamp translation 2018-01-30 08:19:31 -08:00
Michael Davidsaver
413102a4bc pvif: more put bitset
Better handling of put w/ compressed bitset
2017-11-14 10:49:56 -06:00
Michael Davidsaver
f9c1489fcc pvif: enable array of string
turns out I did the hard part already...
2017-11-13 11:39:19 -06:00
Michael Davidsaver
c79f3624bd add meta-data mappings
map:
* display.description to DESC
* display.format based on PREC
* valueAlarm.*Limit based on alarm limits

format is always empty if qsrvDisableFormat=1
which is the default as I worry that
clients will this printf() spec is unfortunate ways.
2017-11-02 14:43:15 -05:00
Michael Davidsaver
1f070bb849 more compat 2017-11-01 19:34:36 -05:00
Michael Davidsaver
26c3b4e944 fix RTEMS macro name conflict
RTEMS defines "PVM" in sys/param.h
2017-10-04 11:56:41 +02:00
Michael Davidsaver
01388fb526 more pvif 2017-10-04 10:42:36 +02:00
Michael Davidsaver
e89653306a pdb: consolidate metaLONG w/ metaDOUBLE 2017-10-03 15:43:09 +02:00
Michael Davidsaver
512819e3a9 switch remaining to pv/typemap.h 2017-10-03 15:01:01 +02:00
Michael Davidsaver
fbf301c151 replace pvatypemap.h with pv/typemap.h in pvDataCPP 2017-10-03 14:53:33 +02:00
Michael Davidsaver
d9a4061064 another try 2017-10-03 11:09:23 +02:00
Michael Davidsaver
1e6230b623 header change 2017-10-03 10:26:15 +02:00
Michael Davidsaver
3e87bde899 missing header 2017-10-01 10:18:02 -05:00
Michael Davidsaver
cca924fa49 pvif: fix alarm status mapping 2017-09-30 15:29:08 -05:00
Michael Davidsaver
67aa5e616c compat 2017-09-29 15:25:40 -05:00
Michael Davidsaver
bda905217a pdb: add "proc" mapping 2017-09-29 15:09:20 -05:00
Michael Davidsaver
e0bac39667 pdb: group put w/ process 2017-09-29 14:48:24 -05:00
Michael Davidsaver
b839d5dc6d pdb: meta mapping 2017-09-28 18:27:40 -05:00
Michael Davidsaver
e084a9e943 pdb: time/alarm meta mapping 2017-09-28 14:56:14 -05:00
Michael Davidsaver
786e9ec7d3 encapsulate nanoseconds splitting 2017-09-21 18:12:29 -05:00
Michael Davidsaver
0d4e99c1a2 ntndarray mapping 2017-09-21 12:45:42 -05:00
Michael Davidsaver
67bda75bcb redo mappings to handle fieldOffset of structure array 2017-09-20 18:57:11 -05:00
Michael Davidsaver
0e4ba7eceb NTNDArray mapping 2017-09-19 14:18:53 -05:00
Michael Davidsaver
2e0fe07135 minor 2017-09-14 11:37:39 -05:00
Michael Davidsaver
b5d0678c75 pvif simplify 2017-09-13 19:31:15 -05:00
Michael Davidsaver
0118f70193 pvif add simple mappings 2017-09-12 20:10:33 -05:00
Michael Davidsaver
850d79dc62 add PVIFBuilder abstraction 2017-09-12 15:31:46 -05:00
Michael Davidsaver
66063dce5a minor pvif 2017-09-12 10:42:52 -05:00
Michael Davidsaver
44dd24989c pvif: fix put bitmask checking
check for leaf and struct bits
2017-09-06 20:24:47 -05:00
Michael Davidsaver
2c6599d4c9 singlepv dbnotify 2017-09-06 14:10:07 -05:00
Michael Davidsaver
1b03882506 pdb: fix array length bytes vs. elements 2017-08-16 16:01:55 +02:00
Michael Davidsaver
91c9cf8b38 import/export 2017-07-12 16:17:49 +02:00
Michael Davidsaver
ba485df469 fixup testpdb 2017-06-22 16:38:24 +02:00
Michael Davidsaver
132eb03aa0 testpvif: get() modifies mask() 2017-06-21 16:43:10 +02:00
Michael Davidsaver
c26a59c4a3 conditional BitSet::logical_and 2017-05-24 17:52:12 -04:00
Michael Davidsaver
480698be67 pvif: don't translate status codes
PVD status codes are different and cs-studio
pva plugin fails with array out of bounds for
unknown status codes.
2016-03-27 15:51:22 +09:00
Michael Davidsaver
f1f6db989e pvalink: use cached values for triggered scan 2016-03-24 17:03:46 -04:00
Michael Davidsaver
193539b63e start on pvalink 2016-03-24 10:53:04 -04:00
Michael Davidsaver
2af78e5ff2 pvif: handle scalar string fields 2016-03-23 15:40:18 -04:00