CORDET Framework - C2 Implementation
|
OutComponent encapsulating a report generated by a Slave Application when a temperature violation has been detected. More...
Go to the source code of this file.
Functions | |
void | CrDaOutCmpTempViolationSerialize (FwSmDesc_t smDesc) |
Implementation of the Serialize Operation for the report for a temperature violation. More... | |
void | CrDaOutCmpTempViolationSetTemp (char temp) |
Set the value of the limit violating temperature (an integer in the range 0 to 255). More... | |
OutComponent encapsulating a report generated by a Slave Application when a temperature violation has been detected.
An OutComponent is defined by defining the functions which override its adaptation points, namely (see CrFwOutCmp.h
):
These operations are defined as follows for the temperature violation report:
CrFwOutCmpDefEnableCheck.h
is used.CrFwSmCheckAlwaysTrue.h
is used.CrFwOutCmpDefSerialize.h
and then it writes the temperature which violated the limit in the first byte of the parameter part of the report packet; and it sets the command destination to be the Master Application.This file is part of the CORDET Framework.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
For information on alternative licensing, please contact P&P Software GmbH.
Definition in file CrDemoSlave1/CrDaOutCmpTempViolation.h.
void CrDaOutCmpTempViolationSerialize | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Serialize Operation for the report for a temperature violation.
This operation calls the default Serialize Operation of CrFwOutCmpDefSerialize.h
and then writes the temperature which violated the limit in the first byte of the parameter part of the report packet; and it sets the command destination to be the Master Application. The value of the limit violating temperature is set through function CrDaOutCmpTempViolationSetTemp
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 43 of file CrDemoMaster/CrDaOutCmpTempViolation.c.
void CrDaOutCmpTempViolationSetTemp | ( | char | temp | ) |
Set the value of the limit violating temperature (an integer in the range 0 to 255).
temp | the limit violating temperature |
Definition at line 50 of file CrDemoMaster/CrDaOutCmpTempViolation.c.