This group of functions covers VSE capability to work with USB4 Tunneled Protocols for USB4 HS Tunneled Packets.
SetUsb4TunneledProtocol()
Depricated; use SetUsb4TunProtocol() instead.
SetUsb4TunProtocol()
By default, the assignments in the Decoding Settings are used in VSE. Use this function to override it with a new Tunneled Protocol, Generation, and Link Width to a HopID/Channel.
This function does not change the assignments in Decoding Settings.
SetUsb4TunProtocol ( hop_id, channel, tunneled_protocol, gen_type, link_width )
|
Parameters |
|||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
hop_id |
HopID value of tunneled packet from TLP Header |
||||||||||||||||||
|
channel |
Channel number of current packet. May be one of the values from the list of constants for in.Channel |
||||||||||||||||||
|
tunneled_protocol |
May be one of the values shown below:
|
||||||||||||||||||
|
gen_type |
May be one of the values shown below. Currently, this field is only applied to Tunneled USB.
|
||||||||||||||||||
|
link_width |
May be one of the values in table below. Currently, this field is only applied to Tunneled USB.
|
||||||||||||||||||
Return Values
If channel number is not valid and hence protocol assignment can not be set, the function returns 0. In all other cases it returns 1.
Example
SetUsb4TunProtocol(8, _USB4_HS_ANALYZER_LEFT, _USB4_TUN_USB, _USB4_TUN_USB3_GEN_T, _LINK_WIDTH_X2);
SetUsb4TunProtocol(9, _USB4_HS_ANALYZER_LEFT, _USB4_TUN_PCIE, 0, _LINK_WIDTH_UNKNOWN);
GetUsb4TunneledProtocol()
Get the assigned USB4 Tunneled Protocol to a specified HopID and channel.
GetUsb4TunneledProtocol( hop_id, channel, tunneled_protocol )
|
Parameters |
|
|---|---|
|
hop_id |
HopID value of tunneled packet from TLP Header |
|
channel |
Channel number of current packet. May be one of the values from the list of constants for in.Channel |
Return Values
May return one of the values from the list of constants for USB4 Tunneled Protocols (see SetUsb4TunProtocol()).
Example
if(in.TraceEvent == _USB4_HS_TUNNELED_PKT)
{
protocol = GetUsb4TunneledProtocol(in.Header_HopID, in.Channel);
}