Z183 EMAC Board
User Manual
10
UM008301-0401
extern int SetRxFilter(int rxflags, char *Hashbits);
This function is used to specify the type of receive frames that are accepted by
the driver.
•
rxflags is a bitfield used to set the following bits to 1, as defined in
<ethdr183.h>.
–
IAHashA—Specify to accept frames specified by the 64-bit Hashbits
filter.
–
PromiscuousA—Specify to accept any frame on the wire.
–
RxOKA—Specify to accept only frames with the proper CRC.
–
MulticastA—Specify to accept multicast frames.
–
IndividualA—Specify to accept frames addressed specifically to this
Ethernet MAC’s unique ieeeaddr.
–
BroadcastA—Specify to accept broadcast frames.
–
CRCerrorA—Specify to accept frames even with CRC errors.
–
RuntA—Specify to accept frames that are less than 64 bytes long.
–
ExtradataA—Specify to accept frames larger than 1518 bytes (including
CRC), but hold the first 1,518 bytes only.
•
Hashbits is a 64-bit field used to specify to the driver an address mask of
destination addresses against which incoming frames are qualified for
acceptance when the IAHashA receive flag is set.
Each bit in this field represents a unique low order 6-bit value of the
incoming frame’s DstAddr.
The Hashbits pointer points to the lowest byte of the filter specification, i.e.
DstAddr range xxxxx0h to xxxxx7h. Odd addresses with Bit 0 set to 1 are
interpreted as multicast addresses.
Note: The above flags can be specified simultaneously using addition or a bitwise OR.