To facilitate application development on Opticon handheld terminals, almost all of the
standard ANSI C functions plus many other functions for controlling the handheld terminal
can be used.
The standard library supplied by the compiler package contains the code
for almost all of the ANSI functions. Code that is specific to the handheld terminal
is included in the operating system. The start-up code contains the
references to these functions. The prototypes of the supported ANSI functions are described in the include files
described below in this paragraph. The prototypes of the non-ANSI functions
are in the include file LIB.H.
The ANSI functions are not described in this manual. For a description of the ANSI
standard library functions you can consult for example the book
'The C programming
language, second edition' by Brian Kernighan and Dennis Ritchie
(ISBN number 0-13-110362-8, publisher Prentice Hall).
Click on the link below to get an overview of the ANSI C header files and their descriptions
on how they conform or deviate from the ANSI standard.
errno.h | The ERRNO.H include file defines several macros that all relate to the reporting of error conditions mainly related to file handling routines. It is included and conforms to the ANSI specifications. |
---|---|
float.h, limits.h | These files define macros that expand to various limits and parameters for floating point (FLOAT.H) and integral types (LIMITS.H). They are included and conform to the ANSI specifications. |
math.h |
Math.h contains the definitions of the commonly used mathematics functions.
It is included and conforms to the ANSI specifications. |
stdarg.h | This file defines macros and data types for processing a variable number of arguments on a function call. It is included and conforms to the ANSI specifications. |
stddef.h | This include file defines some types. It is included and conforms to the ANSI specifications. |
stdio.h | The stdio.h file contains type declarations, macros and functions for several I/O related functions. |
stdlib.h | This file declares functions for number conversion, storage allocation and similar tasks. All ANSI functions prototyped in STDLIB.H are supported except for the following functions that are not very useful on embedded systems: atexit(), system(), and getenv(). |
string.h | Defines functions for string and memory manipulation. It is included and conforms to the ANSI specifications. |
time.h | Additional to the ANSI time functions, the operating system has several easy to use functions for time and date handling: SetTime(), SetDate(), GetTime(), GetDate(). |
In this chapter you'll find the available Operating System C functions grouped by categories.
To use these functions, include "lib.h" in your source files.
lib.h | Contains all available Operating System C functions with CamelCase names and defines |
---|---|
lib_legacy.h | This file is included in lib.h for backwards compatibility, using lower case function names. |
Click on the links below to show the related C functions and their descriptions
1. Configuration functions
|
||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2. Scanner functions
|
||||||||||||||||||||||||||||||||||||||||
3. Led/Sound/Vibrate functions
|
||||||||||||||||||||||||||||||||||||||||
4. Keyboard functions
|
||||||||||||||||||||||||||||||||||||||||
5. Communication functions
|
||||||||||||||||||||||||||||||||||||||||
6. Bluetooth functions
|
||||||||||||||||||||||||||||||||||||||||
7. Power management functions
|
||||||||||||||||||||||||||||||||||||||||
8. Timer functions
|
||||||||||||||||||||||||||||||||||||||||
9. Date/Time functions
|
||||||||||||||||||||||||||||||||||||||||
10. Memory/file functions
|
||||||||||||||||||||||||||||||||||||||||
11. Miscellaneous
|