Generated modular mercury drivers

This commit is contained in:
Douglas Clowes
2014-05-14 17:28:58 +10:00
parent abafa6a2e6
commit cf8a08ea7e
11 changed files with 2305 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
driver mercury_level = {
vendor = oxford; device = mercury; protocol = std;
class = environment; simulation_group = environment_simulation;
add_args = '{id 99}'
make_args = 'id'
group Level = {
priv = user; type = float; readable = 15;
var Nitrogen = { read_command = 'READ:DEV:DB5.L1:LVL:SIG:NIT:LEV'; permlink = 'L.S01'; }
var Helium = { read_command = 'READ:DEV:DB5.L1:LVL:SIG:HEL:LEV'; permlink = 'L.S02'; }
}
code read_function rdValue = {
@ scan [lindex [split "$data" ":"] end] "%g" data
}
}