Jump to main content

# 2.1.4.24 DRV_MCMETROLOGY_GetEventsData Function

## C

    voidDRV_MCMETROLOGY_GetEventsData(DRV_MCMETROLOGY_AFE_EVENTS * events);

## Summary

Gets the last metrology AFE events data.

## Description

Gets the last metrology AFE events data. Events are updated at the end of each Half-Cycle and Full-Cycle. For additional information about the event data, refer to the DRV_MCMETROLOGY_AFE_EVENTS definition.

## Parameters

Parameters | Description
--- | ---
events | Pointer to the data where the events related information will be written

## Returns

None.

## Example

        /* Send new Events to the Events Task */
        app_metrologyData.queueFree = uxQueueSpacesAvailable(appEventsQueueID);
        if (app_metrologyData.queueFree)
        {
            RTC_TimeGet(&newEvent.eventTime);
            DRV_MCMETROLOGY_GetEventsData(&newEvent.eventFlags);
            xQueueSend(appEventsQueueID, &newEvent, (TickType_t) 0);
        }
        else
        {
            SYS_CMD_MESSAGE("EVENTS Queue is FULL!!!\n\r");
        }

## Remarks

None.

Rev: E