@@ -44,7 +44,7 @@ def guardSignature(self, smname: str, action: str, args: str) -> str:
4444 if args == "" :
4545 template = Template ("""bool $(smname)_$(action)()""" )
4646 elif args == "e" :
47- template = Template ("""bool $(smname)_$(action)(const Fw::SMEvents *e)""" )
47+ template = Template ("""bool $(smname)_$(action)(const Fw::SMSignals *e)""" )
4848 elif args .isdigit ():
4949 template = Template ("""bool $(smname)_$(action)(int arg)""" )
5050 else :
@@ -62,7 +62,7 @@ def guardDef(self, smname: str, action: str, component: str, args: str, namespac
6262 if args == "" :
6363 template = Template ("""bool $(namespace)::$(component)::$(smname)_$(action)()""" )
6464 elif args == "e" :
65- template = Template ("""bool $($namespace)::$(component)::$(smname)_$(action)(const Fw::SMEvents *e)""" )
65+ template = Template ("""bool $($namespace)::$(component)::$(smname)_$(action)(const Fw::SMSignals *e)""" )
6666 elif args .isdigit ():
6767 template = Template ("""bool $(namespace)::$(component)::$(smname)_$(action)(int arg)""" )
6868 else :
@@ -96,7 +96,7 @@ def actionSignature(self, smname: str, action: str, args: str) -> str:
9696 if args == "" :
9797 template = Template ("""void $(smname)_$(action)()""" )
9898 elif args == "e" :
99- template = Template ("""void $(smname)_$(action)(const Fw::SMEvents *e)""" )
99+ template = Template ("""void $(smname)_$(action)(const Fw::SMSignals *e)""" )
100100 elif args .isdigit ():
101101 template = Template ("""void $(smname)_$(action)(int arg)""" )
102102 else :
@@ -115,7 +115,7 @@ def actionDef(self, smname: str, action: str, component: str, args: str, namespa
115115 if args == "" :
116116 template = Template ("""void $(namespace)::$(component)::$(smname)_$(action)()""" )
117117 elif args == "e" :
118- template = Template ("""void $(namespace)::$(component)::$(smname)_$(action)(const Fw::SMEvents *e)""" )
118+ template = Template ("""void $(namespace)::$(component)::$(smname)_$(action)(const Fw::SMSignals *e)""" )
119119 elif args .isdigit ():
120120 template = Template ("""void $(namespace)::$(component)::$(smname)_$(action)(int arg)""" )
121121 else :
@@ -157,7 +157,7 @@ def fileHeader(self, smname: str, stateList: List[str], eventList: List[str], na
157157#define $(smname.upper())_H_
158158
159159namespace Fw {
160- class SMEvents ;
160+ class SMSignals ;
161161}
162162
163163namespace $(namespace) {
@@ -196,7 +196,7 @@ class $(smname) {
196196 void * extension;
197197
198198 void init();
199- void update(const Fw::SMEvents *e);
199+ void update(const Fw::SMSignals *e);
200200
201201};
202202
@@ -227,7 +227,7 @@ def stateMachineInit(self, smname: str, transition: str, namespace: str) -> str:
227227
228228\#include "stdio.h"
229229\#include "assert.h"
230- \#include "Fw/Types/SMEventsSerializableAc .hpp"
230+ \#include "Fw/Types/SMSignalsSerializableAc .hpp"
231231\#include "$(smname).hpp"
232232
233233
@@ -237,7 +237,7 @@ def stateMachineInit(self, smname: str, transition: str, namespace: str) -> str:
237237}
238238
239239
240- void $(namespace)::$(smname)::update(const Fw::SMEvents *e)
240+ void $(namespace)::$(smname)::update(const Fw::SMSignals *e)
241241{
242242 switch (this->state) {
243243 """ )
@@ -343,7 +343,7 @@ class $(component)SmBase : public $(componentBase)
343343 void sendEvent(U32 eventSignal, StateMachine::SmId id);
344344
345345 // Internal Interface handler for sendEvents
346- void sendEvents_internalInterfaceHandler(const Fw::SMEvents & ev);
346+ void sendEvents_internalInterfaceHandler(const Fw::SMSignals & ev);
347347
348348 // Instantiate the state machines
349349 #for $state in $state_machines
@@ -416,13 +416,13 @@ def smBaseCpp(self,
416416
417417void $(nameSpace)::$(component)SmBase:: sendEvent(U32 eventSignal, StateMachine::SmId id) {
418418
419- Fw::SMEvents event;
419+ Fw::SMSignals event;
420420 event.seteventSignal(eventSignal);
421421 event.setsmId(id);
422422 sendEvents_internalInterfaceInvoke(event);
423423}
424424
425- void $(nameSpace)::$(component)SmBase::sendEvents_internalInterfaceHandler(const Fw::SMEvents & ev)
425+ void $(nameSpace)::$(component)SmBase::sendEvents_internalInterfaceHandler(const Fw::SMSignals & ev)
426426{
427427 U16 id = ev.getsmId();
428428 switch (id) {
@@ -449,16 +449,16 @@ def smBaseCpp(self,
449449 return str (template )
450450
451451# -------------------------------------------------------------------------------
452- # smEvents
452+ # smSignals
453453# -------------------------------------------------------------------------------
454- def smEvents (self ) -> str :
454+ def smSignalss (self ) -> str :
455455
456456 template = Template ("""
457457# This is an Auto generate file from the STARS Autocoder
458458
459459module Fw {
460460
461- struct SMEvents {
461+ struct SMSignals {
462462 smId : U32
463463 eventSignal: U32
464464 payload: [128] U8
@@ -479,7 +479,7 @@ def internalQ(self, state_machines) -> str:
479479# This is an Auto generate file from the STARS Autocoder
480480
481481@ internal port for handling state-machine Events
482- internal port sendEvents(ev: Fw.SMEvents )
482+ internal port sendEvents(ev: Fw.SMSignals )
483483
484484#for $state in $state_machines
485485 include "$(state.stateName).fppi"
0 commit comments