CORDET Framework - C2 Implementation

auxiliary Interface for accessing fields in packets of service "ServHk". More...

Go to the source code of this file.

Functions

CrPsRepNum_t getHkCreateCmdOffsetSCS (void *p, CrFwCounterU4_t NFA)
 Get the offset of the "SCSampleRepNum" field in a HkCreate packet. More...
 
uint32_t getHkCreateCmdOffsetN2 (void *p, CrFwCounterU4_t NFA)
 Get the offset of the "N2" field in a HkCreate packet. More...
 
uint32_t getHkCreateCmdOffsetN2ParamId (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Get the offset of the "N2ParamId" field in a HkCreate packet. More...
 
CrFwCounterU4_t getHkCreateCmdNFA (void *p)
 Get "NFA" from "HkCreateCmd" packet. More...
 
void setHkCreateCmdNFA (void *p, CrFwCounterU4_t NFA)
 Set "NFA" in "HkCreateCmd" packet. More...
 
CrPsParamId_t getHkCreateCmdN1ParamIdItem (void *p, CrFwCounterU4_t N)
 Get "N1ParamId" arrayItem from "HkCreateCmd" packet. More...
 
void setHkCreateCmdN1ParamIdItem (void *p, CrFwCounterU4_t N, CrPsParamId_t N1ParamId)
 Set "N1ParamId" arrayItem in "HkCreateCmd" packet. More...
 
CrFwCounterU4_t getHkCreateCmdN2 (void *p, CrFwCounterU4_t NFA)
 Get "N2" from "HkCreateCmd" packet. More...
 
void setHkCreateCmdN2 (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Set "N2" in "HkCreateCmd" packet. More...
 
CrPsRepNum_t getHkCreateCmdSCSampleRepNumItem (void *p, CrFwCounterU4_t NFA)
 Get "SCSampleRepNum" from "HkCreateCmd" packet. More...
 
void setHkCreateCmdSCSampleRepNumItem (void *p, CrFwCounterU4_t NFA, CrPsRepNum_t SCSampleRepNum)
 Set "SCSampleRepNum" in "HkCreateCmd" packet. More...
 
CrPsParamId_t getHkCreateCmdN2ParamIdItem (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Get "N2ParamID" from "HkCreateCmd" packet. More...
 
void setHkCreateCmdN2ParamIdItem (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2, CrPsParamId_t N2ParamId)
 Set "N2ParamID" in "HkCreateCmd" packet. More...
 
uint32_t getHkRepStructRepOffsetSCS (void *p, CrFwCounterU4_t NFA)
 Get the offset of the "SCSampleRepNum" field in a HkRepStruct packet. More...
 
uint32_t getHkRepStructRepOffsetN2 (void *p, CrFwCounterU4_t NFA)
 Get the offset of the "N2" field in a HkRepStruct packet. More...
 
uint32_t getHkRepStructRepOffsetN2ParamId (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Get the offset of the "N2ParamId" field in a HkCreate packet. More...
 
CrFwCounterU4_t getHkRepStructRepNFA (void *p)
 Get "NFA" from "HkCreateDiagParCmd" packet. More...
 
void setHkRepStructRepNFA (void *p, CrFwCounterU4_t src)
 Set "NFA" in "HkRepStructRep" packet. More...
 
CrPsParamId_t getHkRepStructRepN1ParamIdItem (void *p, CrFwCounterU4_t N)
 Get "N1ParamId" arrayItem from "HkRepStructRep" packet. More...
 
void setHkRepStructRepN1ParamIdItem (void *p, CrFwCounterU4_t N, CrPsParamId_t src)
 Set "N1ParamId" arrayItem in "HkRepStructRep" packet. More...
 
CrFwCounterU4_t getHkRepStructRepN2 (void *p, CrFwCounterU4_t NFA)
 Get "N2" from "HkRepStructRep" packet. More...
 
void setHkRepStructRepN2 (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Set "N2" in "HkRepStructRep" packet. More...
 
CrPsRepNum_t getHkRepStructRepSCSampleRepNumItem (void *p, CrFwCounterU4_t NFA)
 Get "SCSampleRepNum" from "HkRepStructRep" packet. More...
 
void setHkRepStructRepSCSampleRepNumItem (void *p, CrFwCounterU4_t NFA, CrPsRepNum_t src)
 Set "SCSampleRepNum" in "HkRepStructRep" packet. More...
 
CrPsParamId_t getHkRepStructRepN2ParamIdItem (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2)
 Get "N2ParamID" from "HkRepStructRep" packet. More...
 
void setHkRepStructRepN2ParamIdItem (void *p, CrFwCounterU4_t NFA, CrFwCounterU4_t N2, CrPsParamId_t src)
 Set "N2ParamID" in "HkRepStructRep" packet. More...
 
CrPsSid_t getHkDeleteCmdRepStrucIdItem (void *p, CrFwCounterU4_t N)
 Get "RepStrucId" from "HkDeleteCmd" packet. More...
 
void setHkDeleteCmdRepStrucIdItem (void *p, CrFwCounterU4_t N, CrPsSid_t RepStrucId)
 Set "RepStrucId" in "HkDeleteCmd" packet. More...
 
CrPsSid_t getHkEnableCmdRepStrucIdItem (void *p, CrFwCounterU4_t N)
 Get "RepStrucId" from "HkEnableCmd" packet. More...
 
void setHkEnableCmdRepStrucIdItem (void *p, CrFwCounterU4_t N, CrPsSid_t RepStrucId)
 Set "RepStrucId" in "HkEnableCmd" packet. More...
 
CrPsSid_t getHkDisableCmdRepStrucIdItem (void *p, CrFwCounterU4_t N)
 Get "RepStrucId" from "HkDisableCmd" packet. More...
 
void setHkDisableCmdRepStrucIdItem (void *p, CrFwCounterU4_t N, CrPsSid_t RepStrucId)
 Set "RepStrucId" in "HkDisableCmd" packet. More...
 
CrPsSid_t getHkRepStructCmdRepStrucIdItem (void *p, CrFwCounterU4_t N)
 Get "RepStrucId" from "HkRepStructCmd" packet. More...
 
void setHkRepStructCmdRepStrucIdItem (void *p, CrFwCounterU4_t N, CrPsSid_t RepStrucId)
 Set "RepStrucId" in "HkRepStructCmd" packet. More...
 
CrPsSid_t getHkOneShotCmdRepStrucIdItem (void *p, CrFwCounterU4_t N)
 Get "RepStrucId" from "HkOneShotCmd" packet. More...
 
void setHkOneShotCmdRepStrucIdItem (void *p, CrFwCounterU4_t N, CrPsSid_t RepStrucId)
 Set "RepStrucId" in "HkOneShotCmd" packet. More...
 
size_t getHkRepStructSize (CrPsSid_t sid)
 Get "RepStrucSize by SID". More...
 
size_t getHkRepSizeFromPckt (void *p)
 Get the size of a HkRep Housekeeping packet. More...
 
size_t getHkPcktSize (void *p)
 Get the size of a Housekeeping packet. More...
 

Detailed Description

auxiliary Interface for accessing fields in packets of service "ServHk".

Author
Christian Reimers chris.nosp@m.tian.nosp@m..reim.nosp@m.ers@.nosp@m.univi.nosp@m.e.ac.nosp@m..at
Markus Rockenbauer marku.nosp@m.s.ro.nosp@m.ckenb.nosp@m.auer.nosp@m.@univ.nosp@m.ie.a.nosp@m.c.at

last modification: 22.01.2018

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/.

Definition in file CrPsPktServHkSupp.h.

Function Documentation

CrPsParamId_t getHkCreateCmdN1ParamIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "N1ParamId" arrayItem from "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NNumber of ParamIdArray Item.
Returns
N1ParamId Array Item Value.

Definition at line 119 of file CrPsPktServHkSupp.c.

CrFwCounterU4_t getHkCreateCmdN2 ( void *  p,
CrFwCounterU4_t  NFA 
)

Get "N2" from "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
Returns
Value of "N2".

Definition at line 158 of file CrPsPktServHkSupp.c.

CrPsParamId_t getHkCreateCmdN2ParamIdItem ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Get "N2ParamID" from "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of the "N2" th Item.
Returns
Value of "N2ParamID".

Definition at line 211 of file CrPsPktServHkSupp.c.

CrFwCounterU4_t getHkCreateCmdNFA ( void *  p)

Get "NFA" from "HkCreateCmd" packet.

Parameters
pPointer to the packet.
Returns
Value of "NFA".

Definition at line 89 of file CrPsPktServHkSupp.c.

uint32_t getHkCreateCmdOffsetN2 ( void *  p,
CrFwCounterU4_t  NFA 
)

Get the offset of the "N2" field in a HkCreate packet.

The offset depend on the "NFA" Value.

Parameters
pPointer to the packet.
NFAValue
Returns
the offset of the "NFA" th. "N2" field.

Definition at line 62 of file CrPsPktServHkSupp.c.

uint32_t getHkCreateCmdOffsetN2ParamId ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Get the offset of the "N2ParamId" field in a HkCreate packet.

The offset depend on the "NFA" and the N2 Value.

Parameters
pPointer to the packet.
NFAValue
N2Value
Returns
the offset of the "NFA" th. Group and the "N2" th. N2ParamId field.

Definition at line 75 of file CrPsPktServHkSupp.c.

CrPsRepNum_t getHkCreateCmdOffsetSCS ( void *  p,
CrFwCounterU4_t  NFA 
)

Get the offset of the "SCSampleRepNum" field in a HkCreate packet.

The offset depend on the "NFA" Value.

Parameters
pPointer to the packet.
NFAValue
Returns
the offset of the "NFA" th. "SCSampleRepNum" field.

Definition at line 39 of file CrPsPktServHkSupp.c.

CrPsRepNum_t getHkCreateCmdSCSampleRepNumItem ( void *  p,
CrFwCounterU4_t  NFA 
)

Get "SCSampleRepNum" from "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
Returns
Value of "SCSampleRepNum".

Definition at line 184 of file CrPsPktServHkSupp.c.

CrPsSid_t getHkDeleteCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "RepStrucId" from "HkDeleteCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
Returns
Value of "RepStrucId" the "N" th Item of the array.

Definition at line 441 of file CrPsPktServHkSupp.c.

CrPsSid_t getHkDisableCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "RepStrucId" from "HkDisableCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
Returns
Value of "RepStrucId" the "N" th Item of the array.

Definition at line 491 of file CrPsPktServHkSupp.c.

CrPsSid_t getHkEnableCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "RepStrucId" from "HkEnableCmd" packet.

Parameters
pPointer to the packet.
NNumber of ParamIdArray Item.
Returns
Value of "RepStrucId" the "N" th Item of the array.

Definition at line 466 of file CrPsPktServHkSupp.c.

CrPsSid_t getHkOneShotCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "RepStrucId" from "HkOneShotCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
Returns
Value of "RepStrucId" the "N" th Item of the array.

Definition at line 541 of file CrPsPktServHkSupp.c.

size_t getHkPcktSize ( void *  p)

Get the size of a Housekeeping packet.

Parameters
pPointer to the packet.
Returns
the size of the packet in bytes.

Definition at line 703 of file CrPsPktServHkSupp.c.

size_t getHkRepSizeFromPckt ( void *  p)

Get the size of a HkRep Housekeeping packet.

Parameters
pPointer to the packet.
Returns
the size of the packet in bytes.

Definition at line 668 of file CrPsPktServHkSupp.c.

CrPsSid_t getHkRepStructCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "RepStrucId" from "HkRepStructCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
Returns
Value of "RepStrucId" the "N" th Item of the array.

Definition at line 516 of file CrPsPktServHkSupp.c.

CrPsParamId_t getHkRepStructRepN1ParamIdItem ( void *  p,
CrFwCounterU4_t  N 
)

Get "N1ParamId" arrayItem from "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NNumber of ParamIdArray Item.
Returns
N2ParamId "N" th Array Item Value.

Definition at line 321 of file CrPsPktServHkSupp.c.

CrFwCounterU4_t getHkRepStructRepN2 ( void *  p,
CrFwCounterU4_t  NFA 
)

Get "N2" from "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
Returns
Value of "N2".

Definition at line 360 of file CrPsPktServHkSupp.c.

CrPsParamId_t getHkRepStructRepN2ParamIdItem ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Get "N2ParamID" from "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of the "N2" th Item.
Returns
Value of "N2ParamID".

Definition at line 414 of file CrPsPktServHkSupp.c.

CrFwCounterU4_t getHkRepStructRepNFA ( void *  p)

Get "NFA" from "HkCreateDiagParCmd" packet.

Parameters
pPointer to the packet.
Returns
Value of "NFA".

Definition at line 291 of file CrPsPktServHkSupp.c.

uint32_t getHkRepStructRepOffsetN2 ( void *  p,
CrFwCounterU4_t  NFA 
)

Get the offset of the "N2" field in a HkRepStruct packet.

The offset depend on the "NFA" Value.

Parameters
pPointer to the packet.
NFAValue
Returns
the offset of the "NFA" th. "N2" field.

Definition at line 264 of file CrPsPktServHkSupp.c.

uint32_t getHkRepStructRepOffsetN2ParamId ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Get the offset of the "N2ParamId" field in a HkCreate packet.

The offset depend on the "NFA" and the N2 Value.

Parameters
pPointer to the packet.
NFAValue
N2Value
Returns
the offset of the "NFA" th. Group and the "N2" th. N2ParamId field.

Definition at line 277 of file CrPsPktServHkSupp.c.

uint32_t getHkRepStructRepOffsetSCS ( void *  p,
CrFwCounterU4_t  NFA 
)

Get the offset of the "SCSampleRepNum" field in a HkRepStruct packet.

The offset depend on the "NFA" Value.

Parameters
pPointer to the packet.
NFAValue
Returns
the offset of the "NFA" th. "SCSampleRepNum" field.

Definition at line 240 of file CrPsPktServHkSupp.c.

CrPsRepNum_t getHkRepStructRepSCSampleRepNumItem ( void *  p,
CrFwCounterU4_t  NFA 
)

Get "SCSampleRepNum" from "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
Returns
Value of "SCSampleRepNum".

Definition at line 387 of file CrPsPktServHkSupp.c.

size_t getHkRepStructSize ( CrPsSid_t  sid)

Get "RepStrucSize by SID".

Parameters
sidthe structure identifier.
Returns
size of the structure in bytes.

Definition at line 565 of file CrPsPktServHkSupp.c.

void setHkCreateCmdN1ParamIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsParamId_t  N1ParamId 
)

Set "N1ParamId" arrayItem in "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NValue of the "N" th ParamIdArray Item.
N1ParamIdVariable from where arrayItem data are copied.

Definition at line 139 of file CrPsPktServHkSupp.c.

void setHkCreateCmdN2 ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Set "N2" in "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of "N2" to be set in packet.

Definition at line 172 of file CrPsPktServHkSupp.c.

void setHkCreateCmdN2ParamIdItem ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2,
CrPsParamId_t  N2ParamId 
)

Set "N2ParamID" in "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of the "N2" th Item.
N2ParamIdValue of "N2ParamID" to be set in packet.

Definition at line 226 of file CrPsPktServHkSupp.c.

void setHkCreateCmdNFA ( void *  p,
CrFwCounterU4_t  NFA 
)

Set "NFA" in "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of "NFA" to be set in packet.

Definition at line 104 of file CrPsPktServHkSupp.c.

void setHkCreateCmdSCSampleRepNumItem ( void *  p,
CrFwCounterU4_t  NFA,
CrPsRepNum_t  SCSampleRepNum 
)

Set "SCSampleRepNum" in "HkCreateCmd" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
SCSampleRepNumValue of "SCSampleRepNum" to be set in packet.

Definition at line 198 of file CrPsPktServHkSupp.c.

void setHkDeleteCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsSid_t  RepStrucId 
)

Set "RepStrucId" in "HkDeleteCmd" packet.

Parameters
pPointer to the packet.
NNumber of ParamIdArray Item.
RepStrucIdValue of "RepStrucId" to be set in packet.

Definition at line 455 of file CrPsPktServHkSupp.c.

void setHkDisableCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsSid_t  RepStrucId 
)

Set "RepStrucId" in "HkDisableCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
RepStrucIdValue of "RepStrucId" to be set in packet.

Definition at line 505 of file CrPsPktServHkSupp.c.

void setHkEnableCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsSid_t  RepStrucId 
)

