Functions | |
| int32_t | EIP_configureVlanFilter (PRUICSS_Handle pruicssHandle, uint8_t command) |
| Master control function for VLAN filtering mechanism. More... | |
| int32_t | EIP_configureUntaggedFrameRx (PRUICSS_Handle pruicssHandle, uint8_t command) |
| Configure reception behavior for untagged frames in VLAN filtering. More... | |
| int32_t | EIP_configurePriorityTaggedFrameRx (PRUICSS_Handle pruicssHandle, uint8_t command) |
| Configure reception behavior for priority-tagged frames in VLAN filtering. More... | |
| int32_t | EIP_configureVidRx (PRUICSS_Handle pruicssHandle, uint16_t vid, uint8_t command) |
| Configure VLAN ID filtering for host receive in the VLAN filter table. More... | |
| int32_t EIP_configureVlanFilter | ( | PRUICSS_Handle | pruicssHandle, |
| uint8_t | command | ||
| ) |
Master control function for VLAN filtering mechanism.
This function enables or disables the entire VLAN filtering feature by controlling a master control bit in shared memory. It serves as the main switch for all VLAN filtering operations.
When enabled:
When disabled:
Memory layout:
Control bit states:
| pruicssHandle | [in] Handle to PRU ICSS instance Contains pointers to base addresses & offsets Must not be NULL |
| command | [in] VLAN filtering control command:
|
Recommended configuration sequence:
| int32_t EIP_configureUntaggedFrameRx | ( | PRUICSS_Handle | pruicssHandle, |
| uint8_t | command | ||
| ) |
Configure reception behavior for untagged frames in VLAN filtering.
Untagged frames are standard Ethernet frames without any VLAN tag information. This function controls whether such frames should be processed by the host or filtered out.
The configuration is controlled through a dedicated bit in shared memory:
Memory layout:
Operation details:
| pruicssHandle | [in] Handle to PRU ICSS instance Contains pointers to base addresses & offsets Must not be NULL |
| command | [in] Reception control command:
|
Example usage:
| int32_t EIP_configurePriorityTaggedFrameRx | ( | PRUICSS_Handle | pruicssHandle, |
| uint8_t | command | ||
| ) |
Configure reception behavior for priority-tagged frames in VLAN filtering.
Priority-tagged frames are Ethernet frames with a VLAN tag where:
This function controls whether such frames should be:
The configuration is done by manipulating a control bit in shared memory:
Memory layout:
| pruicssHandle | [in] Handle to PRU ICSS instance Contains pointers to base addresses & offsets Must not be NULL |
| command | [in] Reception control command:
|
Example usage:
| int32_t EIP_configureVidRx | ( | PRUICSS_Handle | pruicssHandle, |
| uint16_t | vid, | ||
| uint8_t | command | ||
| ) |
Configure VLAN ID filtering for host receive in the VLAN filter table.
This function manages the VLAN filter table which controls whether packets with specific VLAN IDs (VIDs) should be received by the host or not. The filter table is implemented as a bit array where each bit corresponds to a VID (0-4095).
The VLAN filter table layout:
Implementation details:
| pruicssHandle | [in] Handle to PRU ICSS instance Contains pointers to base addresses & offsets Must not be NULL |
| vid | [in] VLAN ID to configure (0-4095) Since vid is unsigned, only upper bound (4095) is checked |
| command | [in] Configuration command:
|
Example usage: