Jump to main content

# 1.1.4.35 DRV_METROLOGY_CaptureGetState Function

## C

    DRV_METROLOGY_CAPTURE_STATE DRV_METROLOGY_CaptureGetState(void);

## Summary

Get the state of the capture process.

## Description

Status will be meaningful only when capture is enabled.

## Parameters

None.

## Returns

Waveform Capture State as defined in DRV_METROLOGY_CAPTURE_STATE Enum.

## Example

            DRV_METROLOGY_CAPTURE_STATE state;

            state = DRV_METROLOGY_CaptureGetState();
            if (state == CAPTURE_DISABLED)
            {
                SYS_CMD_MESSAGE("Waveform capture is DISABLED\r\n");
            }
            else if (state == CAPTURE_ACTIVE)
            {
                SYS_CMD_MESSAGE("Waveform capture is ACTIVE\r\n");
            }
            else if (state == CAPTURE_COMPLETE)
            {
                SYS_CMD_MESSAGE("Waveform capture is COMPLETE\r\n");
            }
            else
            {
                SYS_CMD_MESSAGE("Error in Waveform capture state\r\n");
            }

## Remarks

None.

Rev: E