File Coverage

blib/lib/Device/Inverter/Aurora/Constants.pm
Criterion Covered Total %
statement 225 225 100.0
branch n/a
condition n/a
subroutine 75 75 100.0
pod n/a
total 300 300 100.0


line stmt bran cond sub pod time code
1             package Device::Inverter::Aurora;
2              
3 1     1   5 use constant OP_GET_STATE => 50;
  1         2  
  1         53  
4 1     1   5 use constant OP_GET_PART_NUMBER => 52;
  1         2  
  1         40  
5 1     1   6 use constant OP_GET_VERSION => 58;
  1         7  
  1         42  
6 1     1   5 use constant OP_GET_DSP => 59;
  1         2  
  1         37  
7 1     1   5 use constant OP_GET_SERIAL_NUMBER => 63;
  1         1  
  1         50  
8 1     1   5 use constant OP_GET_MANUFACTURING_DATE => 65;
  1         2  
  1         77  
9 1     1   5 use constant OP_GET_TIME => 70;
  1         1  
  1         51  
10 1     1   6 use constant OP_SET_TIME => 71;
  1         1  
  1         46  
11 1     1   5 use constant OP_GET_FIRMWARE_VERSION => 72;
  1         1  
  1         59  
12 1     1   5 use constant OP_GET_LAST_10_SEC_ENERGY => 76;
  1         2  
  1         38  
13 1     1   5 use constant OP_GET_CONFIGURATION => 77;
  1         2  
  1         43  
14 1     1   5 use constant OP_GET_CUMULATED_ENERGY => 78;
  1         2  
  1         41  
15 1     1   5 use constant OP_GET_COUNTERS => 80;
  1         2  
  1         44  
16 1     1   5 use constant OP_GET_LAST_4_ALARMS => 86;
  1         1  
  1         43  
17              
18 1     1   5 use constant CUMULATED_DAILY => 0;
  1         1  
  1         38  
19 1     1   4 use constant CUMULATED_WEEKLY => 1;
  1         1  
  1         45  
20 1     1   5 use constant CUMULATED_MONTHLY => 3;
  1         1  
  1         44  
21 1     1   6 use constant CUMULATED_YEARLY => 4;
  1         1  
  1         39  
22 1     1   5 use constant CUMULATED_TOTAL => 5;
  1         2  
  1         43  
23 1     1   5 use constant CUMULATED_PARTIAL => 6;
  1         2  
  1         44  
24              
25 1     1   5 use constant DSP_GRID_VOLTAGE => 1; # Grid Voltage (Global)
  1         2  
  1         42  
26 1     1   5 use constant DSP_GRID_CURRENT => 2; # Grid Current (Global)
  1         8  
  1         46  
27 1     1   5 use constant DSP_GRID_POWER => 3; # Grid Power (Global)
  1         2  
  1         53  
28 1     1   5 use constant DSP_FREQUENCY => 4; # Frequency
  1         2  
  1         42  
29 1     1   5 use constant DSP_VBULK => 5; # VBulk
  1         2  
  1         37  
30 1     1   4 use constant DSP_ILEAK_DCDC => 6; # Ileak (Dc/Dc)
  1         2  
  1         49  
31 1     1   5 use constant DSP_ILEAK_INVERTER => 7; # Ileak (Inverter)
  1         1  
  1         37  
32 1     1   5 use constant DSP_PIN_1 => 8; # Pin 1 (Global)
  1         2  
  1         57  
33 1     1   5 use constant DSP_PIN_2 => 9; # Pin 2
  1         2  
  1         42  
34 1     1   6 use constant DSP_INVERTER_TEMPERATURE => 21; # Inverter Temperature
  1         1  
  1         48  
35 1     1   23 use constant DSP_BOOSTER_TEMPERATURE => 22; # Booster Temperature
  1         3  
  1         43  
36 1     1   6 use constant DSP_INPUT_1_VOLTAGE => 23; # Input 1 Voltage
  1         2  
  1         48  
37 1     1   6 use constant DSP_INPUT_1_CURRENT => 25; # Input 1 Current
  1         2  
  1         42  
38 1     1   5 use constant DSP_INPUT_2_VOLTAGE => 26; # Input 2 Voltage
  1         2  
  1         48  
39 1     1   5 use constant DSP_INPUT_2_CURRENT => 27; # Input 2 Current
  1         2  
  1         53  
40 1     1   5 use constant DSP_GRID_VOLTAGE_DCDC => 28; # Grid Voltage (Dc/Dc)
  1         2  
  1         51  
41 1     1   5 use constant DSP_GRID_FREQUENCY_DCDC => 29; # Grid Frequency (Dc/Dc)
  1         2  
  1         50  
42 1     1   5 use constant DSP_ISOLATION_RESISTANCE => 30; # Isolation Resistance (Riso)
  1         2  
  1         114  
43 1     1   6 use constant DSP_VBULK_DCDC => 31; # Vbulk (Dc/Dc)
  1         9  
  1         44  
