112
"C" Programming Guide For Optimus S/R
3.12 Wireless Communications
Include File
All programs that call TCP/IP stack routines need to contain the following include
statement.
#include <opr_tcpip.h>
The header file, opr_tcpip.h or ops_tcpip.h, contains the function prototypes
(declarations) and error code definitions. This file should normally be placed under
the "include" directory of the C compiler (say, "C:\C_Compiler\INCLUDE\").
Library File
All the TCP/IP stack routines have been built into a library file, such as
"opr_wlan.lib", "opr_bnep.lib", "ops_wlan.lib", and "ops_bnep.lib". This file
should be specified in the link file of user program. It will ask the linker program to
search for the TCP/IP Networking routines during linking process.
This file should normally be placed under the "lib" directory of the C compiler (say,
"C:\C_Compiler\LIB\"). Below is an example of link file (partial).
/*** Link File ***/
-lm -lg -ll
tnet.rel
opr_wlan.lib
lib_opr.lib
c900ml.lib
Note: (1) The three library files must be in the above sequence. That is, "opr_wlan.lib"
must be specified first, then "lib_opr.lib", and finally the standard C library file
"c900ml.lib". (2) For relevant structures, please refer to the header files.
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...