Chapter 8 Sample Program
The V850 ZigBee
TM
Gateway sample utilizes several complex libraries in order to
provide a wireless-to-Ethernet gateway solution for application development. In
this section, we will identify the key user configurable files that will allow the
solution to be tailored to the user’s application. However, it is recommended that
the users familiarize themselves with the MAC and CNET library documentation.
8.1 User configurable network Parameters
Various network parameters will always be user specific and must be tailored to
the user application; these user configurable parameters can be found in the
“config.h” header file.
8.2 Libraries
The following provides a brief overview libraries supplied with the
V850
ZigBee
TM
Gateway Development Platform
.
Table 8-1 Different libraries used
API.R85
API interface for the CNETTCPIP stack.
Cnet_osless.R85
Required to ensure correct operation of the TCPIP stack when
No RTOS is employed.
Config.R85
Various system configuration utilities.
Driver.R85
Library for the Ethernet device driver.
NEC.R85
NEC Utilities and applications library.
Sellib.R85
Flash Self programming library.
Stack.R85
IEEE.802.15.4 MAC stack library.
Webpages.R85
Library containing the web pages, the web pages are also
supplied as source code so that the user can modify the web
pages. Care must be taken to use the same names for the web
pages so that at link time the web page library is not called. Web
pages can generate large code sizes so care must be in the
design to ensure that the 64KB code size limit is not exceeded.
8.3 Embedded functions in Web Pages
All of the embedded functions that are called from the web interface can be found
in the file
“httpdfunc.c”
; should the user wish to change the functionality of the
web calls please modify the code appropriately.
A utility program is provided to convert web pages (see accompanying CNET user
manual) to a large data array; this data is placed in a file called
“fsdata.c”
. After
conversion this file needs to be modified with the following to ensure the web
pages are located in the correct segment of memory.
50
User's Manual U19026EE3V0UM00