Cfg.dec – Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual
Page 66
File-based Decoding User Manual
60
LeCroy Corporation
cfg.dec
Description: cfg.dec is a configuration data script decoder.
Input Data Fields
in.Channel: Direction of the traffic: 0 = Upstream, 1 = Downstream. The following
constants are defined for the possible values:
•
_CHANNEL_UPSTREAM
•
_CHANNEL_DOWNSTREAM
in.Speed: Speed of the traffic: 0 = 2.5 GT/s, 1 = 5.0 GT/s, 2 = 8.0 GT/s. The following
constants are defined for the possible values:
•
_SPEED_GEN1
•
_SPEED_GEN2
•
_SPEED_GEN3
in.LinkWidth: LinkWidth of the traffic: 1, 2, 4, 8, 16. Represents the number of lanes on
the link.
in.Data: Data block to decode
in.DataLength: Length of data block in bytes
in.PrepareFldsForDlg: If not 0, means that script should prepare decoded fields for
presenting them in a special dialog.
in.Type: Request type:
•
_TLP_TYPE_ID_CFGRD_0
•
_TLP_TYPE_ID_CFGRD_1
•
_TLP_TYPE_ID_CFGWR_0
•
_TLP_TYPE_ID_CFGWR_1
in.FirstByteEnabled: Index of first enabled byte in data block
in.EnabledByteCount: Number of enabled bytes in data block
in.DeviceID: Device ID
in.Register: Configuration space address
in.TC: TC (Traffic Class) field of TLP header
in.Tag: Tag field of TLP header
in.RequesterID: RequesterID field of TLP header
in.Attr: Attr field of TLP header
in.Length: Length field of TLP header
in.TD: TD (Transport Digest) field of TLP header
in.EP: EP (End-to-end Poisoning) field of TLP header
in.CompleterID: ID of the completer that completed the transaction
in.HeaderData: Packet header data bytes, without any formatting or transformation.
This field is available on all levels: Packet, Link, Split, and NVM.
in.HeaderDataLength: Length of packet header data in bytes. This field is available on
all levels: Packet, Link, Split, and NVM.
Output Data Fields
out.Decoded: Amount of data (in bytes) that has been decoded