![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
Group for PORT features API and data structure. data structures are prefixed with netc_port. APIs are prefixed with NETC_Port.
Modules | |
Hardware Port Rx | |
Hardware Port Tx | |
Data Structures | |
struct | netc_port_qos_mode_t |
Port Qos mode. More... | |
struct | netc_port_parser_config_t |
Port Parser config. More... | |
struct | netc_port_tg_config_t |
Port time gate config. More... | |
struct | netc_port_tc_cbs_config_t |
Configuration for the Credit Based Shaped for port TC. More... | |
struct | netc_port_tx_tc_config_t |
Configuration for the port Tx Traffic Class. More... | |
struct | netc_port_discard_statistic_t |
Switch or ENETC port Tx/Rx/Bridge discard statistic / reason. More... | |
struct | netc_port_vlan_classify_config_t |
Port accepted Vlan classification config. More... | |
struct | netc_port_qos_classify_config_t |
Port Qos Classification Config. More... | |
struct | netc_port_ipf_config_t |
Port Ingress Filter Config. More... | |
struct | netc_port_psfp_isi_config |
PSFP port config. More... | |
struct | netc_port_common_t |
Port common configuration. More... | |
struct netc_port_qos_mode_t |
Data Fields | |
uint8_t | qosVlanMap: 4 |
Transmit QoS to VLAN PCP Mapping Profile index, only active on switch port. | |
uint8_t | vlanQosMap: 4 |
Receive VLAN PCP/DE to QoS Mapping Profile index, only active on switch port. | |
uint8_t | defaultIpv: 3 |
Port default IPV. | |
uint8_t | defaultDr: 2 |
Port default DR. | |
bool | enVlanInfo: 1 |
Enable use VLAN info to determine IPV and DR (base on VLANIPVMPaR0/1 and VLANDRMPaR) | |
bool | vlanTagSelect: 1 |
True: Outer VLAN, False: Innner VLAN. More... | |
bool netc_port_qos_mode_t::vlanTagSelect |
Active when enVlanInfo is true
struct netc_port_parser_config_t |
Data Fields | |
uint8_t | l2PloadCount: 5 |
L2 payload fields size in bytes. | |
bool | enableL3Parser: 1 |
Enable/Disable parser for L3. | |
uint8_t | l3PayloadCount: 5 |
L3 payload fields size in bytes. | |
bool | enableL4Parser: 1 |
Enable/Disable parser for L4. | |
uint8_t | l4PayloadCount: 5 |
L4 payload fields size in bytes. | |
struct netc_port_tg_config_t |
struct netc_port_tc_cbs_config_t |
Data Fields | |
uint8_t | bwWeight |
Percentage units of the port transmit rate and the credit-based shaper (range from 0 ~ 100), the sum of all traffic class credit-based shaper's bandwidth cannot exceed 100. | |
uint32_t | hiCredit |
The maximum allowed accumulation of credits when conflicting transfers occur, in credit units ((enetClockFrequency / portTxRate) * 100) | |
struct netc_port_tx_tc_config_t |
Data Fields | |
bool | enPreemption: 1 |
Frames from traffic class are transmitted on the preemptable MAC, not supported on internal port (ENETC 1 port and Switch port 4) | |
bool | enTcGate: 1 |
Enable the traffic class gate when no gate control list is operational, or when time gate scheduling is disabled. More... | |
bool | enableTsd: 1 |
Enable Time Specific Departure traffic class, only applicable to ENETC. | |
bool | enableCbs: 1 |
Enable Credit based shaper for traffic class. | |
netc_port_tc_cbs_config_t | cbsCfg |
Configure transmit traffic class credit based shaper (PTC0CBSR0/PTC0CBSR1) if enableCbs set to ture | |
bool netc_port_tx_tc_config_t::enTcGate |
struct netc_port_discard_statistic_t |
Data Fields | |
uint32_t | count |
Count of discarded frames. More... | |
uint32_t | reason0 |
Discard Reason. More... | |
uint32_t | reason1 |
Discard Reason. More... | |
uint32_t netc_port_discard_statistic_t::count |
PRXDCR, PTXDCR or BPDCR.
uint32_t netc_port_discard_statistic_t::reason0 |
Find bit detail from PT/RXDCRR0 or BPDCRR0.
uint32_t netc_port_discard_statistic_t::reason1 |
Find bit detail from PT/RXDCRR1 or BPDCRR1.
struct netc_port_vlan_classify_config_t |
Data Fields | |
uint8_t | innerMask: 4 |
Bitmap identifying which TPIDs are acceptable as Inner VLAN tag. More... | |
uint8_t | outerMask: 4 |
Bitmap identifying which TPIDs are acceptable as Outter VLAN tag. More... | |
uint8_t netc_port_vlan_classify_config_t::innerMask |
See PTAR
uint8_t netc_port_vlan_classify_config_t::outerMask |
See PTAR
struct netc_port_qos_classify_config_t |
Data Fields | |
uint8_t | vlanQosMap: 4 |
Receive VLAN PCP/DE to QoS Mapping Profile index. | |
uint8_t | defaultIpv: 3 |
Port default IPV. | |
uint8_t | defaultDr: 2 |
Port default DR. | |
bool | enVlanInfo: 1 |
Enable use VLAN info to determine IPV and DR ,base on VLAN to IPV map (VLANIPVMPaR0/1) and VLAN to DR map (VLANDRMPaR) | |
bool | vlanTagSelect: 1 |
True: Use received Outer VLAN, False: Use received Innner VLAN. More... | |
bool netc_port_qos_classify_config_t::vlanTagSelect |
Active when enVlanInfo is true
struct netc_port_ipf_config_t |
Data Fields | |
bool | enL2Dos: 1 |
Enable port L2 Ethernet DoS Protection. | |
bool | enL3Dos: 1 |
Enable port L3 IP DoS Protection. | |
bool | enIPFTable: 1 |
Enable port IPF lookup. | |
struct netc_port_psfp_isi_config |
Port ingress stream identification config
Data Fields | |
uint16_t | defaultISEID |
Default Ingress Stream Entry ID, has lower precedence value than ISI entry and IPF entry defined IS_EID. More... | |
bool | enKC1: 1 |
Enable do the second stream identification with key construction rule 1 or rule 3. | |
bool | enKC0: 1 |
Enable do the first stream identification with key construction rule 0 or rule 2. | |
bool | kcPair: 1 |
Indicates which Key Construction pair to use for this port, false - user pair0. More... | |
uint16_t netc_port_psfp_isi_config::defaultISEID |
0xFFFF means NULL
bool netc_port_psfp_isi_config::kcPair |
true - use pair1 only applicable for Switch
struct netc_port_common_t |
Data Fields | |
netc_port_vlan_classify_config_t | acceptTpid |
Port acceptable VLAN tpid configure. More... | |
netc_port_ts_select_t | rxTsSelect |
Eth MAC Rx or pseudo MAC Tx timestamp clock source. | |
uint16_t | pSpeed |
Transmit Port Speed = 10Mbps * (pSpeed+1), Used by ETS, Qbu and to determine if cut-through is permissable. | |
uint8_t | rxMacsecBco |
Port receive MACSec byte count overhead which due to MACSec encapsulation. | |
uint8_t | rxPpduBco |
Port receive PPDU Byte count overhead which includes IPG, SFD and Preamble. | |
uint8_t | txMacsecBco |
Port transmit MACSec byte count overhead which due to MACSec encapsulation. | |
uint8_t | txPpduBco |
Port transmit PPDU Byte count overhead which includes IPG, SFD and Preamble. | |
netc_port_sg_ogc_mode_t | ogcMode: 1 |
Stream Gate Open Gate Check mode, 0b is check whether SFD is within the open gate interval, 1b is check whether the entire frame is within the open gate interval | |
uint32_t | pDelay: 24 |
Link propagation delay in ns. | |
uint8_t | macAddr [6] |
Port MAC address, used for Switch egress frame modification action or ENETC SI0 primary MAC address. | |
netc_port_qos_classify_config_t | qosMode |
Port Rx Qos Classification config. | |
netc_port_ipf_config_t | ipfCfg |
Port ingress port filter configuration. | |
netc_port_tg_config_t | timeGate |
Port Tx time gate config. | |
netc_port_parser_config_t | parser |
Port Rx Parser config. | |
netc_port_vlan_classify_config_t netc_port_common_t::acceptTpid |
enum netc_port_tpidlist_t |
enum netc_tc_sdu_type_t |