man5/METERconf
Table of Contents
METERconf - general definitions for METER/KNOB/ASSIGNconf files
This
manual page provides the definitions for the
METERconf, KNOBconf and
ASSIGNconf
configuration files used by
meterd(8)
,
knobd(8)
and
assignd(8)
.
The
fields appear in the following order:
program_name, meter/knob_number,
meter/knob_function, C, N, A and
Offset.
Only one statement should appear
on each line. The fields of a statement are separated by a | character.
A
line is terminated by a newline character.
A # appearing at the beginning
of a line is treated as a comment. The comment ends at the end of the line.
The configuration file can be shared by meterd, knobd and assignd.
- program_name
This field is the name of the program to which the entry pertains. Valid
entries are meter, knob, or assign.
- meter_number/knob_number
Each meter or knob is given a number by which it is refered to in assignment
commands. This is an integer value.
- C,N,A,Offset
- The board number, subgroup,
channel and bit offset of the meter function. C,N,A is always specified.
Offset is only used in some cases. See meter_function and knob_function
for more information.
These entries define parameters used
by
meterd(8)
.
C,N,A,Offset usage varies with each entry.
Address of the
LCD display. Offset is not used.
Address of the D/A converter for the
meter mantissa. Offset is not used.
Address of the meter range up/down
buttons. The range buttons consist of two adjacent bits in the word. The
LSB is the down bit and the MSB is the up bit. Offset is used.
Address
of the assign button. Offset is used. This entry is used by
assignd(8)
.
These
entries define parameters used by
knobd(8)
.
C,N,A,Offset usage varies with
each entry.
Address of the LCD display. Offset is not used.
Address
of the shaft encoder IC read value registers. Offset is not used.
Address
of the shaft encoder IC clear value register. Offset is not used.
Address
of the knob sensitivity up/down buttons. The range buttons consist of two
adjacent bits in the word. The LSB is the down bit and the MSB is the up
bit. Offset is used.
Address of the assign button. Offset is used. This
entry is used by
assignd(8)
.
Address of the knob value save/restore
buttons. The save/restore buttons consist of two adjacent bits in the word.
The LSB is the range decrease bit and the MSB is the range increase bit.
Offset is used.
The following example shows configuration
information for two knobs and two meters in a common file.
#
# Meter Service
#
#
C N A Os
#
-- -- -- --
meter|1|disp | 0| 3| 0
meter|1|mant | 0| 0| 0
meter|1|range | 0| 2| 0| 0
meter|1|assign | 0| 2| 0| 2
#
meter|2|disp | 0| 3| 2
meter|2|mant | 0| 0| 4
meter|2|range | 0| 2| 1| 0
meter|2|assign | 0| 2| 1| 2
#
#
# Knob Service
#
#
C N A Os
#
-- -- -- --
knob|1|disp | 0| 3| 8
knob|1|knob | 0| 1| 0
knob|1|knobclr | 0| 1| 8
knob|1|range | 0| 2| 0| 6
knob|1|assign | 0| 2| 0| 3
knob|1|save | 0| 2| 0| 4
#
knob|2|disp | 0| 3|10
knob|2|knob | 0| 1| 2
knob|2|knobclr | 0| 1|10
knob|2|range | 0| 2| 1| 6
knob|2|assign | 0| 2| 1| 3
knob|2|save | 0| 2| 1| 4
#
$Id: METERconf.5,v 1.2 2007/08/02 15:13:39 kitchen Exp
$
Table of Contents