CORDET Framework - C2 Implementation
|
User-modifiable parameters for the InFactory component (see CrFwInFactory.h
) of the Slave Application of the CORDET Demo.
More...
Go to the source code of this file.
Macros | |
#define | CR_FW_INFACTORY_MAX_NOF_INCMD 10 |
The maximum number of components representing an incoming command which may be allocated at any one time. More... | |
#define | CR_FW_INFACTORY_MAX_NOF_INREP 10 |
The maximum number of InReports which may be allocated at any one time. More... | |
#define | CR_FW_INCMD_NKINDS 3 |
The total number of kinds of incoming commands supported by the application. More... | |
#define | CR_FW_INREP_NKINDS 1 |
The total number of kinds of incoming reports supported by the application. More... | |
#define | CR_FW_INCMD_INIT_KIND_DESC |
Definition of the incoming command kinds supported by the application. More... | |
#define | CR_FW_INREP_INIT_KIND_DESC |
Definition of the incoming report kinds supported by an application. More... | |
User-modifiable parameters for the InFactory component (see CrFwInFactory.h
) of the Slave Application of the CORDET Demo.
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 cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INCMD_INIT_KIND_DESC |
Definition of the incoming command kinds supported by the application.
An application supports a number of service types and, for each service type, it supports a number of sub-types. Each sub-type may support a range of discriminant values. An incoming command kind is defined by the triplet: [service type, service sub-type, discriminant].
Each line in this initializer describes one incoming command kind. The elements in each line are as follows:
CrFwInCmdValidityCheck_t
; function CrFwPrCheckAlwaysTrue
can be used as a default).CrFwInCmdReadyCheck_t
; function CrFwSmCheckAlwaysTrue
can be used as a default).CrFwInCmdStartAction_t
; function CrFwSmEmptyAction
can be used as a default).CrFwInCmdProgressAction_t
; function CrFwSmEmptyAction
can be used as a default).CrFwInCmdTerminationAction_t
; function CrFwSmEmptyAction
can be used as a default).CrFwInCmdAbortAction_t
; function CrFwSmEmptyAction
can be used as a default).The list of service descriptors must satisfy the following constraints:
CR_FW_INCMD_NKINDS
.CR_FW_MAX_SERV_TYPE
, CR_FW_MAX_SERV_SUBTYPE
and CR_FW_MAX_DISCRIMINANT
.The last four constraints are checked by the auxiliary function CrFwAuxInFactoryInCmdConfigCheck
.
The initializer values defined below are those which are used for the Slave Applications. The non-default function pointers for the Progress Actions are defined in CrDaTempMonitoring.h
.
Definition at line 118 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INCMD_NKINDS 3 |
The total number of kinds of incoming commands supported by the application.
An incoming command kind is defined by the triplet: [service type, service sub-type, discriminant value]. The value of this constant must be the same as the number of rows of the initializer CR_FW_INCMD_INIT_KIND_DESC
and it must be smaller than the range of the CrFwCmdRepKindIndex_t
type.
The Slave Application receives three kinds of InCommand.
Definition at line 49 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INFACTORY_MAX_NOF_INCMD 10 |
The maximum number of components representing an incoming command which may be allocated at any one time.
This constant must be a positive integer smaller than the range of CrFwInFactoryPoolIndex_t
.
Definition at line 31 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INFACTORY_MAX_NOF_INREP 10 |
The maximum number of InReports which may be allocated at any one time.
This constant must be smaller than the range of CrFwInFactoryPoolIndex_t
.
Definition at line 37 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INREP_INIT_KIND_DESC |
Definition of the incoming report kinds supported by an application.
An application supports a number of service types and, for each service type, it supports a number of sub-types. Each sub-type may support a range of discriminant values. An incoming report kind is defined by the triplet: [service type, service sub-type, discriminant].
Each line in this initializer describes one incoming report kind. The elements in each line are as follows:
CrFwInRepUpdateAction_t
; function CrFwPrEmptyAction
can be used as a default).CrFwInRepValidityCheck_t
; function CrFwPrCheckAlwaysTrue
can be used as a default).The list of service descriptors must satisfy the following constraints:
CR_FW_INREP_NKINDS
.CR_FW_MAX_SERV_TYPE
, CR_FW_MAX_SERV_SUBTYPE
and CR_FW_MAX_DISCRIMINANT
. maximum values defined in CrFwUserConstants.h
(TBC).The last four constraints are checked by the auxiliary function CrFwAuxInFactoryInRepConfigCheck
.
The initializer values defined below are those which are used for the Slave Applications. The Slave Applications do not receive any reports but a dummy report is defined all the same to avoid use of zero-sized array.
Definition at line 166 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.
#define CR_FW_INREP_NKINDS 1 |
The total number of kinds of incoming reports supported by the application.
An incoming report kind is defined by the triplet: [service type, service sub-type, discriminant value]. The value of this constant must be the same as the number of rows of the initializer CR_FW_INREP_INIT_KIND_DESC
and it must be smaller than the range of the CrFwCmdRepKindIndex_t
type.
The Slave Application receives no InReports and hence this constant should be equal to zero. However, this constant is used as the size of an array. Zero-sized arrays are not allowed in all versions of C. Hence, in order to ensure compatibility with a wide range of C compilers, a value of 1 is used for this constant.
Definition at line 66 of file cordetfw-examples/src/CrConfigDemoSlave1/CrFwInFactoryUserPar.h.