Datasheet
373
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 disabled by this routine.
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_Disable(Spi_Ethernet_CRC or Spi_Ethernet_UNICAST) '
disable CRC checking and Unicast traffic
Bit Mask Description Predefined library const
0 0x01
MAC Broadcast traffic/receive filter
flag. When set, MAC broadcast traffic
will be disabled.
Spi_Ethernet_BROADCAST
1 0x02
MAC Multicast traffic/receive filter
flag. When set, MAC multicast traffic
will be disabled.
Spi_Ethernet_MULTICAST
2 0x04
not used
none
3 0x08
not used
none
4 0x10
not used
none
5 0x20
CRC check flag. When set, CRC check
will be disabled and packets with invalid
CRC field will be accepted.
Spi_Ethernet_CRC
6 0x40
not used
none
7 0x80
MAC Unicast traffic/receive filter flag.
When set, MAC unicast traffic will be
disabled.
Spi_Ethernet_UNICAST