65 #include "FwSmConstants.h" 66 #include "FwSmConfig.h" 68 #include "FwPrConfig.h" 70 #include "FwPrConstants.h" 87 #include "CrFwOutRegistryUserPar.h" 88 #include "CrFwOutFactoryUserPar.h" 89 #include "CrFwInFactoryUserPar.h" 90 #include "CrFwCmpData.h" 119 FwSmDesc_t inStream1, outStream1;
125 printf(
"S2: The Slave 1 Application (Server Socket) must be started before the Slave 2 Application\n");
131 printf(
"Consistency check of OutRegistry parameters failed\n");
133 printf(
"Consistency check of OutFactory parameters failed\n");
135 printf(
"Consistency check of InCommand parameters in InFactory failed\n");
137 printf(
"Consistency check of InRepot parameters in InFactory failed\n");
140 printf(
"S2: Consistency check of configuration parameters ran successfully.\n");
185 for (i=1; i<100; i++) {
186 printf(
"S2: Starting cycle %d\n",i);
208 printf(
"S2: Application Error Code is set and is equal to: %d\n",
CrFwGetAppErrCode());
void CrDaClientSocketSetHost(char *name)
Set the host name of the server.
Interface through which framework components access the current time.
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
CrFwBool_t CrFwCmpIsInConfigured(FwSmDesc_t smDesc)
Return true if the argument component is in state CONFIGURED.
InFactory configuration parameters for InCommands are inconsistent (see CrFwAuxInFactoryInCmdConfigCh...
#define CR_DA_SOCKET_PORT
The port number for the socket port.
Auxiliary module to check the static part of an application's configuration.
Definition of the OutStream component.
Definition of the OutFactory component.
FwSmDesc_t CrFwOutManagerMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th OutManager State Machine instance.
Interface for creating and accessing a report or command packet.
Definition of the InStream component.
#define CR_DA_SLAVE_2
The identifier of the first Slave Application of the CORDET Demo.
Definition of the OutRegistry Component.
Definition of the InRegistry Component.
CrFwBool_t CrFwCmpIsInInitialized(FwSmDesc_t smDesc)
Return true if the argument component is in state INITIALIZED.
CrFwConfigCheckOutcome_t CrFwAuxConfigCheck()
Check the configuration of an application.
Interface for reporting an error detected by a framework component.
Interface for the server socket used in the CORDET Demo.
FwSmDesc_t CrFwInRegistryMake()
Factory function for the singleton instance of the InRegistry.
CrFwConfigCheckOutcome_t
Type for the outcome of the consistency check on the configuration parameters.
Header file to define constants and types for the Slave 2 Application of the CORDET Demo...
Interface for the client socket used in the CORDET Demo.
OutFactory configuration parameters are inconsistent (see CrFwAuxOutFactoryConfigCheck.h)
All configuration consistency checks have been passed.
FwSmDesc_t CrFwInLoaderMake()
Factory function to retrieve the state machine implementing the InLoader singleton component...
FwSmDesc_t CrFwOutLoaderMake()
Factory function to retrieve the OutLoader State Machine instance.
FwSmDesc_t CrFwInManagerMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th InManager State Machine instance.
Definition of the InFactory component.
InFactory configuration parameters for InReports are inconsistent (see CrFwAuxInFactoryInRepConfigChe...
Definition of the utility functions for the CORDET Framework.
FwSmDesc_t CrFwOutRegistryMake()
Factory function for the singleton instance of the OutRegistry.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
int main()
Main program for the Slave 2 Application.
#define CR_S2_HIGH_TEMP_VALUE
The "high" temperature value.
Definition of Base Component.
FwSmDesc_t CrFwInFactoryMake()
Factory function for the singleton instance of the InFactory.
void CrFwInLoaderSetInStream(FwSmDesc_t inStream)
Set the InStream from which the packets will be retrieved the next time the InLoader is executed...
Definition of the OutComponent Component of the framework.
#define CR_S2_LOW_TEMP_VALUE
The "low" temperature value.
FwSmDesc_t CrFwOutFactoryMake()
Factory function for the singleton instance of the OutFactory.
#define CR_S2_N_OF_FW_CMP
The number of framework components.
FwSmDesc_t CrFwOutStreamMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th OutStream State Machine instance.
FwSmDesc_t CrFwInStreamMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th InStream State Machine instance.
void CrDaTempMonitoringExec(char temp, CrFwDestSrc_t appId)
Execute a temperature monitoring action on the argument temperature.
No application errors have been detected.
void CrDaClientSocketPoll()
Poll the client socket to check whether a new packet has arrived.
void CrDaClientSocketSetPort(int n)
Set the port number for the socket.
Definition of the OutLoader component.
Header file to define constants and types for the CORDET Demo.
CrFwAppErrCode_t CrFwGetAppErrCode()
Return the value of the application error code.
OutRegistry configuration parameters are inconsistent (see CrFwAuxOutRegistryConfigCheck.h)