CORDET Framework - C2 Implementation
CrMaOutCmpSetTempLimit.h File Reference

OutComponent encapsulating a command to set the temperature limit in a Slave Application. More...

Go to the source code of this file.

Functions

void CrMaOutCmpSetTempLimitSerialize (FwSmDesc_t smDesc)
 Implementation of the Serialize Operation for the command setting the temperature limit. More...
 
void CrMaOutCmpSetTempLimitSetTempLimit (char tempLimit)
 Set the value of the temperature limit (an integer in the range 0 to 127). More...
 

Detailed Description

OutComponent encapsulating a command to set the temperature limit in a Slave Application.

An OutComponent is defined by defining the functions which override its adaptation points, namely (see CrFwOutCmp.h):

  • The Enable Check Operation
  • The Ready Check Operation
  • The Serialize Operation

These operations are defined as follows for the command to set the temperature limit:

  • Enable Check Operation: the default Enable Check Operation of CrFwOutCmpDefEnableCheck.h is used.
  • Ready Check Operation: the default Ready Check Operation of CrFwSmCheckAlwaysTrue.h is used.
  • Serialize Operation: this operation calls the default Serialize Operation of CrFwOutCmpDefSerialize.h and then it writes the temperature limit in the first byte of the parameter part of the command packet; it sets the command destination (either Slave 1 or Slave 2); and it sets the acknowledge level to acknowledge execution start.
Author
Vaclav Cechticky vacla.nosp@m.v.ce.nosp@m.chtic.nosp@m.ky@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m
Alessandro Pasetti paset.nosp@m.ti@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m

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 CrMaOutCmpSetTempLimit.h.

Function Documentation

void CrMaOutCmpSetTempLimitSerialize ( FwSmDesc_t  smDesc)

Implementation of the Serialize Operation for the command setting the temperature limit.

This operation calls the default Serialize Operation of CrFwOutCmpDefSerialize.h and then it writes the temperature limit in the first byte of the parameter part of the command packet; and it sets the acknowledge level to "acknowledge execution start". The value of the temperature limit is set through function CrMaOutCmpSetTempLimitSetTempLimit.

Parameters
smDescthe descriptor of the OutComponent state machine
Returns
the value of the Enable Flag

Definition at line 44 of file CrMaOutCmpSetTempLimit.c.

void CrMaOutCmpSetTempLimitSetTempLimit ( char  tempLimit)

Set the value of the temperature limit (an integer in the range 0 to 127).

Parameters
tempLimitthe temperature limit

Definition at line 52 of file CrMaOutCmpSetTempLimit.c.

P&P Software GmbH, Copyright 2012-2013, All Rights Reserved