44 pos =
sizeof(TcHeader_t)+
sizeof(CrPsNumberU4_t)+(
sizeof(
CrPsEid_t)*N);
45 memcpy(&ret, &((uint8_t*)p)[pos],
sizeof(
CrPsEid_t));
46 return __builtin_bswap16(ret);
63 pos =
sizeof(TcHeader_t)+
sizeof(CrPsNumberU4_t)+(
sizeof(
CrPsEid_t)*N);
64 src = __builtin_bswap16(src);
65 memcpy(&((uint8_t*)p)[pos], &src,
sizeof(
CrPsEid_t));
83 pos =
sizeof(TcHeader_t)+
sizeof(CrPsNumberU4_t)+(
sizeof(
CrPsEid_t)*N);
84 memcpy(&ret, &((uint8_t*)p)[pos],
sizeof(
CrPsEid_t));
85 return __builtin_bswap16(ret);
102 pos =
sizeof(TcHeader_t)+
sizeof(CrPsNumberU4_t)+(
sizeof(
CrPsEid_t)*N);;
103 src = __builtin_bswap16(src);
104 memcpy(&((uint8_t*)p)[pos], &src,
sizeof(
CrPsEid_t));
122 pos =
sizeof(TmHeader_t)+(
sizeof(
CrPsEid_t)*N);
123 memcpy(&ret, &((uint8_t*)p)[pos],
sizeof(
CrPsEid_t));
124 return __builtin_bswap16(ret);
141 pos =
sizeof(TmHeader_t)+(
sizeof(
CrPsEid_t)*N);
142 src = __builtin_bswap16(src);
143 memcpy(&((uint8_t*)p)[pos], &src,
sizeof(
CrPsEid_t));
155 CrPsFlag_t isEnabled;
159 s=
sizeof(TmHeader_t) + 2;
void setEvtRepDisabledRepEventIdItem(void *p, CrPsNumberU4_t N, CrPsEid_t src)
Set "EventId" arrayItem in "EvtRepDisabledRep" packet.
CrFwCounterU4_t i
CrPsCmd5EidStart function definitions.
#define EVT_N_EID
Number of event identifiers supported by the application.
Header file to define all user-configurable constants and types for the IASW Application.
void setEvtEnableCmdEventIdItem(void *p, CrPsNumberU4_t N, CrPsEid_t src)
Set "EventId" arrayItem in "EvtEnableCmd" packet.
Interface for accessing data pool items.
Interface for creating and accessing a report or command packet.
CrPsEid_t getEvtDisableCmdEventIdItem(void *p, CrPsNumberU4_t N)
Get "EventId" arrayItem from "EvtDisableCmd" packet.
size_t getEvtRepDisabledSize()
Get the size of a Disabled Event Reporting packet.
uint16_t CrPsEid_t
Type used for Event Id of a Packet.
CrPsEid_t getEvtEnableCmdEventIdItem(void *p, CrPsNumberU4_t N)
Get "EventId" arrayItem from "EvtEnableCmd" packet.
Packet header definitions.
void setEvtDisableCmdEventIdItem(void *p, CrPsNumberU4_t N, CrPsEid_t src)
Set "EventId" arrayItem in "EvtDisableCmd" packet.
Interface for accessing fields in packets of service "ServEvt".
auxiliary Interface for accessing fields in packets of service "ServEvt".
Interface for accessing data pool items.
static CrPsFlag_t getDpisEidEnabledItem(int i)
Gets the value of the i-th element in the datapool array isEidEnabled.
CrPsEid_t getEvtRepDisabledRepEventIdItem(void *p, CrPsNumberU4_t N)
Get "EventId" arrayItem from "EvtRepDisabledRep" packet.