Power Meter Controller (PMC) interface.
More...
Power Meter Controller (PMC) interface.
Definition at line 20 of file PowerMeterController.idl.
◆ createPanel()
Create a new panel.
- Parameters
-
panel | Result: Newly created instance |
config | New power meter config |
powerMeterSettings | Power meter settings |
panelSettings | Panel settings |
- Returns
- 0 if OK
-
1 if any parameters are invalid
-
2 if a power meter with the given ID already exists
◆ createPowerMeter()
Create a new standalone power meter (no panel).
- Parameters
-
powerMeter | Result: Newly created instance |
config | New power meter config |
settings | Power meter settings |
- Returns
- 0 if OK
-
1 if any parameters are invalid
-
2 if a power meter with the given ID already exists
◆ deletePowerMeter()
int pdumodel::PowerMeterController::deletePowerMeter |
( |
in int |
powerMeterId | ) |
|
Delete a panel or power meter.
- Parameters
-
powerMeterId | Power meter ID |
- Returns
- 0 if OK
-
1 if the power meter ID is invalid
◆ getPowerMeters()
map< int, PowerMeter > pdumodel::PowerMeterController::getPowerMeters |
( |
| ) |
|
Retrieve the list of power meters and panels.
- Returns
- Power meter and panel instances, indexed by power meter ID
◆ scanMeterBoard()
int pdumodel::PowerMeterController::scanMeterBoard |
( |
in int |
powerMeterId, |
|
|
out ScanResult |
result |
|
) |
| |
Scan for presence and configuration of a meter board.
- Parameters
-
powerMeterId | ID of meter board to be scanned |
result | Detected meter board properties |
- Returns
- 0 if OK
-
1 if the meter board ID is out of range
◆ ERR_INVALID_PARAM
constant int pdumodel::PowerMeterController::ERR_INVALID_PARAM = 1 |
◆ ERR_METER_BOARD_BUSY
constant int pdumodel::PowerMeterController::ERR_METER_BOARD_BUSY = 2 |
The documentation for this interface was generated from the following file: