1.1.3.4.21 DRV_METROLOGY_GetEventsData Function

C

void DRV_METROLOGY_GetEventsData(DRV_METROLOGY_AFE_EVENTS * events);

Summary

Gets the last metrology AFE events data.

Description

For further information about the event data, refer to DRV_METROLOGY_AFE_EVENTS 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.