Set "RepStrucId" in "HkEnableCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
RepStrucIdValue of "RepStrucId" to be set in packet.

Definition at line 480 of file CrPsPktServHkSupp.c.

void setHkOneShotCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsSid_t  RepStrucId 
)

Set "RepStrucId" in "HkOneShotCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
RepStrucIdValue of "RepStrucId" to be set in packet.

Definition at line 555 of file CrPsPktServHkSupp.c.

void setHkRepStructCmdRepStrucIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsSid_t  RepStrucId 
)

Set "RepStrucId" in "HkRepStructCmd" packet.

Parameters
pPointer to the packet.
NNumber of Array Item.
RepStrucIdValue of "RepStrucId" to be set in packet.

Definition at line 530 of file CrPsPktServHkSupp.c.

void setHkRepStructRepN1ParamIdItem ( void *  p,
CrFwCounterU4_t  N,
CrPsParamId_t  src 
)

Set "N1ParamId" arrayItem in "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NNumber of ParamIdArray Item.
srcVariable from where arrayItem data are copied.

Definition at line 341 of file CrPsPktServHkSupp.c.

void setHkRepStructRepN2 ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2 
)

Set "N2" in "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of "N2" to be set in packet.

Definition at line 374 of file CrPsPktServHkSupp.c.

void setHkRepStructRepN2ParamIdItem ( void *  p,
CrFwCounterU4_t  NFA,
CrFwCounterU4_t  N2,
CrPsParamId_t  src 
)

Set "N2ParamID" in "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
N2Value of the "N2" th Item.
srcValue of "N2ParamID" to be set in packet.

Definition at line 429 of file CrPsPktServHkSupp.c.

void setHkRepStructRepNFA ( void *  p,
CrFwCounterU4_t  src 
)

Set "NFA" in "HkRepStructRep" packet.

Parameters
pPointer to the packet.
srcValue of "NFA" to be set in packet.

Definition at line 306 of file CrPsPktServHkSupp.c.

void setHkRepStructRepSCSampleRepNumItem ( void *  p,
CrFwCounterU4_t  NFA,
CrPsRepNum_t  src 
)

Set "SCSampleRepNum" in "HkRepStructRep" packet.

Parameters
pPointer to the packet.
NFAValue of the "NFA" th Group.
srcValue of "SCSampleRepNum" to be set in packet.

Definition at line 401 of file CrPsPktServHkSupp.c.

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