Defines |
#define | WORDB(bytes) ((unsigned short) ((bytes[0] << 8) | bytes[1])) |
| Converts a byte array to a word value using the big endian format.
|
#define | DWORDB(bytes) |
| Converts a byte array to a dword value using the big endian format.
|
#define | STORE_DWORDB(dword, bytes) |
| Stores a dword value in a byte array, in big endian format.
|
#define | STORE_WORDB(word, bytes) |
| Stores a word value in a byte array, in big endian format.
|
Detailed Description
This page lists the macros for endianness conversion.
Macros
- WORDB
- DWORDB
- STORE_DWORDB
- STORE_WORDB
Define Documentation
Value:((unsigned int) ((bytes[0] << 24) | (bytes[1] << 16) \
| (bytes[2] << 8) | bytes[3]))
Converts a byte array to a dword value using the big endian format.
Definition at line 329 of file SBC.h.
#define STORE_DWORDB |
( |
|
dword, |
|
|
|
bytes | |
|
) |
| | |
Value:bytes[0] = (unsigned char) (((dword) >> 24) & 0xFF); \
bytes[1] = (unsigned char) (((dword) >> 16) & 0xFF); \
bytes[2] = (unsigned char) (((dword) >> 8) & 0xFF); \
bytes[3] = (unsigned char) ((dword) & 0xFF);
Stores a dword value in a byte array, in big endian format.
Definition at line 333 of file SBC.h.
#define STORE_WORDB |
( |
|
word, |
|
|
|
bytes | |
|
) |
| | |
Value:bytes[0] = (unsigned char) (((word) >> 8) & 0xFF); \
bytes[1] = (unsigned char) ((word) & 0xFF);
Stores a word value in a byte array, in big endian format.
Definition at line 340 of file SBC.h.