44 1     1   6 use constant DSP_AVERAGE_GRID_VOLTAGE => 32; # Average Grid Voltage (VgridAvg)
  1         1  
  1         51  
45 1     1   11 use constant DSP_VBULK_MID => 33; # Vbulk Mid
  1         2  
  1         42  
46 1     1   6 use constant DSP_POWER_PEAK => 34; # Power Peak
  1         2  
  1         49  
47 1     1   5 use constant DSP_POWER_PEAK_TODAY => 35; # Power Peak Today
  1         1  
  1         54  
48 1     1   14 use constant DSP_GRID_VOLTAGE_NEUTRAL => 36; # Grid Voltage neutral
  1         2  
  1         44  
49 1     1   5 use constant DSP_WIND_GENERATOR_FREQUENCY => 37; # Wind Generator Frequency
  1         2  
  1         48  
50 1     1   5 use constant DSP_GRID_VOLTAGE_NEUTRAL_PHASE => 38; # Grid Voltage neutral-phase
  1         1  
  1         42  
51 1     1   6 use constant DSP_GRID_CURRENT_PHASE_R => 39; # Grid Current phase r
  1         2  
  1         56  
52 1     1   5 use constant DSP_GRID_CURRENT_PHASE_S => 40; # Grid Current phase s
  1         2  
  1         49  
53 1     1   6 use constant DSP_GRID_CURRENT_PHASE_T => 41; # Grid Current phase t
  1         1  
  1         43  
54 1     1   5 use constant DSP_FREQUENCY_PHASE_R => 32; # Frequency phase r
  1         2  
  1         47  
55 1     1   5 use constant DSP_FREQUENCY_PHASE_S => 43; # Frequency phase s
  1         2  
  1         48  
56 1     1   6 use constant DSP_FREQUENCY_PHASE_T => 44; # Frequency phase t
  1         2  
  1         49  
57 1     1   6 use constant DSP_VBULK_POSITIVE => 45; # Vbulk +
  1         2  
  1         57  
58 1     1   6 use constant DSP_VBULK_NEGATIVE => 46; # Vbulk -
  1         2  
  1         41  
59 1     1   6 use constant DSP_SUPERVISOR_TEMPERATURE => 47; # Supervisor Temperature
  1         1  
  1         55  
60 1     1   7 use constant DSP_ALIM_TEMPERATURE => 48; # Alim Temperature
  1         2  
  1         48  
61 1     1   5 use constant DSP_HEAT_SINK_TEMPERATURE => 49; # Heat Sink Temperature
  1         2  
  1         43  
62 1     1   5 use constant DSP_TEMPERATURE_1 => 50; # Temperature 1
  1         2  
  1         63  
63 1     1   6 use constant DSP_TEMPERATURE_2 => 51; # Temperature 2
  1         2  
  1         56  
64 1     1   12 use constant DSP_TEMPERATURE_3 => 52; # Temperature 3
  1         2  
  1         43  
65 1     1   6 use constant DSP_FAN_1_SPEED => 53; # Fan 1 Speed
  1         1  
  1         53  
66 1     1   6 use constant DSP_FAN_2_SPEED => 54; # Fan 2 Speed
  1         2  
  1         48  
67 1     1   6 use constant DSP_FAN_3_SPEED => 55; # Fan 3 Speed
  1         2  
  1         48  
68 1     1   6 use constant DSP_FAN_4_SPEED => 56; # Fan 4 Speed
  1         1  
  1         44  
69 1     1   5 use constant DSP_FAN_5_SPEED => 57; # Fan 5 Speed
  1         2  
  1         49  
70 1     1   6 use constant DSP_POWER_SATURATION_LIMIT => 58; # Power Saturation Limit (Der.)
  1         2  
  1         49  
71 1     1   11 use constant DSP_RIFERIMENTO_ANELLO_BULK => 59; # Refeimento Anello Bulk
  1         2  
  1         43  
72 1     1   5 use constant DSP_VPANEL_MICRO => 60; # Vpanel micro
  1         2  
  1         48  
73 1     1   5 use constant DSP_GRID_VOLTAGE_PHASE_R => 61; # Grid Voltage phase r
  1         2  
  1         42  
74 1     1   5 use constant DSP_GRID_VOLTAGE_PHASE_S => 62; # Grid Voltage phase s
  1         9  
  1         45  
75 1     1   14 use constant DSP_GRID_VOLTAGE_PHASE_T => 63; # Grid Voltage phase t
  1         3  
  1         44  
76              
77 1     1   5 use constant COUNTER_TOTAL => 0;
  1         2  
  1         37  
78 1     1   5 use constant COUNTER_PARTIAL => 1;
  1         1  
  1         75  
79 1     1   5 use constant COUNTER_GRID => 2;
  1         1  
  1         43  
80 1     1   5 use constant COUNTER_RESET => 3;
  1         2  
  1         46  
81              
82              
83             1;