User manual
524
mikoC PRO for dsPIC
MikroElektronika
The following variables must be
dened in all projects using SPI
Ethernet ENC24J600 Library:
Description : Example :
extern sfr sbit SPI_
Ethernet_24j600_CS;
ENC24J600 chip select pin.
sbit SPI_Ethernet_24j600_CS at
LATF1_bit;
extern sfr sbit SPI_
Ethernet_24j600_CS_
Direction;
Direction of the ENC24J600
chip select pin.
sbit SPI_Ethernet_24j600_CS_
Direction at TRISF1_bit;
The following routines must be
dened in all project using SPI
Ethernet ENC24J600 Library:
Description : Example :
unsigned int SPI_
Ethernet_24j600_
UserTCP(unsigned char
*remoteHost, unsigned int
remotePort, unsigned int
localPort, unsigned int
reqLength, TEthj600PktFlags
*ags);
TCP request handler.
Refer to the library example at the bottom of
this page for code implementation.
unsigned int SPI_
Ethernet_24j600_
UserUDP(unsigned char
*remoteHost, unsigned int
remotePort, unsigned int
localPort, unsigned int
reqLength, TEthj600PktFlags
*ags);
UDP request handler.
Refer to the library example at the bottom of
this page for code implementation.
External dependencies of SPI Ethernet ENC24J600 Library