User manual
505
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_Ethernet_24j600_Disable
Prototype
procedure SPI_Ethernet_24j600_Disable(disFlt : word);
Description This  is  MAC  module  routine.  This  routine  disables  appropriate  network  trafc  on  the  ENC24J600 
module by the means of it’s receive lters (unicast, multicast, broadcast, crc). Specic type of network 
trafc will be disabled if a corresponding bit of this routine’s input parameter is set. Therefore, more 
than one type of network trafc can be disabled at the same time. For this purpose, predened library 
constants (see the table below) can be ORed to form appropriate input value. 
Parameters - disFlt: network trafc/receive lter ags. Each bit corresponds to the appropriate network trafc/
receive lter: 
Returns Nothing.
Requires Ethernet module has to be initialized. See SPI_Ethernet_24j600_Init.
Example
SPI_Ethernet_24j600_Disable(_SPI_Ethernet_24j600_CRC  or  _SPI_
Ethernet_24j600_UNICAST); // disable CRC checking and Unicast trafc
Notes Advanced ltering available in the ENC24J600 module such as Pattern Match, Magic Packet 
and Hash Table can not be disabled by this routine.
This routine will change receive lter conguration on-the-y. It will not, in any way, mess with enabling/
disabling receive/transmit logic or any other part of the ENC24J600 module. The ENC24J600 module 
should be properly cogured by the means of SPI_Ethernet_24j600_Init routine.
The  ENC24J600  module  should  be  properly  cogured  by  the  means  of  SPI_Ethernet_24j600_Init 
routine.
Bit Mask Description Predened library const
0
0x01
MAC Broadcast trafc/receive lter ag. When set, MAC 
broadcast trafc will be disabled. 
_SPI_Ethernet_24j600_
BROADCAST
1
0x02
MAC Multicast trafc/receive lter ag. When set, MAC 
multicast trafc will be disabled. 
_SPI_Ethernet_24j600_
MULTICAST
2
0x04
not used
none
3
0x08
not used
none
4
0x10
not used
none
5
0x20
CRC check ag. When set, CRC check will be disabled 
and packets with invalid CRC eld will be accepted.
_SPI_Ethernet_24j600_CRC
6
0x40
not used
none
7
0x80
MAC Unicast trafc/receive lter ag. When set, MAC 
unicast trafc will be disabled. 
_SPI_Ethernet_24j600_
UNICAST










