Mikroelektronika MIKROE-350 Data Sheet

Page of 526
Spi_Ethernet_Disable
372
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Description
Note: Advance filtering available in the 
ENC28J60
module such as
Pattern
Match, Magic Packet
and 
Hash Table
can not be enabled by this routine.
Additionaly, all filters, except CRC, enabled with this routine will work in OR
mode, which means that packet will be received if any of the enabled filters
accepts it. 
Note: This routine will change receive filter configuration on-the-fly. It will not, in
any way, mess with enabling/disabling receive/transmit logic or any other part of
the 
ENC28J60
module. The 
ENC28J60
module should be properly cofigured by
the means of Spi_Ethernet_Init routine. 
Requires
Ethernet module has to be initialized. See Spi_Ethernet_Init.
Example
Spi_Ethernet_Enable(Spi_Ethernet_CRC or Spi_Ethernet_UNICAST) '
enable CRC checking and Unicast traffic
Prototype
sub procedure Spi_Ethernet_Disable(dim disFlt as byte)
Returns
Nothing. 
Description
This is MAC module routine. This routine disables appropriate network traffic on
the ENC28J60 module by the means of it's receive filters (unicast, multicast,
broadcast, crc). Specific type of network traffic will be disabled if a correspon-
ding bit of this routine's input parameter is set. Therefore, more than one type of
network traffic can be disabled at the same time. For this purpose, predefined
library constants (see the table below) can be ORed to form appropriate input
value. 
Parameters:
disFlt:
network traffic/receive filter flags. Each bit corresponds to the 
appropriate network traffic/receive filter: