7 Teleservice Application Framework
User Manual
127/374
STW
type
Prefix Size Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
places 15..16)
double precision
NATIVE type definitions
STW
type
Prefix Size Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
charn
cn_
8 bit 0x80 .. 0x7F
-128 .. +127
char
uintn
un_
32
bit
0x00000000 .. 0xFFFFFFFF
0 .. 4294967295
unsigned int
sintn
sn_
32
bit
0x80000000 .. 0x7FFFFFFF
- 2147483648 ..
+2147483647
signed int
Not recommended mistakable COMPATIBILITY type definitions
STW
type
Prefix Size Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
boolean
q_
8 bit
0x00:FALSE / (!=0x00):TRUE
0:FALSE / (!=0):TRUE
unsigned char
STW also defines the data type boolean to store binary data. A boolean data type can help to increase the
performance. However boolean is target specific and should be used with care. On some platforms a boolean
variable takes 1 bit of memory. Such a variable can only be 0 or 1 but can not be referenced by pointers or
members of a structure. Other platforms define boolean as an integer variable. In this case it is not guaranteed,
that the value of this variable is 0 or 1 - it could also be greater than 1. If a platform defines a boolean as an
integer, the variable can be referenced by pointers or member of a structure.
NOTE:
For information about using floating point arithmetic see programming hints.
NOTE:
The width of native data types (charn, uintn, and sintn) depend on the used platforms.
On 16-bit platforms an integer has a width of 16-bits - at 32-bit platform it is 32-bit wide. The API uses
this behavior for definition of platform comprehensive functions.
WARNING:
Note:
The usage of boolean can lead to unportable code.
Summary of Contents for TC1
Page 1: ...TC1 User Manual Version of this document V1 00r0 ...
Page 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Page 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Page 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Page 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...