User guide

73M1822/73M1922 Modem API User Guide UG_1x22_055
20 Rev. 1.0
2.24 M1X22_StartMeasureVoltage
Description
Start the line voltage measurement process.
Prototype
int M1X22_StartMeasureVoltage (
M1X22_HANDLE channel,
unsigned int sampleTime,
unsigned int averageSampleCount );
Parameters
Data Type Name Description
M1X22_HANDLE
channel
Channel handle obtained from open channel.
unsigned int
sampleTime
Time interval between two consecutive samples.
unsigned int
averageSampleCount
Sample count for average calculation.
Return Values
Data Type Description
M1X22_RET
M1X22_SUCCESS Successfully started.
M1X22_FAILED Failure.
2.25 M1X22_StopMeasureCurrent
Description
Stop the line current measurement.
Prototype
int M1X22_StopMeasureCurrent (
M1X22_HANDLE channel,
unsigned int sampleTime,
unsigned int averageSampleCount );
Parameters
Data Type Name Description
M1X22_HANDLE
channel
Channel handle obtained from open channel.
unsigned int
sampleTime
Time interval between two consecutive samples.
unsigned int
averageSampleCount
Sample count for average calculation.
Return Values
Data Type Description
M1X22_RET
M1X22_SUCCESS Successfully stopped.
M1X22_FAILED Failure.