![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 581](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630581.webp)
www.geehy.com Page 580
VLAN tag register (MAC_VLANT)
Offset address: 0x1C
Reset value: 0x0000 0000
This register contains the IEEE 802.1Q VLAN tag, used to identify the VLAN
frame. The MAC compares No. 13 and No. 14 bytes of the received frame
(length/type) with 0x8100, and compares the next 2 bytes with VLAN tag; if the
match is successful, set the receive VLAN bit of the received frame state. The
legal length of the frame increases from 1518 bytes to 1522 bytes.
Field
Name
R/W
Description
15:0
VLANTID
R/W
VLAN Tag Identifier
It contains 802.1Q VLAN tag, which is used to identify VLAN frames
and compare them with No. 15 byte and No. 16 byte of the received
frame. Bit [15:13] is the user priority, bit [12] is the canonical format
indicator, and bit [11:0] is the VLAN identifier of the VLAN tag. When
the VLANTCOMP bit is set, only bit [11:0] is used for comparison. If
VLANTID is all 0, the MAC does not check the VLAN tag
comparison of No. 15 byte and No. 16 byte, and declares all frames
with Type value of 0x8100 as VLAN frames.
16
VLANTCOMP
R/W
12-bit VLAN Tag Comparison
When this bit is set, the VLAN identifier of bit 12 instead of the
complete 16-bit VLAN tag will be used for comparison and filtering.
The VLAN tag bit [11:0] is compared with the corresponding bit in
the received VLAN tag frame.
When this bit is reset, all 16 bits of No. 15 and No. 16 bytes of the
received VLAN frame will be used for comparison.
31:17
Reserved
Remote wake-up frame filter register (MAC_REMWKUPFFL)
Offset address: 0x28
Reset value: 0x0000 0000
The application program will write/read the remote wake-up frame filter register
through this address. In fact, the wake-up frame filter register is eight (opaque)
wake-up frame filter registers. Eight continuous write operations to this address
of the offset (0x0028) will write/read all wake-up frame filter registers. This
register contains the high 16 bits of the seventh MAC address.
Wake-up frame filter register x (MAC_WKUPFFLx) (x=0-3)
Field
Name
R/W
Description
31:0
FLXBMASK
R/W
Filter x Byte Mask
This register defines which bytes of the frame are detected by the
filter x to determine whether the frame is a wake-up frame.
MSB[31] must be zero. Bit y[30:0] is byte mask. If the bit y (the
number of bytes) of byte mask is set to 1, the filter x y of the
incoming frame will be processed by the CRC module; otherwise, the
filter x y will be ignored.
Wake-up frame filter register 4 (MAC_WKUPFFL4)