Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cFE Integration Candidate: Caelum-rc4+dev15 #2130

Merged
merged 11 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ The detailed cFE user's guide can be viewed at <https://github.com/nasa/cFE/blob

## Changelog

### Development Build: v7.0.0-rc4+dev157

- use correct loop var in add_cfe_app_dependency
- Automatic suppression of flooding events
- Remove stray TODO in UT
- See <https://github.com/nasa/cFE/pull/2129>, <https://github.com/nasa/cFE/pull/2117>, and <https://github.com/nasa/cFE/pull/2126>

### Development Build: v7.0.0-rc4+dev145

- remove commented out code
Expand Down
5 changes: 2 additions & 3 deletions cmake/arch_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ function(add_cfe_app_dependency MODULE_NAME DEPENDENCY_MODULE)
set(INCLUDE_LIST)
set(COMPILE_DEF_LIST)
foreach(DEP ${DEPENDENCY_MODULE} ${ARGN})
list(APPEND INCLUDE_LIST "$<TARGET_PROPERTY:${DEPENDENCY_MODULE},INTERFACE_INCLUDE_DIRECTORIES>")
list(APPEND COMPILE_DEF_LIST "$<TARGET_PROPERTY:${DEPENDENCY_MODULE},INTERFACE_COMPILE_DEFINITIONS>")
list(APPEND INCLUDE_LIST "$<TARGET_PROPERTY:${DEP},INTERFACE_INCLUDE_DIRECTORIES>")
list(APPEND COMPILE_DEF_LIST "$<TARGET_PROPERTY:${DEP},INTERFACE_COMPILE_DEFINITIONS>")
endforeach()

target_include_directories(${MODULE_NAME} PUBLIC
Expand Down Expand Up @@ -722,4 +722,3 @@ function(process_arch SYSVAR)
endforeach(TGTNAME ${TGTSYS_${SYSVAR}})

endfunction(process_arch SYSVAR)

24 changes: 24 additions & 0 deletions cmake/sample_defs/cpu1_platform_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,30 @@
*/
#define CFE_PLATFORM_EVS_MAX_EVENT_FILTERS 8

/**
** \cfeevscfg Maximum number of event before squelching
**
** \par Description:
** Maximum number of events that may be emitted per app per second.
** Setting this to 0 will cause events to be unrestricted.
**
** \par Limits
** This number must be less than or equal to INT_MAX/1000
*/
#define CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST 16

/**
** \cfeevscfg Sustained number of event messages per second per app before squelching
**
** \par Description:
** Sustained number of events that may be emitted per app per second.
**
** \par Limits
** This number must be less than or equal to #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST.
** Values lower than 8 may cause functional and unit test failures.
*/
#define CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC 8

/**
** \cfeevscfg Default Event Log Filename
**
Expand Down
6 changes: 6 additions & 0 deletions docs/cFE_FunctionalRequirements.csv
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ EVS: Initialize Logging Mode On Power On Reset,cEVS3203,"Upon a Power-on Reset,
EVS: Preserve Event Log Reset Mode On Processor Reset,cEVS3207,"Upon a Processor Reset, the cFE shall preserve the Event Logging Mode configuration parameter.",Try to retain mode across a processor reset. The contents of the Local Event Log will be preserved if the Event Logging Mode is configured to Discard. The contents of the Local Event Log may be overwritten (depending on the size and contents of the log prior to the reset) if the Event Logging Mode is configured to Overwrite.
EVS: Preserve Log Full State On Processor Reset,cEVS3208,"Upon a Processor Reset, the cFE shall preserve the Local Event Log Full state.",Retain the cFE state across Processor Resets.
EVS: Preserve Log Overflow Counter On Processor Reset,cEVS3210,"Upon a Processor Reset, the cFE shall preserve the Local Event Log Overflow Counter.",Retain the cFE state across Processor Resets.
EVS: Suppress Flooding Event Messages,cEVS3220,The cFE shall suppress event messages from an application that exceed a pre-defined rate.,Event message flooding may exhaust critical resources required on the spacecraft
EVS: Suppress Flooding Event Messages - Allow short bursts,cEVS3220.1,The cFE shall allow limited bursts of event messages from an application exceeding the suppress threshold rate. ,"Startup or other events may cause a brief burst of events that exceed the nominal rate, but should still be captured."
EVS: Suppress Flooding Event Messages - Resume events when not flooding,cEVS3220.2,The cFE shall automatically resume processing event messages from an application which is no longer flooding,"Flooding may be a transient condition, and resuming nominal operations when this condition goes away would allow continued delivery of useful diagnostic data. This also eases implementation. "
EVS: Suppress Flooding Event Messages - Increment counter,cEVS3220.3,The cFE shall increment the squelched counter for a flooding app when events for that app have been suppressed.,A counter provides a means for keeping track of how many events have been suppressed
EVS: Suppress Flooding Event Messages - Retain Maximum Value,cEVS3220.4,If the squelched event counters have reached their maximum value of (2^8)-1 the cFE shall retain the maximum value (i.e. do not rollover to zero).,Preventing a counter rollover to zero eliminates the case when a user may think no events have occurred when in fact many events have occurred.
EVS: Suppress Flooding Event Messages - Retain Maximum Value,cEVS3220.5,"The cFE shall issue an event message when an application transitions to the squelched state, containing the name of the offending application.","An event message provides an obvious useful diagnostic when event suppression occurs, which is an anomaly which should be dealt with."
SB: NOOP Event,cSB4000,"Upon receipt of a Command, the cFE shall generate a NO-OP event message.",This command is useful as a general sub-system aliveness test.
SB: Zero Counters,cSB4001,"Upon receipt of Command the cFE shall set to zero the following counters in housekeeping telemetry:

Expand Down
30 changes: 29 additions & 1 deletion docs/src/cfe_evs.dox
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<LI> \subpage cfeevsugcounters <BR>
<LI> \subpage cfeevsugresetctrs <BR>
<LI> \subpage cfeevsugprocreset <BR>
<LI> \subpage cfeevsugsquelch <BR>
<LI> \subpage cfeevsugfaq <BR>
</UL>

Expand Down Expand Up @@ -428,11 +429,38 @@
transfer it to the ground in order to help debug a reset.


Next: \ref cfeevsugfaq <BR>
Next: \ref cfeevsugsquelch <BR>
Prev: \ref cfeevsugresetctrs <BR>
Up To: \ref cfeevsovr
**/

/**
\page cfeevsugsquelch EVS squelching of misbehaving apps

Event squelching is an optional feature for suppressing excessive events from misbehaving apps. It
is enabled by setting #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST to a nonzero positive value, and
#CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC equal to or less than that value.

#CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST controls the maximum events that can be sent at a given moment,
and #CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC is the sustained event throughput per second.

The suppression mechanism initializes with #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST * 1000 credits.
Each event costs 1000 credits. Credits are restored at a rate of
#CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC * 1000 up to a maximum balance of #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST*1000, and the
maximum "debt" is -#CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST * 1000. When the credit count crosses from positive to negative,
a squelched event message is emitted and events are supppressed, until the credit count becomes positive again.

Figure EVS-1 is a notional state diagram of the event squelching mechanism.

\image html evs_squelch_states.png "Figure EVS-1: EVS Squelching State Diagram"
\image latex evs_squelch_states.png "Figure EVS-1: EVS Squelching State Diagram"


Next: \ref cfeevsugfaq <BR>
Prev: \ref cfeevsugprocreset <BR>
Up To: \ref cfeevsovr
**/

/**
\page cfeevsugfaq Frequently Asked Questions about Event Services

Expand Down
Binary file added docs/src/evs_squelch_states.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/src/mnem_maps/cfe_evs_tlm_mnem_map
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EVS_APP=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS] \
EVS_APPID=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS].APPID \
EVS_APPMSGSENTC=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS].APPMSGSENTC \
EVS_APPENASTAT=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS].APPENASTAT \
EVS_SPARE2ALIGN3=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS].SPARE2ALIGN3 \
EVS_SQUELCHEDC=$sc_$cpu_EVS_APP[CFE_PLATFORM_ES_MAX_APPLICATIONS].SQUELCHEDC \
EVS_APPNAME=$sc_$cpu_EVS_APPNAME[OS_MAX_API_NAME] \
EVS_EVENTID=$sc_$cpu_EVS_EVENTID \
EVS_EVENTTYPE=$sc_$cpu_EVS_EVENTTYPE \
Expand Down
25 changes: 25 additions & 0 deletions modules/cfe_testcase/src/evs_send_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@

void TestSendEvent(void)
{
int status;
int i;

if (CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST)
{
/* Allow squelch credits to accumulate */
OS_TaskDelay((CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST / CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC) * 1000);
}

