File Coverage

blib/lib/Config/Model/models/LCDd/imonlcd.pl
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1 1     1   6781 use strict;
  1         2  
  1         34  
2 1     1   6 use warnings;
  1         3  
  1         138  
3              
4             return [
5             {
6             'class_description' => 'generated from LCDd.conf',
7             'element' => [
8             'Backlight',
9             {
10             'description' => 'Set the backlight state ',
11             'type' => 'leaf',
12             'upstream_default' => 'on',
13             'value_type' => 'boolean',
14             'write_as' => [
15             'off',
16             'on'
17             ]
18             },
19             'Contrast',
20             {
21             'description' => 'Select the displays contrast ',
22             'max' => '1000',
23             'min' => '0',
24             'type' => 'leaf',
25             'upstream_default' => '200',
26             'value_type' => 'integer'
27             },
28             'Device',
29             {
30             'description' => 'Select the output device to use ',
31             'type' => 'leaf',
32             'upstream_default' => '/dev/lcd0',
33             'value_type' => 'uniline'
34             },
35             'DiscMode',
36             {
37             'choice' => [
38             '0',
39             '1'
40             ],
41             'description' => 'Set the disc mode
42             0 => spin the "slim" disc - two disc segments,
43             1 => their complement spinning;',
44             'type' => 'leaf',
45             'upstream_default' => '0',
46             'value_type' => 'enum'
47             },
48             'OnExit',
49             {
50             'description' => 'Set the exit behavior
51             0 means leave shutdown message,
52             1 means show the big clock,
53             2 means blank device',
54             'max' => '2',
55             'min' => '0',
56             'type' => 'leaf',
57             'upstream_default' => '1',
58             'value_type' => 'integer'
59             },
60             'Protocol',
61             {
62             'choice' => [
63             '0',
64             '1'
65             ],
66             'description' => 'Specify which iMon protocol should be used
67              
68             Choose 0 for 15c2:ffdc device,
69             Choose 1 for 15c2:0038 device',
70             'type' => 'leaf',
71             'upstream_default' => '0',
72             'value_type' => 'enum'
73             },
74             'Size',
75             {
76             'description' => 'Specify the size of the display in pixels ',
77             'type' => 'leaf',
78             'upstream_default' => '96x16',
79             'value_type' => 'uniline'
80             }
81             ],
82             'name' => 'LCDd::imonlcd'
83             }
84             ]
85             ;
86