User manual

mikroBasic PRO for PIC32
MikroElektronika
439
The following variables must be dened
in all projects using SPI Ethernet
ENC24J600 Library:
Description: Example:
dim SPI_Ethernet_24j600_CS as
sbit sfr external
ENC24J600 chip select pin.
dim SPI_Ethernet_24j600_CS as sbit
at RC1_bit
dim SPI_Ethernet_24j600_CS_
Direction as sbit sfr external
Direction of the ENC24J600 chip
select pin.
dim SPI_Ethernet_24j600_CS_Direction
as sbit at TRISC1_bit
The following routines must be dened in
all project using SPI Ethernet ENC24J600
Library:
Description: Example:
sub function SPI_Ethernet_24j600_
UserTCP(dim byref remoteHost as
byte[4],
dim remotePort as word,
dim localPort as word,
dim reqLength as word,
dim byref ags as TEthj600PktFlags)
as word
TCP request handler
Refer to the library example at
the bottom of this page for code
implementation.
sub function SPI_Ethernet_24j600_
UserUDP(dim byref remoteHost as
byte[4],
dim remotePort as word,
dim destPort as word,
dim reqLength as word,
dim byref ags as TEthJ600PktFlags)
as word
UDP request handler
Refer to the library example at
the bottom of this page for code
implementation.
External dependencies of SPI Ethernet ENC24J600 Library