Mikroelektronika MIKROE-442 Datenbogen
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
501
The following variables must be defined
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 defined 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 flags 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 flags 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