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.
Содержание TC1
Страница 1: ...TC1 User Manual Version of this document V1 00r0 ...
Страница 25: ...5 Hardware User Manual 25 374 5 2 2 Block Diagram Variant TC1 WIFI ...
Страница 34: ...5 Hardware User Manual 34 374 5 6 Housing Connector Top view and side view Bottom View ...
Страница 125: ...7 Teleservice Application Framework User Manual 125 374 TAF overview ...
Страница 174: ...7 Teleservice Application Framework User Manual 174 374 ADDRESS 6 SIZE 4 TYPE UINT32 UNIT COMMENT EnginePower ...
Страница 190: ...7 Teleservice Application Framework User Manual 190 374 How the logger mechanism works ...
Страница 223: ...7 Teleservice Application Framework User Manual 223 374 Association between logic hysteresis and threshold ...
Страница 293: ...8 Development Tools User Manual 293 374 3 Adapt the Build Options in order to build the binary with debug symbols ...
Страница 302: ...8 Development Tools User Manual 302 374 2 Adapt the Build Options in order to build the binary with debug symbols ...