User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
500
The following variables must be dened
in all projects using SPI Ethernet
ENC24J600 Library:
Description: Example:
var SPI_Ethernet_24j600_CS :
sbit; sfr; external;
ENC24J600 chip select pin.
var SPI_Ethernet_24j600_CS : sbit at
LATF1_bit;
var SPI_Ethernet_24j600_
CS_Direction : sbit; sfr;
external;
Direction of the ENC24J600 chip
select pin.
var SPI_Ethernet_24j600_CS_Direction
: sbit at TRISF1_bit;
The following routines must be dened in all project using SPI Ethernet
ENC24J600 Library:
Description: Example:
function SPI_Ethernet_24j600_UserTCP(var remoteHost : array[4]
of byte,
remotePort : word,
localPort : word,
reqLength : word)
var ags: TEthj600PktFlags) : word;
TCP request
handler.
Refer to the library
example at the bottom
of this page for code
implementation.
function SPI_Ethernet_24j600_UserUDP(var remoteHost : array[4]
of byte,
remotePort : word,
destPort : word,
reqLength : word,
var ags: TEthj600PktFlags) : 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