Artifact artf3520 : Need a PDP Clear Sticky Faults API

Artifact artf3740 : C++ and Java don't implement all PDP features

Change-Id: I6a519d16de412a4d477b1f9c57e9b405b2e1aae0
This commit is contained in:
Omar Zrien
2014-11-25 00:52:41 -05:00
committed by Thomas Clark
parent 56430ccd7c
commit 4da9ebe1fd
7 changed files with 218 additions and 17 deletions

View File

@@ -26,3 +26,36 @@ double getPDPChannelCurrent(uint8_t channel, int32_t *status) {
return current;
}
double getPDPTotalCurrent(int32_t *status) {
double current;
*status = pdp.GetTotalCurrent(current);
return current;
}
double getPDPTotalPower(int32_t *status) {
double power;
*status = pdp.GetTotalPower(power);
return power;
}
double getPDPTotalEnergy(int32_t *status) {
double energy;
*status = pdp.GetTotalEnergy(energy);
return energy;
}
void resetPDPTotalEnergy(int32_t *status) {
*status = pdp.ResetEnergy();
}
void clearPDPStickyFaults(int32_t *status) {
*status = pdp.ClearStickyFaults();
}