Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
467
The following variables must be defined 
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 defined 
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 
*flags);
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 
*flags);
UDP request handler.
Refer to the library example at the bottom of this 
page for code implementation.
External dependencies of SPI Ethernet ENC24J600 Library