MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros

Macros

#define MGUI_LIL_ENDIAN   1234
 Little endianness. More...
 
#define MGUI_BIG_ENDIAN   4321
 Big endianness. More...
 
#define MGUI_BYTEORDER   MGUI_LIL_ENDIAN
 The byte order (endianness) of the target system. More...
 

Detailed Description

Macro Definition Documentation

◆ MGUI_BIG_ENDIAN

#define MGUI_BIG_ENDIAN   4321

Big endianness.

Definition at line 285 of file common.h.

◆ MGUI_BYTEORDER

#define MGUI_BYTEORDER   MGUI_LIL_ENDIAN

The byte order (endianness) of the target system.

This macro will be either defined to MGUI_LIL_ENDIAN or MGUI_BIG_ENDIAN. You can use the code like below

#if MGUI_BYTEORDER == MGUI_LIL_ENDIAN
... // code for little endian system.
#else
... // code for big endian system.
#endif

to write endianness independent code.

Definition at line 319 of file common.h.

◆ MGUI_LIL_ENDIAN

#define MGUI_LIL_ENDIAN   1234

Little endianness.

Definition at line 280 of file common.h.