EasyManuals Logo

STW TC1 User Manual

STW TC1
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #126 background imageLoading...
Page #126 background image
7 Teleservice Application Framework
User Manual 126/374
7.3.2 Notation
The following gives you a quick overview about how a function description in this document looks like.
7.3.2.1 Types and Prefixes
Header file: "stwtypes.h"
STW type definitions
Used types like 'word', 'long' or 'dword' are mistakable. They can have a different meaning, depending on the
platform where they are used.
The meaning of 'word' means 16 bits at a 16-bit controller like the Infineon C167 or the Freescale 68k. At a 32-
bit controller like the used TriCore processor 'word' means 32 bits. On TriCore hardware 16 bits are called a
'halfword' instead.
To avoid confusions STW introduced clear types like 'uint16'.
Recommended clear type definitions and prefixes
STW
type
Prefix
Size
Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
uint8
u8_
8 bit
0x00 .. 0xFF
0 .. 255
unsigned char
sint8
s8_
8 bit
0x80 .. 0x7F
-128 .. +127
signed char
uint16
u16_
16
bit
0x0000 .. 0xFFFF
0 .. 65535
unsigned short
int
sint16
s16_
16
bit
0x8000 .. 0x7FFF
-32768 .. +32767
signed short int
uint32
u32_
32
bit
0x00000000 .. 0xFFFFFFFF
0 .. 4294967295
unsigned long int
sint32
s32_
32
bit
0x80000000 .. 0x7FFFFFFF
- 2147483648 ..
+2147483647
signed long int
uint64
u64_
64
bit
0x0000000000000000 ..
0xFFFFFFFFFFFFFFFF
0 ..
18446744073709551615
unsigned long
long int
sint64
s64_
64
bit
0x8000000000000000 ..
0x7FFFFFFFFFFFFFFF
-
9223372036854775808
..
+9223372036854775807
signed long long
int
float32
f32_
32
bit
[ ±2
-126
.. ±2
127
]
0, ±1.18E- 38 ..
±3.4E38 (decimal places
6..7)
float (FPU: IEEE-
754)
single precision
float64
f64_
64
bit
[ ±2
-1022
.. ±2
1023
]
0, ±2.225E- 308 ..
±1.798E+308 (decimal
double (SW:
IEEE-754)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STW TC1 and is the answer not in the manual?

STW TC1 Specifications

General IconGeneral
BrandSTW
ModelTC1
CategoryController
LanguageEnglish