CORDET Framework - C2 Implementation
CrPsDpServTest.h
Go to the documentation of this file.
1 
23 #ifndef CRPSDPSERVTEST_H_
24 #define CRPSDPSERVTEST_H_
25 
26 #include <CrFwUserConstants.h>
27 #include <CrPsUserConstants.h>
28 
32 typedef struct {
42  CrPsDestSrc_t OnBoardConnectDestLst[TEST_MAX_APP];
44 
48 typedef struct {
59 
60 extern DpServTestParams_t dpServTestParams;
61 extern DpServTestVars_t dpServTestVars;
62 
66 void initDpServTest(void);
67 
73 {
74  return dpServTestParams.AreYouAliveTimeOut;
75 }
76 
82 static inline void setDpAreYouAliveTimeOut(CrPsTimeOut_t AreYouAliveTimeOut)
83 {
84  dpServTestParams.AreYouAliveTimeOut = AreYouAliveTimeOut;
85 }
86 
92 {
93  return &dpServTestParams.OnBoardConnectDestLst[0];
94 }
95 
103 {
104  return dpServTestParams.OnBoardConnectDestLst[i];
105 }
106 
114 static inline void setDpOnBoardConnectDestLstItem(int i, CrPsDestSrc_t OnBoardConnectDestLst)
115 {
116  dpServTestParams.OnBoardConnectDestLst[i] = OnBoardConnectDestLst;
117 }
118 
124 {
125  return dpServTestVars.AreYouAliveSrc;
126 }
127 
133 static inline void setDpAreYouAliveSrc(CrPsDestSrc_t AreYouAliveSrc)
134 {
135  dpServTestVars.AreYouAliveSrc = AreYouAliveSrc;
136 }
137 
143 {
144  return dpServTestVars.OnBoardConnectDest;
145 }
146 
152 static inline void setDpOnBoardConnectDest(CrPsDestSrc_t OnBoardConnectDest)
153 {
154  dpServTestVars.OnBoardConnectDest = OnBoardConnectDest;
155 }
156 
157 
158 /*----------------------------------------------------------------------------*/
159 #endif /* CRPSDPSERVTEST_H */
CrPsDestSrc_t OnBoardConnectDestLst[TEST_MAX_APP]
List of identifiers of target applications for an On-Board-Connection Test.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
Header file to define all user-configurable constants and types for the IASW Application.
static CrPsDestSrc_t getDpOnBoardConnectDestLstItem(int i)
Gets the value of the i-th element in the datapool array OnBoardConnectDestLst.
static void setDpOnBoardConnectDestLstItem(int i, CrPsDestSrc_t OnBoardConnectDestLst)
Sets the value of the i-th element in the datapool array OnBoardConnectDestLst.
CrPsDestSrc_t AreYouAliveSrc
Source of the latest (17,2) report received in response to a (17,1) command triggered by a (17...
uint16_t CrPsDestSrc_t
Type used for the Destination or Source of a packet.
static CrPsDestSrc_t * getDpOnBoardConnectDestLstArray()
Gets the datapool array OnBoardConnectDestLst.
static void setDpAreYouAliveSrc(CrPsDestSrc_t AreYouAliveSrc)
Sets the value of the datapool item AreYouAliveSrc.
static CrPsDestSrc_t getDpOnBoardConnectDest()
Gets the value of the datapool item OnBoardConnectDest.
CrPsTimeOut_t AreYouAliveTimeOut
Time-out for the Are-You-Alive Test initiated in response to an Is-Application-Process-Alive Test...
Type description.
void initDpServTest(void)
Initialises ServTest.
static void setDpAreYouAliveTimeOut(CrPsTimeOut_t AreYouAliveTimeOut)
Sets the value of the datapool item AreYouAliveTimeOut.
#define TEST_MAX_APP
Maximum number of target applications for On-Board-Connection Test.
static CrPsDestSrc_t getDpAreYouAliveSrc()
Gets the value of the datapool item AreYouAliveSrc.
Type description.
uint32_t CrPsTimeOut_t
Type used for the Timeout for packets.
static void setDpOnBoardConnectDest(CrPsDestSrc_t OnBoardConnectDest)
Sets the value of the datapool item OnBoardConnectDest.
static CrPsTimeOut_t getDpAreYouAliveTimeOut()
Gets the value of the datapool item AreYouAliveTimeOut.
CrPsDestSrc_t OnBoardConnectDest
Destination of the (17,1) triggered by a (17,3) command.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved