Skip to content

Commit

Permalink
EDS: Update with PerfTrigger enum
Browse files Browse the repository at this point in the history
  • Loading branch information
jphickey committed Dec 13, 2023
1 parent 52a7268 commit fb86bda
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/es/config/cfe_es_extern_typedefs_eds_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include "cfe_es_eds_typedefs.h"

/* Add adapter typedefs and supplemental macros */
#define CFE_ES_PERF_TRIGGER_START CFE_ES_PerfTrigger_START
#define CFE_ES_PERF_TRIGGER_CENTER CFE_ES_PerfTrigger_CENTER
#define CFE_ES_PERF_TRIGGER_END CFE_ES_PerfTrigger_END
#define CFE_ES_PERF_MAX_MODES (1 + CFE_ES_PerfTrigger_END)

/**
* @brief Memory Offset initializer wrapper
Expand Down
11 changes: 10 additions & 1 deletion modules/es/eds/cfe_es.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@
</EnumerationList>
</EnumeratedDataType>

<EnumeratedDataType name="PerfTrigger" shortDescription="Performance Monitor trigger modes">
<IntegerDataEncoding sizeInBits="32" encoding="unsigned" />
<EnumerationList>
<Enumeration label="START" value="0" shortDescription="Trigger at start" />
<Enumeration label="CENTER" value="1" shortDescription="Trigger at center" />
<Enumeration label="END" value="2" shortDescription="Trigger at end" />
</EnumerationList>
</EnumeratedDataType>

<ContainerDataType name="AppId" baseType="CFE_RESOURCEID/BaseType" shortDescription="A type for Application IDs">
<LongDescription>
This is the type that is used for any API accepting or returning an App ID
Expand Down Expand Up @@ -467,7 +476,7 @@
For command details, see #CFE_ES_PERF_STARTDATA_CC
</LongDescription>
<EntryList>
<Entry name="TriggerMode" type="BASE_TYPES/uint32" shortDescription="Desired trigger position (Start, Center, End)" />
<Entry name="TriggerMode" type="PerfTrigger" shortDescription="Desired trigger position (Start, Center, End)" />
</EntryList>
</ContainerDataType>

Expand Down

0 comments on commit fb86bda

Please sign in to comment.