CORDET Framework - C2 Implementation
|
Implementation of the Sample 1 OutComponent. More...
Go to the source code of this file.
Functions | |
CrFwBool_t | CrFwOutCmpSample1EnableCheck (FwSmDesc_t smDesc) |
Implementation of the Enable Check Operation for the Sample 1 OutComponent. More... | |
CrFwBool_t | CrFwOutCmpSample1ReadyCheck (FwSmDesc_t smDesc) |
Implementation of the Ready Check Operation for the Sample 1 OutComponent. More... | |
CrFwBool_t | CrFwOutCmpSample1RepeatCheck (FwSmDesc_t smDesc) |
Implementation of the Repeat Check Operation for the Sample 1 OutComponent. More... | |
void | CrFwOutCmpSample1UpdateAction (FwSmDesc_t smDesc) |
Implementation of the Update Operation for the Sample 1 OutComponent. More... | |
void | CrFwOutCmpSample1Serialize (FwSmDesc_t smDesc) |
Implementation of the Serialize Operation for the Sample 1 OutComponent. More... | |
CrFwPckt_t | CrFwOutCmpSample1GetPckt (FwSmDesc_t smDesc) |
Return the packet associated to the Sample 1 OutComponent. More... | |
void | CrFwOutCmpSample1SetEnableFlag (CrFwBool_t flag) |
Set the value of Enable Flag (see CrFwOutCmpSample1EnableCheck ). More... | |
void | CrFwOutCmpSample1SetReadyFlag (CrFwBool_t flag) |
Set the value of Ready Flag (see CrFwOutCmpSample1ReadyCheck ). More... | |
void | CrFwOutCmpSample1SetRepeatFlag (CrFwBool_t flag) |
Set the value of Repeat Flag (see CrFwOutCmpSample1RepeatCheck ). More... | |
void | CrFwOutCmpSample1SetCounter (unsigned char cnt) |
Set the value of Sample 1 Counter (see CrFwOutCmpSample1Serialize ). More... | |
Variables | |
static CrFwBool_t | enableFlag = 0 |
The Enable Flag. | |
static CrFwBool_t | readyFlag = 0 |
The Ready Flag. | |
static CrFwBool_t | repeatFlag = 0 |
The Repeat Flag. | |
static unsigned char | counter |
The Sample 1 Counter. | |
Implementation of the Sample 1 OutComponent.
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 CrFwOutCmpSample1.c.
CrFwBool_t CrFwOutCmpSample1EnableCheck | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Enable Check Operation for the Sample 1 OutComponent.
This function returns the value of an internal flag (the Enable Flag) whose value is set through function CrFwOutCmpSample1SetEnableFlag
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 51 of file CrFwOutCmpSample1.c.
CrFwPckt_t CrFwOutCmpSample1GetPckt | ( | FwSmDesc_t | smDesc | ) |
Return the packet associated to the Sample 1 OutComponent.
This function is useful to check the effects of the OutComponent serialization. Note that, at some stage, the packet will be released and the pointer returned by this function will therefore become invalid.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 82 of file CrFwOutCmpSample1.c.
CrFwBool_t CrFwOutCmpSample1ReadyCheck | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Ready Check Operation for the Sample 1 OutComponent.
This function returns the value of an internal flag (the Ready Flag) whose value is set through function CrFwOutCmpSample1SetReadyFlag
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 57 of file CrFwOutCmpSample1.c.
CrFwBool_t CrFwOutCmpSample1RepeatCheck | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Repeat Check Operation for the Sample 1 OutComponent.
This function returns the value of an internal flag (the Repeat Flag) whose value is set through function CrFwOutCmpSample1SetRepeatFlag
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 63 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1Serialize | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Serialize Operation for the Sample 1 OutComponent.
This function calls the default serialization function (CrFwOutCmpDefSerialize
) and then sets byte N-2 of the packet associated to the OutComponent equal to the value of the Sample 1 Counter (N is the packet's length; the last two bytes are used for the CRC). The value of the Sample 1 Counter is set through function CrFwOutCmpSample1SetCounter
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 74 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1SetCounter | ( | unsigned char | cnt | ) |
Set the value of Sample 1 Counter (see CrFwOutCmpSample1Serialize
).
cnt | the counter |
Definition at line 104 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1SetEnableFlag | ( | CrFwBool_t | flag | ) |
Set the value of Enable Flag (see CrFwOutCmpSample1EnableCheck
).
flag | the Enable Flag |
Definition at line 89 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1SetReadyFlag | ( | CrFwBool_t | flag | ) |
Set the value of Ready Flag (see CrFwOutCmpSample1ReadyCheck
).
flag | the Ready Flag |
Definition at line 94 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1SetRepeatFlag | ( | CrFwBool_t | flag | ) |
Set the value of Repeat Flag (see CrFwOutCmpSample1RepeatCheck
).
flag | the Repeat Flag |
Definition at line 99 of file CrFwOutCmpSample1.c.
void CrFwOutCmpSample1UpdateAction | ( | FwSmDesc_t | smDesc | ) |
Implementation of the Update Operation for the Sample 1 OutComponent.
This function increments the value of Sample 1 Counter by 1. The value of the Sample 1 Counter is set through function CrFwOutCmpSample1SetCounter
.
smDesc | the descriptor of the OutComponent state machine |
Definition at line 68 of file CrFwOutCmpSample1.c.