1.1.4.24 DRV_METROLOGY_GetEventsData Function
C
Returns
voidDRV_METROLOGY_GetEventsData(DRV_METROLOGY_AFE_EVENTS * events);SummaryGets the last metrology AFE events data.
DescriptionGets 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 definition.
Parameters| Param | Description |
|---|---|
| events | Pointer to the data where the events related information will be written. |
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");
}RemarksNone.
