EasyManua.ls Logo

STW TC1 - Page 131

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents