CORDET Framework - C2 Implementation
CrMaOutCmpSetTempLimit.c
Go to the documentation of this file.
1 
19 #include <stdlib.h>
20 /* Include configuration files */
21 #include "CrFwCmpData.h"
22 /* Include framework files */
23 #include "CrFwConstants.h"
24 #include "OutCmp/CrFwOutCmp.h"
25 #include "BaseCmp/CrFwBaseCmp.h"
26 #include "BaseCmp/CrFwInitProc.h"
27 #include "BaseCmp/CrFwResetProc.h"
30 #include "Pckt/CrFwPckt.h"
31 /* Include FW Profile files */
32 #include "FwPrConfig.h"
33 #include "FwPrDCreate.h"
34 #include "FwSmConfig.h"
35 #include "FwSmDCreate.h"
36 #include "FwPrCore.h"
37 /* Include Demo Application files */
38 #include "CrMaOutCmpSetTempLimit.h"
39 
41 static char cmdTempLimit = 0;
42 
43 /*-----------------------------------------------------------------------------------------*/
44 void CrMaOutCmpSetTempLimitSerialize(FwSmDesc_t smDesc) {
45  char* pcktPar = CrFwOutCmpGetParStart(smDesc);
46  CrFwOutCmpDefSerialize(smDesc);
47  CrFwOutCmpSetAckLevel(smDesc, 0, 1, 0, 0);
48  pcktPar[0] = cmdTempLimit;
49 }
50 
51 /*-----------------------------------------------------------------------------------------*/
54 }
Definition of the OutFactory component.
CrFwPckt_t CrFwOutCmpGetParStart(FwSmDesc_t smDesc)
Return the start address of the parameter area of the OutComponent.
Definition: CrFwOutCmp.c:381
Interface for creating and accessing a report or command packet.
void CrFwOutCmpSetAckLevel(FwSmDesc_t smDesc, CrFwBool_t accept, CrFwBool_t start, CrFwBool_t progress, CrFwBool_t term)
Set the acknowledge level for the command encapsulated in the OutComponent.
Definition: CrFwOutCmp.c:265
Dummy Component Execution Procedure (CEP) for the Base Component.
static int tempLimit
The temperature limit.
Header file to define all invariant publicly available constants and types for the CORDET Framework...
static char cmdTempLimit
The temperature limit.
void CrFwOutCmpDefSerialize(FwSmDesc_t smDesc)
Default implementation of the Serialize Operation for an OutComponent.
Definition: CrFwOutCmp.c:173
void CrMaOutCmpSetTempLimitSetTempLimit(char tempLimit)
Set the value of the temperature limit (an integer in the range 0 to 127).
OutComponent encapsulating a command to set the temperature limit in a Slave Application.
Definition of Base Component.
Component Initialization Procedure (CIP) for the Base Component.
Definition of the OutComponent Component of the framework.
void CrMaOutCmpSetTempLimitSerialize(FwSmDesc_t smDesc)
Implementation of the Serialize Operation for the command setting the temperature limit...
Component Reset Procedure (CRP) for the Base Component.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved