S2OPC OPCUA Toolkit
|
Evaluates and records the endianness configuration of the current machine. More...
#include "sopc_common_constants.h"
Go to the source code of this file.
Macros | |
#define | SOPC_SWAP_2_BYTES(x) |
#define | SOPC_SWAP_3_BYTES(x) |
#define | SOPC_SWAP_4_BYTES(x) |
#define | SOPC_SWAP_8_BYTES(x) |
#define | SOPC_SWAP_2_DWORDS(x) |
#define | SOPC_TO_LITTLE_ENDIAN_16BITS(iu16) |
#define | SOPC_TO_LITTLE_ENDIAN_32BITS(iu32) |
#define | SOPC_TO_LITTLE_ENDIAN_32BITS(iu64) |
#define | SOPC_TO_LITTLE_ENDIAN_FLOAT(fl32) |
#define | SOPC_TO_LITTLE_ENDIAN_DOUBLE(db64) |
Functions | |
void | SOPC_Helper_Endianness_Check (void) |
Check that machine endianness configured (:SOPC_IS_LITTLE_ENDIAN and SOPC_IS_DOUBLE_MIDDLE_ENDIAN) matches actual CPU behavior. | |
Evaluates and records the endianness configuration of the current machine.
#define SOPC_SWAP_2_BYTES | ( | x | ) |
SWAP OPERATIONS
#define SOPC_SWAP_3_BYTES | ( | x | ) |
#define SOPC_SWAP_4_BYTES | ( | x | ) |
#define SOPC_SWAP_8_BYTES | ( | x | ) |
#define SOPC_SWAP_2_DWORDS | ( | x | ) |
#define SOPC_TO_LITTLE_ENDIAN_16BITS | ( | iu16 | ) |
Define integer swapping operation to encode Integers in buffer (As little endian)
#define SOPC_TO_LITTLE_ENDIAN_32BITS | ( | iu32 | ) |
#define SOPC_TO_LITTLE_ENDIAN_32BITS | ( | iu64 | ) |
#define SOPC_TO_LITTLE_ENDIAN_FLOAT | ( | fl32 | ) |
#define SOPC_TO_LITTLE_ENDIAN_DOUBLE | ( | db64 | ) |
void SOPC_Helper_Endianness_Check | ( | void | ) |
Check that machine endianness configured (:SOPC_IS_LITTLE_ENDIAN and SOPC_IS_DOUBLE_MIDDLE_ENDIAN) matches actual CPU behavior.