1.1.4.25 DRV_METROLOGY_GetEventsData Function

C
void DRV_METROLOGY_GetEventsData(DRV_METROLOGY_AFE_EVENTS_UNION * 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_METROLOGY_AFE_EVENTS Struct definition.

Parameters
ParamDescription
eventsPointer 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_METROLOGY_GetEventsData(&newEvent.eventFlags);
        xQueueSend(appEventsQueueID, &newEvent, (TickType_t) 0);
    }
    else
    {
        SYS_CMD_MESSAGE("EVENTS Queue is FULL!!!\n\r");
    }
Remarks

None.