7 Teleservice Application Framework
User Manual
131/374
Example code:
// call of x_function_name()
void main(void)
{
sint16 s16_Result = C_NO_ERR;
uint16 u16_Value = 0;
s16_Result = x_function_name(15, 0x20000, &u16_Value);
if (s16_Result != C_NO_ERR)
// check if an error occurred!
{
u16_Value = 0;
}
else
{
u16_Value *= 2;
}
:
}
7.3.2.3
Error Codes
The error codes used by the C-BIOS API functions are handled by using macros.
The following macros are defined:
Macro
Value
Description
C_NO_ERR
0
Function executed without error
C_UNKNOWN_ERR
-1
Unknown error
C_WARN
-2
Warning error
C_DEFAULT
-3
Default error
C_BUSY
-4
Busy error
C_RANGE
-5
Range error
C_OVERFLOW
-6
Overflow error
C_RD_WR
-7
Read/Write error
NOTE:
The corresponding values here are informal only (e.g. for debugging). Values/Constants should not be
used direct for coding.
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 ...