Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
442
mikoC PRO for PIC32
MikroElektronika
The following variables must be defined
in all projects using SPI Ethernet
Library:
Description:
Example:
extern sfr sbit SPI_Ethernet_
CS;
ENC28J60 chip select pin.
sbit SPI_Ethernet_CS at LATF1_bit;
extern sfr sbit SPI_Ethernet_
RST;
ENC28J60 reset pin.
sbit SPI_Ethernet_Rst at LATF0_bit;
extern sfr sbit SPI_Ethernet_CS_
Direction;
Direction of the ENC28J60 chip
select pin.
sbit SPI_Ethernet_CS_Direction at
TRISF1_bit;
extern sfr sbit SPI_Ethernet_
RST_Direction;
Direction of the ENC28J60 reset
pin.
sbit SPI_Ethernet_Rst_Direction at
TRISF0_bit;
The following routines must be defined
in all project using SPI Ethernet
Library:
Description:
Examples:
unsigned
int
SPI_Ethernet_
UserTCP(unsigned
char
*remoteHost,
unsigned
int
remotePort,
unsigned
int
localPort,
unsigned
int
reqLength, TEthPktFlags *flags);
TCP request handler.
Refer to the library example at the bottom of this
page for code implementation.
unsigned
int
SPI_Ethernet_
UserUDP(unsigned
char
*remoteHost,
unsigned
int
remotePort,
unsigned
int
localPort,
unsigned
int
reqLength, TEthPktFlags *flags);
UDP request handler.
Refer to the library example at the bottom of this
page for code implementation.
External dependencies of SPI Ethernet Library