SatCat5
satcat5::eth::VtagPolicy Struct Reference

Detailed Description

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...
 
VtagPolicyoperator= (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...
 

Constructor & Destructor Documentation

◆ VtagPolicy() [1/4]

constexpr satcat5::eth::VtagPolicy::VtagPolicy ( u32  port,
u32  policy,
VlanTag  vtag = VTAG_DEFAULT 
)
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.

◆ VtagPolicy() [2/4]

constexpr satcat5::eth::VtagPolicy::VtagPolicy ( )
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.

◆ VtagPolicy() [3/4]

constexpr satcat5::eth::VtagPolicy::VtagPolicy ( u32  other)
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.

◆ VtagPolicy() [4/4]

constexpr satcat5::eth::VtagPolicy::VtagPolicy ( const VtagPolicy other)
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.

Member Function Documentation

◆ operator=()

VtagPolicy& satcat5::eth::VtagPolicy::operator= ( const VtagPolicy other)
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.

Member Data Documentation

◆ value

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.


The documentation for this struct was generated from the following file: