AM64x INDUSTRIAL COMMUNICATIONS SDK  11.00.00
icss_eip_vlanFilter.h File Reference

Go to the source code of this file.

Functions

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...
 

Function Documentation

◆ EIP_configureVlanFilter()

int32_t EIP_configureVlanFilter ( PRUICSS_Handle  pruicssHandle,
uint8_t  command 
)

set the VLAN_FLTR_CTRL_SHIFT to enable/disable vlan filtering

Parameters
pruicssHandleHandle to PRU ICSS instance. Contains pointers to base addresses & offsets
commandinstruction 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
pruicssHandleHandle to PRU ICSS instance. Contains pointers to base addresses & offsets
commandinstruction 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
pruicssHandleHandle to PRU ICSS instance. Contains pointers to base addresses & offsets
commandinstruction 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
pruicssHandleHandle to PRU ICSS instance. Contains pointers to base addresses & offsets
vidvid to be enabled/disabled in the VLAN filter table
commandinstruction 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