3 / 30
iSense Ethernet Gateway User Guide
coalesenses
research to innovate
Contents
1.
General Description ........................................................................................................................ 6
1.1.
Handling and Security Instructions .......................................................................................... 7
2.
Programming of the Ethernet Gateway .......................................................................................... 8
3.
Net10Module API Description ....................................................................................................... 8
3.1.
Extended Constructor ............................................................................................................... 8
3.2.
Standard Constructor ............................................................................................................... 9
3.3.
set_led ...................................................................................................................................... 9
3.4.
set_button_handler ................................................................................................................. 10
3.5.
ethernet ................................................................................................................................... 10
3.6.
sd_card ................................................................................................................................... 10
4.
SDCard API Description .............................................................................................................. 11
4.1.
Constructor ............................................................................................................................. 11
4.2.
is_ready .................................................................................................................................. 11
4.3.
is_write_protected .................................................................................................................. 11
4.4.
get_number_of_blocks ........................................................................................................... 12
4.5.
access ..................................................................................................................................... 12
4.6.
access_block .......................................................................................................................... 12
4.7.
read ......................................................................................................................................... 13
4.8.
read_block .............................................................................................................................. 13
4.9.
write ....................................................................................................................................... 14
4.10.
write_block ....................................................................................................................... 14
5.
Enc28J60 API Description ........................................................................................................... 15
5.1.
constructor .............................................................................................................................. 15
5.2.
send ........................................................................................................................................ 16
5.3.
enable ..................................................................................................................................... 16
5.4.
enable ..................................................................................................................................... 16
5.5.
set_receiver ............................................................................................................................ 16
5.6.
address.................................................................................................................................... 17
5.7.
max_packet_size .................................................................................................................... 17
6.
Ethernet Gateway Module Demo Application .............................................................................. 17
6.1.
Obtaining the Ethernet Gateway Module Demo Application ................................................ 17
6.2.
Compiling the Ethernet Gateway Demo Application ............................................................ 18
6.2.1.
Using Eclipse ............................................................................................................... 18
6.2.2.
Using the Command Line ............................................................................................ 21