User manual
404
mikoPascal PRO for PIC32
MikroElektronika
The following variables must be dened in all projects
using SPI Ethernet Library:
Description: Example:
var SPI_Ethernet_CS : sbit; sfr; external;
ENC28J60 chip select pin.
var SPI_Ethernet_CS : sbit at
LATF1_bit;
var SPI_Ethernet_RST : sbit; sfr; external;
ENC28J60 reset pin.
var SPI_Ethernet_RST : sbit
at LATF0_bit;
var SPI_Ethernet_CS_Direction : sbit; sfr;
external;
Direction of the ENC28J60
chip select pin.
var SPI_Ethernet_CS_Direction
: sbit at TRISF1_bit;
var SPI_Ethernet_RST_Direction : sbit; sfr;
external;
Direction of the ENC28J60
reset pin.
var SPI_Ethernet_RST_
Direction : sbit at TRISF0_
bit;
The following routines must be dened in all project
using SPI Ethernet Library:
Description: Examples:
function SPI_Ethernet_UserTCP(var remoteHost
: array[4] of byte,
remotePort :
word,
localPort :
word,
reqLength :
word)
var ags:
TEthPktFlags) : word;
TCP request handler.
Refer to the library example at
the bottom of this page for code
implementation.
function SPI_Ethernet_UserUDP(var remoteHost
: array[4] of byte,
remotePort :
word,
destPort :
word,
reqLength :
word,
var ags:
TEthPktFlags) : word;
UDP request handler.
Refer to the library example at
the bottom of this page for code
implementation.
External dependencies of SPI Ethernet Library