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... | |
auxiliary Interface for accessing fields in packets of service "ServHk".
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.c.
CrPsParamId_t getHkCreateCmdN1ParamIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "N1ParamId" arrayItem from "HkCreateCmd" packet.
p | Pointer to the packet. |
N | Number of ParamIdArray Item. |
Definition at line 119 of file CrPsPktServHkSupp.c.
CrFwCounterU4_t getHkCreateCmdN2 | ( | void * | p, |
CrFwCounterU4_t | NFA | ||
) |
Get "N2" from "HkCreateCmd" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
Definition at line 158 of file CrPsPktServHkSupp.c.
CrPsParamId_t getHkCreateCmdN2ParamIdItem | ( | void * | p, |
CrFwCounterU4_t | NFA, | ||
CrFwCounterU4_t | N2 | ||
) |
Get "N2ParamID" from "HkCreateCmd" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value of the "N2" th Item. |
Definition at line 211 of file CrPsPktServHkSupp.c.
CrFwCounterU4_t getHkCreateCmdNFA | ( | void * | p | ) |
Get "NFA" from "HkCreateCmd" packet.
p | Pointer to the packet. |
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.
p | Pointer to the packet. |
NFA | Value |
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.
p | Pointer to the packet. |
NFA | Value |
N2 | Value |
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.
p | Pointer to the packet. |
NFA | Value |
Definition at line 39 of file CrPsPktServHkSupp.c.
CrPsRepNum_t getHkCreateCmdSCSampleRepNumItem | ( | void * | p, |
CrFwCounterU4_t | NFA | ||
) |
Get "SCSampleRepNum" from "HkCreateCmd" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
Definition at line 184 of file CrPsPktServHkSupp.c.
CrPsSid_t getHkDeleteCmdRepStrucIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "RepStrucId" from "HkDeleteCmd" packet.
p | Pointer to the packet. |
N | Number of Array Item. |
Definition at line 441 of file CrPsPktServHkSupp.c.
CrPsSid_t getHkDisableCmdRepStrucIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "RepStrucId" from "HkDisableCmd" packet.
p | Pointer to the packet. |
N | Number of Array Item. |
Definition at line 491 of file CrPsPktServHkSupp.c.
CrPsSid_t getHkEnableCmdRepStrucIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "RepStrucId" from "HkEnableCmd" packet.
p | Pointer to the packet. |
N | Number of ParamIdArray Item. |
Definition at line 466 of file CrPsPktServHkSupp.c.
CrPsSid_t getHkOneShotCmdRepStrucIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "RepStrucId" from "HkOneShotCmd" packet.
p | Pointer to the packet. |
N | Number of Array Item. |
Definition at line 541 of file CrPsPktServHkSupp.c.
size_t getHkPcktSize | ( | void * | p | ) |
Get the size of a Housekeeping packet.
p | Pointer to the packet. |
Definition at line 703 of file CrPsPktServHkSupp.c.
size_t getHkRepSizeFromPckt | ( | void * | p | ) |
Get the size of a HkRep Housekeeping packet.
p | Pointer to the packet. |
Definition at line 668 of file CrPsPktServHkSupp.c.
CrPsSid_t getHkRepStructCmdRepStrucIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "RepStrucId" from "HkRepStructCmd" packet.
p | Pointer to the packet. |
N | Number of Array Item. |
Definition at line 516 of file CrPsPktServHkSupp.c.
CrPsParamId_t getHkRepStructRepN1ParamIdItem | ( | void * | p, |
CrFwCounterU4_t | N | ||
) |
Get "N1ParamId" arrayItem from "HkRepStructRep" packet.
p | Pointer to the packet. |
N | Number of ParamIdArray Item. |
Definition at line 321 of file CrPsPktServHkSupp.c.
CrFwCounterU4_t getHkRepStructRepN2 | ( | void * | p, |
CrFwCounterU4_t | NFA | ||
) |
Get "N2" from "HkRepStructRep" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
Definition at line 360 of file CrPsPktServHkSupp.c.
CrPsParamId_t getHkRepStructRepN2ParamIdItem | ( | void * | p, |
CrFwCounterU4_t | NFA, | ||
CrFwCounterU4_t | N2 | ||
) |
Get "N2ParamID" from "HkRepStructRep" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value of the "N2" th Item. |
Definition at line 414 of file CrPsPktServHkSupp.c.
CrFwCounterU4_t getHkRepStructRepNFA | ( | void * | p | ) |
Get "NFA" from "HkCreateDiagParCmd" packet.
p | Pointer to the packet. |
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.
p | Pointer to the packet. |
NFA | Value |
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.
p | Pointer to the packet. |
NFA | Value |
N2 | Value |
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.
p | Pointer to the packet. |
NFA | Value |
Definition at line 240 of file CrPsPktServHkSupp.c.
CrPsRepNum_t getHkRepStructRepSCSampleRepNumItem | ( | void * | p, |
CrFwCounterU4_t | NFA | ||
) |
Get "SCSampleRepNum" from "HkRepStructRep" packet.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
Definition at line 387 of file CrPsPktServHkSupp.c.
size_t getHkRepStructSize | ( | CrPsSid_t | sid | ) |
Get "RepStrucSize by SID".
sid | the structure identifier. |
Definition at line 565 of file CrPsPktServHkSupp.c.
void setHkCreateCmdN1ParamIdItem | ( | void * | p, |
CrFwCounterU4_t | N, | ||
CrPsParamId_t | N1ParamId | ||
) |
Set "N1ParamId" arrayItem in "HkCreateCmd" packet.
p | Pointer to the packet. |
N | Value of the "N" th ParamIdArray Item. |
N1ParamId | Variable 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value of the "N2" th Item. |
N2ParamId | Value 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.
p | Pointer to the packet. |
NFA | Value 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
SCSampleRepNum | Value 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.
p | Pointer to the packet. |
N | Number of ParamIdArray Item. |
RepStrucId | Value 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.
p | Pointer to the packet. |
N | Number of Array Item. |
RepStrucId | Value 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.
p | Pointer to the packet. |
N | Number of Array Item. |
RepStrucId | Value 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.
p | Pointer to the packet. |
N | Number of Array Item. |
RepStrucId | Value 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.
p | Pointer to the packet. |
N | Number of Array Item. |
RepStrucId | Value 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.
p | Pointer to the packet. |
N | Number of ParamIdArray Item. |
src | Variable 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
N2 | Value of the "N2" th Item. |
src | Value 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.
p | Pointer to the packet. |
src | Value 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.
p | Pointer to the packet. |
NFA | Value of the "NFA" th Group. |
src | Value of "SCSampleRepNum" to be set in packet. |
Definition at line 401 of file CrPsPktServHkSupp.c.