Platform Types

Module: Compiler specific types / M33 IAR ARM compiler specific types

Types

Name

typedef unsigned char

boolean
This standard type shall only be used together with the definitions TRUE and FALSE.

typedef unsigned char

uint8
This standard type shall be of 8 bit unsigned.

typedef unsigned short

uint16
This standard type shall be of 16 bit unsigned.

typedef unsigned int

uint32
This standard type shall be of 32 bit unsigned.

typedef unsigned long long

uint64
This standard type shall be of 64 bit unsigned.

typedef signed char

sint8
This standard type shall be of 8 bit signed.

typedef short

sint16
This standard type shall be of 16 bit signed.

typedef int

sint32
This standard type shall be of 32 bit signed.

typedef long long

sint64
This standard type shall be of 64 bit signed.

typedef unsigned int

uint8_least
This optimized type shall be at least 8 bit unsigned.

typedef unsigned int

uint16_least
This optimized type shall be at least 16 bit unsigned.

typedef unsigned int

uint32_least
This optimized type shall be at least 32 bit unsigned.

typedef signed int

sint8_least
This optimized type shall be at least 8 bit signed.

typedef signed int

sint16_least
This optimized type shall be at least 16 bit signed.

typedef signed int

sint32_least
This optimized type shall be at least 32 bit signed.

typedef float

float32
This standard type shall follow the 32-bit binary interchange format according to IEEE 754-2008 with encoding parameters specified in chapter 3.6, table 3.5, column “binary32”.

typedef double

float64
This standard type shall follow the 32-bit binary interchange format according to IEEE 754-2008 with encoding parameters specified in chapter 3.6, table 3.5, column “binary64”.

Defines

Name

CPU_TYPE_8
Indicating a 8 bit processor.

CPU_TYPE_16
Indicating a 16 bit processor.

CPU_TYPE_32
Indicating a 32 bit processor.

CPU_TYPE_64
Indicating a 64 bit processor.

MSB_FIRST
The most significant bit is the first bit of the bit sequence.

LSB_FIRST
The least significant bit is the first bit of the bit sequence.

HIGH_BYTE_FIRST
Within uint16, the high byte is located before the low byte.

LOW_BYTE_FIRST
Within uint16, the low byte is located before the high byte.

TRUE
Represents boolean true value.

FALSE
Represents boolean false value.

CPU_TYPE
Register width of the CPU used.

CPU_BIT_ORDER
Bit order on register level.

CPU_BYTE_ORDER
Byte order on memory level.

Types Documentation

typedef boolean

typedef unsigned char boolean;

This standard type shall only be used together with the definitions TRUE and FALSE.

typedef uint8

typedef unsigned char uint8;

This standard type shall be of 8 bit unsigned.

typedef uint16

typedef unsigned short uint16;

This standard type shall be of 16 bit unsigned.

typedef uint32

typedef unsigned int uint32;

This standard type shall be of 32 bit unsigned.

typedef uint64

typedef unsigned long long uint64;

This standard type shall be of 64 bit unsigned.

typedef sint8

typedef signed char sint8;

This standard type shall be of 8 bit signed.

typedef sint16

typedef short sint16;

This standard type shall be of 16 bit signed.

typedef sint32

typedef int sint32;

This standard type shall be of 32 bit signed.

typedef sint64

typedef long long sint64;

This standard type shall be of 64 bit signed.

typedef uint8_least

typedef unsigned int uint8_least;

This optimized type shall be at least 8 bit unsigned.

typedef uint16_least

typedef unsigned int uint16_least;

This optimized type shall be at least 16 bit unsigned.

typedef uint32_least

typedef unsigned int uint32_least;

This optimized type shall be at least 32 bit unsigned.

typedef sint8_least

typedef signed int sint8_least;

This optimized type shall be at least 8 bit signed.

typedef sint16_least

typedef signed int sint16_least;

This optimized type shall be at least 16 bit signed.

typedef sint32_least

typedef signed int sint32_least;

This optimized type shall be at least 32 bit signed.

typedef float32

typedef float float32;

This standard type shall follow the 32-bit binary interchange format according to IEEE 754-2008 with encoding parameters specified in chapter 3.6, table 3.5, column “binary32”.

typedef float64

typedef double float64;

This standard type shall follow the 32-bit binary interchange format according to IEEE 754-2008 with encoding parameters specified in chapter 3.6, table 3.5, column “binary64”.

Macros Documentation

define CPU_TYPE_8

#define CPU_TYPE_8 8

Indicating a 8 bit processor.

define CPU_TYPE_16

#define CPU_TYPE_16 16

Indicating a 16 bit processor.

define CPU_TYPE_32

#define CPU_TYPE_32 32

Indicating a 32 bit processor.

define CPU_TYPE_64

#define CPU_TYPE_64 64

Indicating a 64 bit processor.

define MSB_FIRST

#define MSB_FIRST 0

The most significant bit is the first bit of the bit sequence.

define LSB_FIRST

#define LSB_FIRST 1

The least significant bit is the first bit of the bit sequence.

define HIGH_BYTE_FIRST

#define HIGH_BYTE_FIRST 0

Within uint16, the high byte is located before the low byte.

define LOW_BYTE_FIRST

#define LOW_BYTE_FIRST 1

Within uint16, the low byte is located before the high byte.

define TRUE

#define TRUE ((boolean)1)

Represents boolean true value.

define FALSE

#define FALSE ((boolean)0)

Represents boolean false value.

define CPU_TYPE

#define CPU_TYPE CPU_TYPE_32

Register width of the CPU used.

define CPU_BIT_ORDER

#define CPU_BIT_ORDER LSB_FIRST

Bit order on register level.

define CPU_BYTE_ORDER

#define CPU_BYTE_ORDER LOW_BYTE_FIRST

Byte order on memory level.