power-meter API Callbacks#
These callbacks were contributed by the power-meter API.
Functions#
Called upon the status change of over heat condition.
Called upon the status change of over current condition.
Called when calibration is complete.
Function Documentation#
halPowerMeterOverHeatStatusChangeCallback#
void halPowerMeterOverHeatStatusChangeCallback (uint8_t status)
Called upon the status change of over heat condition.
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| uint8_t | N/A | status | OVER_HEAT_TO_NORMAL (0):changed from over heat to normal; NORMAL_TO_OVER_HEAT (1):over heat occurred. | 
This function is called upon the status change of over heat condition.
halPowerMeterOverCurrentStatusChangeCallback#
void halPowerMeterOverCurrentStatusChangeCallback (uint8_t status)
Called upon the status change of over current condition.
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| uint8_t | N/A | status | OVER_CURRENT_TO_NORMAL (0):changed from over current to normal; NORMAL_TO_OVER_CURRENT (1):over current occurred. | 
This function is called upon the status change of over current condition.
halPowerMeterCalibrationFinishedCallback#
void halPowerMeterCalibrationFinishedCallback (uint16_t gainSetting)
Called when calibration is complete.
| Type | Direction | Argument Name | Description | 
|---|---|---|---|
| uint16_t | N/A | gainSetting | gain setting | 
This function is called upon a calibration procedure is done.