Go to the source code of this file.
|
| int32_t | EIP_configureVlanFilter (PRUICSS_Handle pruicssHandle, uint8_t command) |
| | set the VLAN_FLTR_CTRL_SHIFT to enable/disable vlan filtering More...
|
| |
| int32_t | EIP_configureUntaggedFrameRx (PRUICSS_Handle pruicssHandle, uint8_t command) |
| | set the VLAN_FLTR_UNTAG_HOST_RCV_CTRL_SHIFT to enable/disable untagged frame host receive More...
|
| |
| int32_t | EIP_configurePriorityTaggedFrameRx (PRUICSS_Handle pruicssHandle, uint8_t command) |
| | set the VLAN_FLTR_PRIOTAG_HOST_RCV_CTRL_SHIFT to enable/disable priority frame host receive More...
|
| |
| int32_t | EIP_configureVidRx (PRUICSS_Handle pruicssHandle, uint16_t vid, uint8_t command) |
| | insert/delete a VID in the VLAN filter table More...
|
| |
◆ EIP_configureVlanFilter()
| int32_t EIP_configureVlanFilter |
( |
PRUICSS_Handle |
pruicssHandle, |
|
|
uint8_t |
command |
|
) |
| |
set the VLAN_FLTR_CTRL_SHIFT to enable/disable vlan filtering
- Parameters
-
| pruicssHandle | Handle to PRU ICSS instance. Contains pointers to base addresses & offsets |
| command | instruction to enable/disable vlan filtering. Command can take 2 values: VLAN_FLTR_DISABLE 0x00 VLAN_FLTR_ENABLE 0x01 |
- Returns
- SystemP_SUCCESS on success, SystemP_FAILURE otherwise
◆ EIP_configureUntaggedFrameRx()
| int32_t EIP_configureUntaggedFrameRx |
( |
PRUICSS_Handle |
pruicssHandle, |
|
|
uint8_t |
command |
|
) |
| |
set the VLAN_FLTR_UNTAG_HOST_RCV_CTRL_SHIFT to enable/disable untagged frame host receive
- Parameters
-
| pruicssHandle | Handle to PRU ICSS instance. Contains pointers to base addresses & offsets |
| command | instruction to enable/disable untagged frame host receive. Command can take 2 values: VLAN_FLTR_UNTAG_HOST_RCV_ALL 0x00 VLAN_FLTR_UNTAG_HOST_RCV_NAL 0x01 |
- Returns
- SystemP_SUCCESS on success, SystemP_FAILURE otherwise
◆ EIP_configurePriorityTaggedFrameRx()
| int32_t EIP_configurePriorityTaggedFrameRx |
( |
PRUICSS_Handle |
pruicssHandle, |
|
|
uint8_t |
command |
|
) |
| |
set the VLAN_FLTR_PRIOTAG_HOST_RCV_CTRL_SHIFT to enable/disable priority frame host receive
- Parameters
-
| pruicssHandle | Handle to PRU ICSS instance. Contains pointers to base addresses & offsets |
| command | instruction to enable/disable priority frame host receive. Command can take 2 values: VLAN_FLTR_PRIOTAG_HOST_RCV_ALL 0x00 VLAN_FLTR_PRIOTAG_HOST_RCV_NAL 0x01 |
- Returns
- SystemP_SUCCESS on success, SystemP_FAILURE otherwise
◆ EIP_configureVidRx()
| int32_t EIP_configureVidRx |
( |
PRUICSS_Handle |
pruicssHandle, |
|
|
uint16_t |
vid, |
|
|
uint8_t |
command |
|
) |
| |
insert/delete a VID in the VLAN filter table
- Parameters
-
| pruicssHandle | Handle to PRU ICSS instance. Contains pointers to base addresses & offsets |
| vid | vid to be enabled/disabled in the VLAN filter table |
| command | instruction to enable/disable VID host receive. Command can take 2 values: 0 : allow packet to host | ADD_VLAN_VID : set VID to 0x01 1 : do not allow packet to host | REM_VLAN_VID | set VID to 0x00 |
- Returns
- SystemP_SUCCESS on success, SystemP_FAILURE otherwise