![Tern CAN-Engine Скачать руководство пользователя страница 45](http://html.mh-extra.com/html/tern/can-engine/can-engine_technical-manual_1089501045.webp)
CAN-Engine
Chapter 4: Software
4-23
io_ping
This very basic sample is only useful for the now discontinued I2CHIP, bus-based expansion board.
httpd_img
For customers using the C-Eye controller, a HTTP-based daemon serving up bitmap images is available in
the samples\ceye\ directory.
http_adc
This sample responds to any incoming TCP connection (on port 80) by serving up a basic HTML page,
with the contents of some hypothetical ADC calculations.
The main .c file (
http_adc.c
) defines the HTML return definitions near the top of the program. It relies
on two generic "adc" functions which the user can re-program to provide actual ADC data:
void adc_init(void);
UINT16 adc_rd(UCHAR8 channel);
Related files:
-
socket.c,
socket implementation, as above.
-
i2chip_hw.c,
hardware interfacce, as above.
-
ae.lib,
library for A/R- family of boards, as above.
OR
re.lib
dhcp_ip
This sample program demonstrates how to interface to a DHCP server, in order to dynamically set IP level
addresses. Instead of statically setting your IP address, your controller can now query a LAN-based server
to determine IP address, netmask, and gateway address.
Related Files:
- socket.c, i2chip_hw.c, as above.
- ..\utils\system_timer.c,
This simple software timer library makes it easier to do simple "timed" tasks. We use it for some DHCP
behavior, and it may be useful to you in your primary application as well. For details, see system_timer.h.
Note that in order to use
system_timer.c,
you may need to define
TERN_186
or
TERN_586.