UtPrintf("Testing: CFE_EVS_SendEvent");

UtAssert_INT32_EQ(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "OK Send"), CFE_SUCCESS);
Expand All @@ -44,6 +53,22 @@ void TestSendEvent(void)

UtAssert_INT32_EQ(CFE_EVS_SendEvent(0, CFE_EVS_EventType_CRITICAL, "OK (Critical) Send"), CFE_SUCCESS);
UtAssert_INT32_EQ(CFE_EVS_SendEvent(0, CFE_EVS_EventType_CRITICAL, NULL), CFE_EVS_INVALID_PARAMETER);

if (CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST)
{
/* Allow squelch credits to accumulate */
OS_TaskDelay((CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST / CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC) * 1000);

for (i = 0; i < CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST; i++)
UtAssert_INT32_EQ(CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "OK Send"), CFE_SUCCESS);

status = CFE_EVS_SendEvent(0, CFE_EVS_EventType_INFORMATION, "OK Squelch");

/* Allow squelch credits to accumulate */
OS_TaskDelay((CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST / CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC) * 1000);

UtAssert_INT32_EQ(status, CFE_EVS_APP_SQUELCHED);
}
}

void TestSendEventAppID(void)
Expand Down
8 changes: 8 additions & 0 deletions modules/core_api/fsw/inc/cfe_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ char *CFE_ES_StatusToString(CFE_Status_t status, CFE_StatusString_t *status_stri
*/
#define CFE_EVS_INVALID_PARAMETER ((CFE_Status_t)0xc2000008)

/**
* @brief Event squelched
*
* Event squelched due to being sent at too high a rate
*
*/
#define CFE_EVS_APP_SQUELCHED ((CFE_Status_t)0xc2000009)

/**
* @brief Not Implemented
*
Expand Down
2 changes: 1 addition & 1 deletion modules/core_api/fsw/inc/cfe_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define CFE_VERSION_H

/* Development Build Macro Definitions */
#define CFE_BUILD_NUMBER 145 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
#define CFE_BUILD_NUMBER 157 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
#define CFE_BUILD_BASELINE "v7.0.0-rc4" /**< @brief Development: Reference git tag for build number */

/* See \ref cfsversions for definitions */
Expand Down
1 change: 0 additions & 1 deletion modules/es/ut-coverage/es_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -2966,7 +2966,6 @@ void TestTask(void)
UT_CallTaskPipe(CFE_ES_TaskPipe, &CmdBuf.Msg, sizeof(CmdBuf.QueryAllTasksCmd),
UT_TPID_CFE_ES_CMD_QUERY_ALL_TASKS_CC);
CFE_UtAssert_EVENTSENT(CFE_ES_TASKINFO_EID);
/* TODO */

/* Test write of all task data to a file with file name validation failure */
ES_ResetUnitTest();
Expand Down
5 changes: 5 additions & 0 deletions modules/evs/eds/cfe_evs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@
\cfetlmmnemonic \EVS_APPENASTAT
</LongDescription>
</Entry>
<Entry name="AppMessageSquelchedCounter" type="BASE_TYPES/uint8" shortDescription="Application event squelch count">
<LongDescription>
\cfetlmmnemonic \EVS_SQUELCHEDC
</LongDescription>
</Entry>
</EntryList>
</ContainerDataType>

Expand Down
13 changes: 13 additions & 0 deletions modules/evs/fsw/inc/cfe_evs_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,19 @@
* Invalid length for the command code in message ID #CFE_EVS_CMD_MID received on the EVS message pipe.
*/
#define CFE_EVS_LEN_ERR_EID 43

/**
* \brief EVS Events Squelched Error Event ID
*
* \par Type: ERROR
*
* \par Cause:
*
* Events generated in app at a rate in excess of
* #CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST in one moment or
* #CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC sustained
*/
#define CFE_EVS_SQUELCHED_ERR_EID 44
/**\}*/

#endif /* CFE_EVS_EVENTS_H */
16 changes: 8 additions & 8 deletions modules/evs/fsw/inc/cfe_evs_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1157,14 +1157,14 @@ typedef CFE_EVS_AppNameEventIDMaskCmd_t CFE_EVS_SetFilterCmd_t;
/**********************************/
typedef struct CFE_EVS_AppTlmData
{
CFE_ES_AppId_t AppID; /**< \cfetlmmnemonic \EVS_APPID
\brief Numerical application identifier */
uint16 AppMessageSentCounter; /**< \cfetlmmnemonic \EVS_APPMSGSENTC
\brief Application message sent counter */
uint8 AppEnableStatus; /**< \cfetlmmnemonic \EVS_APPENASTAT
\brief Application event service enable status */
uint8 Padding; /**< \cfetlmmnemonic \EVS_SPARE2ALIGN3
\brief Padding for 32 bit boundary */
CFE_ES_AppId_t AppID; /**< \cfetlmmnemonic \EVS_APPID
\brief Numerical application identifier */
uint16 AppMessageSentCounter; /**< \cfetlmmnemonic \EVS_APPMSGSENTC
\brief Application message sent counter */
uint8 AppEnableStatus; /**< \cfetlmmnemonic \EVS_APPENASTAT
\brief Application event service enable status */
uint8 AppMessageSquelchedCounter; /**< \cfetlmmnemonic \EVS_SQUELCHEDC
\brief Number of events squelched */

} CFE_EVS_AppTlmData_t;

Expand Down
54 changes: 38 additions & 16 deletions modules/evs/fsw/src/cfe_evs.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ CFE_Status_t CFE_EVS_Register(const void *Filters, uint16 NumEventFilters, uint1
/* Initialize application event data */
AppDataPtr->ActiveFlag = true;
AppDataPtr->EventTypesActiveFlag = CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG;
AppDataPtr->SquelchTokens = CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST * 1000;

/* Set limit for number of provided filters */
if (NumEventFilters < CFE_PLATFORM_EVS_MAX_EVENT_FILTERS)
Expand Down Expand Up @@ -143,13 +144,20 @@ CFE_Status_t CFE_EVS_SendEvent(uint16 EventID, uint16 EventType, const char *Spe
}
else if (EVS_IsFiltered(AppDataPtr, EventID, EventType) == false)
{
/* Get current spacecraft time */
Time = CFE_TIME_GetTime();
if (EVS_CheckAndIncrementSquelchTokens(AppDataPtr) == true)
{
/* Get current spacecraft time */
Time = CFE_TIME_GetTime();

/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
}
else
{
Status = CFE_EVS_APP_SQUELCHED;
}
}
}

Expand Down Expand Up @@ -188,13 +196,20 @@ CFE_Status_t CFE_EVS_SendEventWithAppID(uint16 EventID, uint16 EventType, CFE_ES
}
else if (EVS_IsFiltered(AppDataPtr, EventID, EventType) == false)
{
/* Get current spacecraft time */
Time = CFE_TIME_GetTime();
if (EVS_CheckAndIncrementSquelchTokens(AppDataPtr) == true)
{
/* Get current spacecraft time */
Time = CFE_TIME_GetTime();

/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
}
else
{
Status = CFE_EVS_APP_SQUELCHED;
}
}

return Status;
Expand Down Expand Up @@ -231,10 +246,17 @@ CFE_Status_t CFE_EVS_SendTimedEvent(CFE_TIME_SysTime_t Time, uint16 EventID, uin
}
else if (EVS_IsFiltered(AppDataPtr, EventID, EventType) == false)
{
/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
if (EVS_CheckAndIncrementSquelchTokens(AppDataPtr) == true)
{
/* Send the event packets */
va_start(Ptr, Spec);
EVS_GenerateEventTelemetry(AppDataPtr, EventID, EventType, &Time, Spec, Ptr);
va_end(Ptr);
}
else
{
Status = CFE_EVS_APP_SQUELCHED;
}
}
}

Expand Down
21 changes: 14 additions & 7 deletions modules/evs/fsw/src/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ int32 CFE_EVS_EarlyInit(void)
CFE_EVS_Global.EVS_TlmPkt.Payload.OutputPort = CFE_PLATFORM_EVS_PORT_DEFAULT;
CFE_EVS_Global.EVS_TlmPkt.Payload.LogMode = CFE_PLATFORM_EVS_DEFAULT_LOG_MODE;

CFE_EVS_Global.EVS_EventBurstMax = CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST;

/* Get a pointer to the CFE reset area from the BSP */
PspStatus = CFE_PSP_GetResetArea(&resetAreaAddr, &resetAreaSize);

Expand Down Expand Up @@ -653,9 +655,11 @@ int32 CFE_EVS_ReportHousekeepingCmd(const CFE_MSG_CommandHeader_t *data)
{
if (EVS_AppDataIsUsed(AppDataPtr))
{
AppTlmDataPtr->AppID = EVS_AppDataGetID(AppDataPtr);
AppTlmDataPtr->AppEnableStatus = AppDataPtr->ActiveFlag;
AppTlmDataPtr->AppMessageSentCounter = AppDataPtr->EventCount;
AppTlmDataPtr->AppID = EVS_AppDataGetID(AppDataPtr);
AppTlmDataPtr->AppEnableStatus = AppDataPtr->ActiveFlag;
AppTlmDataPtr->AppMessageSentCounter = AppDataPtr->EventCount;
AppTlmDataPtr->AppMessageSquelchedCounter = AppDataPtr->SquelchedCount;

++j;
++AppTlmDataPtr;
}
Expand All @@ -665,9 +669,10 @@ int32 CFE_EVS_ReportHousekeepingCmd(const CFE_MSG_CommandHeader_t *data)
/* Clear unused portion of event state data in telemetry packet */
for (i = j; i < CFE_MISSION_ES_MAX_APPLICATIONS; i++)
{
AppTlmDataPtr->AppID = CFE_ES_APPID_UNDEFINED;
AppTlmDataPtr->AppEnableStatus = false;
AppTlmDataPtr->AppMessageSentCounter = 0;
AppTlmDataPtr->AppID = CFE_ES_APPID_UNDEFINED;
AppTlmDataPtr->AppEnableStatus = false;
AppTlmDataPtr->AppMessageSentCounter = 0;
AppTlmDataPtr->AppMessageSquelchedCounter = 0;
}

CFE_SB_TimeStampMsg(CFE_MSG_PTR(CFE_EVS_Global.EVS_TlmPkt.TelemetryHeader));
Expand Down Expand Up @@ -1245,7 +1250,8 @@ int32 CFE_EVS_ResetAppCounterCmd(const CFE_EVS_ResetAppCounterCmd_t *data)

if (Status == CFE_SUCCESS)
{
AppDataPtr->EventCount = 0;
AppDataPtr->EventCount = 0;
AppDataPtr->SquelchedCount = 0;

EVS_SendEvent(CFE_EVS_RSTEVTCNT_EID, CFE_EVS_EventType_DEBUG,
"Reset Event Counter Command Received with AppName = %s", LocalName);
Expand Down Expand Up @@ -1614,6 +1620,7 @@ int32 CFE_EVS_WriteAppDataFileCmd(const CFE_EVS_WriteAppDataFileCmd_t *data)
AppDataFile.ActiveFlag = AppDataPtr->ActiveFlag;
AppDataFile.EventCount = AppDataPtr->EventCount;
AppDataFile.EventTypesActiveFlag = AppDataPtr->EventTypesActiveFlag;
AppDataFile.SquelchedCount = AppDataPtr->SquelchedCount;

/* Copy application filter data to application file data record */
memcpy(AppDataFile.Filters, AppDataPtr->BinFilters,
Expand Down
Loading