CORDET Framework - C2 Implementation
|
generic Interface for accessing fields in packets. More...
Go to the source code of this file.
Functions | |
uint32_t | getPcktInt (void *p, uint32_t pos) |
Generic Getter for Int Values from a Packet. More... | |
uint16_t | getPcktShort (void *p, uint32_t pos) |
Generic Getter for Short Values from a Packet. More... | |
uint8_t | getPcktChar (void *p, uint32_t pos) |
Generic Getter for Character Values from a Packet. More... | |
void | setPcktInt (void *p, uint32_t pos, uint32_t t) |
Generic Setter for Int Values from a Packet. More... | |
void | setPcktShort (void *p, uint32_t pos, uint16_t t) |
Generic Setter for Short Values from a Packet. More... | |
void | setPcktChar (void *p, uint32_t pos, uint8_t t) |
Generic Setter for Character Values from a Packet. More... | |
generic Interface for accessing fields in packets.
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 CrPsPktUtil.c.
uint8_t getPcktChar | ( | void * | p, |
uint32_t | pos | ||
) |
Generic Getter for Character Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Character Value |
Definition at line 55 of file CrPsPktUtil.c.
uint32_t getPcktInt | ( | void * | p, |
uint32_t | pos | ||
) |
Generic Getter for Int Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Int Value |
Definition at line 29 of file CrPsPktUtil.c.
uint16_t getPcktShort | ( | void * | p, |
uint32_t | pos | ||
) |
Generic Getter for Short Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Short Value |
Definition at line 42 of file CrPsPktUtil.c.
void setPcktChar | ( | void * | p, |
uint32_t | pos, | ||
uint8_t | t | ||
) |
Generic Setter for Character Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Character Value |
t | The Value to be set into the Packet |
Definition at line 92 of file CrPsPktUtil.c.
void setPcktInt | ( | void * | p, |
uint32_t | pos, | ||
uint32_t | t | ||
) |
Generic Setter for Int Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Int Value |
t | The Value to be set into the Packet |
Definition at line 68 of file CrPsPktUtil.c.
void setPcktShort | ( | void * | p, |
uint32_t | pos, | ||
uint16_t | t | ||
) |
Generic Setter for Short Values from a Packet.
p | Pointer to the packet. |
pos | Position of the Short Value |
t | The Value to be set into the Packet |
Definition at line 80 of file CrPsPktUtil.c.