22 #include "SignalData.hpp"
45 friend bool printTCKEYCONF(FILE *,
const Uint32 *, Uint32, Uint16);
70 struct OperationConf {
71 Uint32 apiOperationPtr;
78 OperationConf operations[10];
83 static Uint32 getNoOfOperations(
const Uint32 & confInfo);
84 static Uint32 getCommitFlag(
const Uint32 & confInfo);
85 static bool getMarkerFlag(
const Uint32 & confInfo);
90 static void setCommitFlag(Uint32 & confInfo, Uint8 flag);
91 static void setNoOfOperations(Uint32 & confInfo, Uint32 noOfOps);
92 static void setMarkerFlag(Uint32 & confInfo, Uint32 flag);
97 TcKeyConf::getNoOfOperations(
const Uint32 & confInfo){
98 return confInfo & 65535;
103 TcKeyConf::getCommitFlag(
const Uint32 & confInfo){
104 return ((confInfo >> 16) & 1);
109 TcKeyConf::getMarkerFlag(
const Uint32 & confInfo){
110 const Uint32 bits = 3 << 16;
111 return (confInfo & bits) == bits;
116 TcKeyConf::setNoOfOperations(Uint32 & confInfo, Uint32 noOfOps){
117 ASSERT_MAX(noOfOps, 65535,
"TcKeyConf::setNoOfOperations");
118 confInfo = (confInfo & 0xFFFF0000) | noOfOps;
123 TcKeyConf::setCommitFlag(Uint32 & confInfo, Uint8 flag){
124 ASSERT_BOOL(flag,
"TcKeyConf::setCommitFlag");
125 confInfo |= (flag << 16);
130 TcKeyConf::setMarkerFlag(Uint32 & confInfo, Uint32 flag){
131 ASSERT_BOOL(flag,
"TcKeyConf::setMarkerFlag");
132 confInfo |= (flag << 17);