CORDET Framework - C2 Implementation
CrPsDpServLpt.h
Go to the documentation of this file.
1 
23 #ifndef CRPSDPSERVLPT_H_
24 #define CRPSDPSERVLPT_H_
25 
26 #include <CrPsUserConstants.h>
27 #include <CrFwUserConstants.h>
28 
32 typedef struct {
36  CrPsTimeOut_t lptTimeOut[LPT_N_BUF];
38 
42 typedef struct {
48  CrPsTid_t largeMsgTransId[LPT_N_BUF];
53  CrPsFailCode_t lptFailCode[LPT_N_BUF];
59  CrPsSize_t lptRemSize[LPT_N_BUF];
64  CrPsSize_t lptSize[LPT_N_BUF];
70  CrPsDestSrc_t lptSrc[LPT_N_BUF];
75  CrFwTimeStamp_t lptTime[LPT_N_BUF];
79  CrFwCounterU4_t nOfDownlinks;
83  CrFwCounterU4_t nOfUplinks;
89  CrFwCounterU4_t partSeqNmb[LPT_N_BUF];
91 
92 extern DpServLptParams_t dpServLptParams;
93 extern DpServLptVars_t dpServLptVars;
94 
98 void initDpServLpt(void);
99 
105 {
106  return &dpServLptParams.lptTimeOut[0];
107 }
108 
115 {
116  return dpServLptParams.lptTimeOut[i];
117 }
118 
125 static inline void setDplptTimeOutItem(int i, CrPsTimeOut_t lptTimeOut)
126 {
127  dpServLptParams.lptTimeOut[i] = lptTimeOut;
128 }
129 
134 static inline CrPsTid_t* getDplargeMsgTransIdArray()
135 {
136  return &dpServLptVars.largeMsgTransId[0];
137 }
138 
144 static inline CrPsTid_t getDplargeMsgTransIdItem(int i)
145 {
146  return dpServLptVars.largeMsgTransId[i];
147 }
148 
155 static inline void setDplargeMsgTransIdItem(int i, CrPsTid_t largeMsgTransId)
156 {
157  dpServLptVars.largeMsgTransId[i] = largeMsgTransId;
158 }
159 
165 {
166  return &dpServLptVars.lptFailCode[0];
167 }
168 
175 {
176  return dpServLptVars.lptFailCode[i];
177 }
178 
185 static inline void setDplptFailCodeItem(int i, CrPsFailCode_t lptFailCode)
186 {
187  dpServLptVars.lptFailCode[i] = lptFailCode;
188 }
189 
194 static inline CrPsSize_t* getDplptRemSizeArray()
195 {
196  return &dpServLptVars.lptRemSize[0];
197 }
198 
204 static inline CrPsSize_t getDplptRemSizeItem(int i)
205 {
206  return dpServLptVars.lptRemSize[i];
207 }
208 
215 static inline void setDplptRemSizeItem(int i, CrPsSize_t lptRemSize)
216 {
217  dpServLptVars.lptRemSize[i] = lptRemSize;
218 }
219 
224 static inline CrPsSize_t* getDplptSizeArray()
225 {
226  return &dpServLptVars.lptSize[0];
227 }
228 
234 static inline CrPsSize_t getDplptSizeItem(int i)
235 {
236  return dpServLptVars.lptSize[i];
237 }
238 
245 static inline void setDplptSizeItem(int i, CrPsSize_t lptSize)
246 {
247  dpServLptVars.lptSize[i] = lptSize;
248 }
249 
255 {
256  return &dpServLptVars.lptSrc[0];
257 }
258 
264 static inline CrPsDestSrc_t getDplptSrcItem(int i)
265 {
266  return dpServLptVars.lptSrc[i];
267 }
268 
275 static inline void setDplptSrcItem(int i, CrPsDestSrc_t lptSrc)
276 {
277  dpServLptVars.lptSrc[i] = lptSrc;
278 }
279 
285 {
286  return &dpServLptVars.lptTime[0];
287 }
288 
295 {
296  return dpServLptVars.lptTime[i];
297 }
298 
305 static inline void setDplptTimeItem(int i, CrFwTimeStamp_t lptTime)
306 {
307  dpServLptVars.lptTime[i] = lptTime;
308 }
309 
314 static inline CrFwCounterU4_t getDpnOfDownlinks()
315 {
316  return dpServLptVars.nOfDownlinks;
317 }
318 
324 static inline void setDpnOfDownlinks(CrFwCounterU4_t nOfDownlinks)
325 {
326  dpServLptVars.nOfDownlinks = nOfDownlinks;
327 }
328 
333 static inline CrFwCounterU4_t getDpnOfUplinks()
334 {
335  return dpServLptVars.nOfUplinks;
336 }
337 
342 static inline void setDpnOfUplinks(CrFwCounterU4_t nOfUplinks)
343 {
344  dpServLptVars.nOfUplinks = nOfUplinks;
345 }
346 
351 static inline CrFwCounterU4_t* getDppartSeqNmbArray()
352 {
353  return &dpServLptVars.partSeqNmb[0];
354 }
355 
361 static inline CrFwCounterU4_t getDppartSeqNmbItem(int i)
362 {
363  return dpServLptVars.partSeqNmb[i];
364 }
365 
372 static inline void setDppartSeqNmbItem(int i, CrFwCounterU4_t partSeqNmb)
373 {
374  dpServLptVars.partSeqNmb[i] = partSeqNmb;
375 }
376 
377 
378 /*----------------------------------------------------------------------------*/
379 #endif /* CRPSDPSERVLPT_H */
CrPsTid_t largeMsgTransId[LPT_N_BUF]
CrPsTid_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:48
static void setDpnOfDownlinks(CrFwCounterU4_t nOfDownlinks)
Sets the value of the datapool item nOfDownlinks.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
Type description.
Definition: CrPsDpServLpt.h:32
static CrFwCounterU4_t getDpnOfUplinks()
Gets the value of the datapool item nOfUplinks.
static CrPsSize_t getDplptRemSizeItem(int i)
Gets the value of the i-th element in the datapool array lptRemSize.
static void setDplargeMsgTransIdItem(int i, CrPsTid_t largeMsgTransId)
Sets the value of the i-th element in the datapool array largeMsgTransId.
static void setDplptFailCodeItem(int i, CrPsFailCode_t lptFailCode)
Sets the value of the i-th element in the datapool array lptFailCode.
Header file to define all user-configurable constants and types for the IASW Application.
static CrPsTimeOut_t getDplptTimeOutItem(int i)
Gets the value of the i-th element in the datapool array lptTimeOut.
static void setDplptSizeItem(int i, CrPsSize_t lptSize)
Sets the value of the i-th element in the datapool array lptSize.
static void setDplptTimeItem(int i, CrFwTimeStamp_t lptTime)
Sets the value of the i-th element in the datapool array lptTime.
static CrPsFailCode_t * getDplptFailCodeArray()
Gets the datapool array lptFailCode.
CrPsTimeOut_t lptTimeOut[LPT_N_BUF]
CrPsTimeOut_t TimeOut.
Definition: CrPsDpServLpt.h:36
static void setDplptTimeOutItem(int i, CrPsTimeOut_t lptTimeOut)
Sets the value of the i-th element in the datapool array lptTimeOut.
uint16_t CrPsDestSrc_t
Type used for the Destination or Source of a packet.
static void setDpnOfUplinks(CrFwCounterU4_t nOfUplinks)
Sets the value of the datapool item nOfUplinks.
static CrPsDestSrc_t * getDplptSrcArray()
Gets the datapool array lptSrc.
static CrPsFailCode_t getDplptFailCodeItem(int i)
Gets the value of the i-th element in the datapool array lptFailCode.
static void setDplptRemSizeItem(int i, CrPsSize_t lptRemSize)
Sets the value of the i-th element in the datapool array lptRemSize.
static CrFwCounterU4_t getDpnOfDownlinks()
Gets the value of the datapool item nOfDownlinks.
static CrFwCounterU4_t * getDppartSeqNmbArray()
Gets the datapool array partSeqNmb.
static CrPsTid_t getDplargeMsgTransIdItem(int i)
Gets the value of the i-th element in the datapool array largeMsgTransId.
static CrPsSize_t * getDplptSizeArray()
Gets the datapool array lptSize.
CrPsFailCode_t lptFailCode[LPT_N_BUF]
CrPsFailCode_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:53
static CrFwTimeStamp_t * getDplptTimeArray()
Gets the datapool array lptTime.
CrFwCounterU4_t partSeqNmb[LPT_N_BUF]
conteru4_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:89
CrPsDestSrc_t lptSrc[LPT_N_BUF]
CrPsDestSrc_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:70
static CrPsTimeOut_t * getDplptTimeOutArray()
Gets the datapool array lptTimeOut.
CrPsSize_t lptRemSize[LPT_N_BUF]
CrPsSize_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:59
uint16_t CrPsFailCode_t
Type used for the Failure Code of a packet.
static CrPsSize_t getDplptSizeItem(int i)
Gets the value of the i-th element in the datapool array lptSize.
CrPsSize_t lptSize[LPT_N_BUF]
CrPsSize_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:64
static CrPsDestSrc_t getDplptSrcItem(int i)
Gets the value of the i-th element in the datapool array lptSrc.
CrFwCounterU4_t nOfDownlinks
conteru4_t Number of on-going down-link transfers
Definition: CrPsDpServLpt.h:79
Type description.
Definition: CrPsDpServLpt.h:42
CrFwCounterU4_t nOfUplinks
conteru4_t Number of on-going up-link transfers
Definition: CrPsDpServLpt.h:83
void initDpServLpt(void)
Initialises ServLpt.
Definition: CrPsDpServLpt.c:32
static CrFwCounterU4_t getDppartSeqNmbItem(int i)
Gets the value of the i-th element in the datapool array partSeqNmb.
static CrFwTimeStamp_t getDplptTimeItem(int i)
Gets the value of the i-th element in the datapool array lptTime.
uint32_t CrPsTimeOut_t
Type used for the Timeout for packets.
static void setDppartSeqNmbItem(int i, CrFwCounterU4_t partSeqNmb)
Sets the value of the i-th element in the datapool array partSeqNmb.
static void setDplptSrcItem(int i, CrPsDestSrc_t lptSrc)
Sets the value of the i-th element in the datapool array lptSrc.
CrFwTimeStamp_t lptTime[LPT_N_BUF]
CrFwTimeStamp_t Array of LPT_N_BUF elements.
Definition: CrPsDpServLpt.h:75
static CrPsTid_t * getDplargeMsgTransIdArray()
Gets the datapool array largeMsgTransId.
static CrPsSize_t * getDplptRemSizeArray()
Gets the datapool array lptRemSize.
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved