DO0281R00
32 / 58
Filtering by the target IP address
(IPv4 0x0800 )
Input field for target IP address: 4 bytes
Example:
You want to filter the target IP address "01 02 03 04".
Set the following filter registers:
Register
Parameter
Function
SegFilter1:
x07
00 00 00 03 Word offset of protocol type
x08
00 00 00 08 IPv4 protocol type
x09
00 00 FF FF Mask on 2 bytes
SegFilter2:
x10
00 00 00 07 Word offset of the target IP address is 10
x11
02 01 00 00 First 2 bytes of the target IP address
x12
FF FF 00 00 Mask on 2 bytes
SegFilter3:
x13
00 00 00 08 Word offset of the rest of the target IP address is 11
x14
00 00 04 03 Last 2 bytes of the target IP address
x15
00 00 FF FF Mask on 2 bytes
Filter 1
x55
00 00 00 00 No negation of SegFilter1,2 and 3
x56
00 00 00 07 Filter1 consists of SegFilter1,2 and 3
Uplink
x65
00 00 00 00 Do not invert output
x66
00 00 00 01 Frame is output at the uplink port if filter 1 applies.
ConfigReg
401
xx xx xx xE Activate filter for CON B port (1101)
Filtering by IP4 and external
input
Example:
You want to filter by protocol type IPv4 and the external input.
Protocol type IPv4 corresponds to 0x0800. The external input is "high".
Set the following filter registers:
Register
Parameter
Function
SegFilter1:
x07
00 00 00 03 Word offset of protocol type
x08
00 00 00 08 IPv4 protocol type
x09
00 00 FF FF Mask on 2 bytes
Filter 1
x55
00 00 00 00 No negation of SegFilter1
x56
10 00 00 01 Filter1 consists of SegFilter1 and the external input
Uplink
x65
00 00 00 00 Do not invert output
x66
00 00 00 01 Frame is output at the uplink port if filter 1 applies.
ConfigReg
401
xx xx xx xE Activate filter for CON A port (1110)
Filters