24 #include "FwSmConstants.h" 25 #include "FwSmConfig.h" 27 #include "FwPrConfig.h" 29 #include "FwPrConstants.h" 31 #include "CrFwOutStreamUserPar.h" 32 #include "CrFwCmpData.h" 47 #include <sys/types.h> 48 #include <sys/socket.h> 49 #include <netinet/in.h> 83 printf(
"S1: Temperature violation detected -- Sending report to Master Application\n");
85 printf(
"S2: Temperature violation detected -- Sending report to Master Application\n");
#define CR_DA_MASTER
The identifier of the Master Application of the CORDET Demo.
Interface through which framework components access the current time.
void CrDaTempMonitoringExec(char temp, CrFwDestSrc_t appId)
Execute a temperature monitoring action on the argument temperature.
static CrFwBool_t isTempMonitoringEnabled
The enable status of temperature monitoring.
#define CR_DA_SERV_SUBTYPE_REP
The identifier of the service sub-type to report a temperature violation.
void CrDaTempMonitoringEnable(FwSmDesc_t smDesc)
Enable temperature monitoring.
void CrDaOutCmpTempViolationSetTemp(char temp)
Set the value of the limit violating temperature (an integer in the range 0 to 255).
Definition of the OutStream component.
Definition of the OutFactory component.
unsigned char CrFwDestSrc_t
Type used for the command or report destination and source.
#define CR_DA_SERV_TYPE
The identifier of the service type supported by the demo application.
Interface for creating and accessing a report or command packet.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
void CrDaTempMonitoringSetTempLimit(FwSmDesc_t smDesc)
Set the limit against the temperature is monitored.
Interface for reporting an error detected by a framework component.
Interface for the server socket used in the CORDET Demo.
static int tempLimit
The temperature limit.
Definition of the utility functions for the CORDET Framework.
#define CR_DA_SLAVE_1
The identifier of the first Slave Application of the CORDET Demo.
Definition of Base Component.
void CrDaTempMonitoringDisable(FwSmDesc_t smDesc)
Disable temperature monitoring.
void CrFwOutCmpSetDest(FwSmDesc_t smDesc, CrFwDestSrc_t dest)
Set the destination of the OutComponent.
CrFwBool_t CrFwOutLoaderLoad(FwSmDesc_t outCmp)
Load an OutComponent into its OutManager.
Definition of the OutLoader component.
FwSmDesc_t CrFwOutFactoryMakeOutCmp(CrFwServType_t type, CrFwServSubType_t subType, CrFwDiscriminant_t discriminant, CrFwPcktLength_t length)
Make function for an OutComponent.
Header file to define constants and types for the CORDET Demo.
CrFwPckt_t CrFwInCmdGetParStart(FwSmDesc_t smDesc)
Return the start address of the parameter area of the InCommand.
OutComponent encapsulating a report generated by a Slave Application when a temperature violation has...