|
SatCat5
|
Data structure for configuring VLAN tagging policy of each port.
Definition at line 68 of file switch_cfg.h.
#include <switch_cfg.h>
Public Member Functions | |
| u32 | policy () const |
| Accessors for each individual field. | |
| unsigned | port () const |
| Accessors for each individual field. | |
| satcat5::eth::VlanTag | vtag () const |
| Accessors for each individual field. | |
| constexpr | VtagPolicy (u32 port, u32 policy, VlanTag vtag=VTAG_DEFAULT) |
| Each constructors creates a packed configuration word. More... | |
| constexpr | VtagPolicy () |
| Each constructors creates a packed configuration word. More... | |
| constexpr | VtagPolicy (u32 other) |
| Each constructors creates a packed configuration word. More... | |
| constexpr | VtagPolicy (const VtagPolicy &other) |
| Each constructors creates a packed configuration word. More... | |
| VtagPolicy & | operator= (const VtagPolicy &other) |
| Each constructors creates a packed configuration word. More... | |
Public Attributes | |
| u32 | value |
| Packed value holds the tag policy, port number, and default VID. More... | |
|
inlineconstexpr |
Each constructors creates a packed configuration word.
Bits 31..24 = Port index (0 - 255) Bits 23..16 = Tagging policy (e.g., VTAG_ADMIT_ALL) Bits 15..00 = Default tag value (VID + DEI + PCP)
Definition at line 88 of file switch_cfg.h.
|
inlineconstexpr |
Each constructors creates a packed configuration word.
Bits 31..24 = Port index (0 - 255) Bits 23..16 = Tagging policy (e.g., VTAG_ADMIT_ALL) Bits 15..00 = Default tag value (VID + DEI + PCP)
Definition at line 90 of file switch_cfg.h.
|
inlineexplicitconstexpr |
Each constructors creates a packed configuration word.
Bits 31..24 = Port index (0 - 255) Bits 23..16 = Tagging policy (e.g., VTAG_ADMIT_ALL) Bits 15..00 = Default tag value (VID + DEI + PCP)
Definition at line 92 of file switch_cfg.h.
|
inlineconstexpr |
Each constructors creates a packed configuration word.
Bits 31..24 = Port index (0 - 255) Bits 23..16 = Tagging policy (e.g., VTAG_ADMIT_ALL) Bits 15..00 = Default tag value (VID + DEI + PCP)
Definition at line 94 of file switch_cfg.h.
|
inline |
Each constructors creates a packed configuration word.
Bits 31..24 = Port index (0 - 255) Bits 23..16 = Tagging policy (e.g., VTAG_ADMIT_ALL) Bits 15..00 = Default tag value (VID + DEI + PCP)
Definition at line 96 of file switch_cfg.h.
| u32 satcat5::eth::VtagPolicy::value |
Packed value holds the tag policy, port number, and default VID.
(Format matches "eth_frame_vstrip.vhd" configuration register.)
Definition at line 71 of file switch_cfg.h.