Data Sheet

Table Of Contents
42
4.3 PD_SendCorruptedPacket
Sends a packet towards the Unit Under Test which is corrupted intentionally.
Format
Call PD_SendCorruptedPacket( PD_Packet $send_payload,
PD_SendCorruptedPacketSettings $send_settings )
Parameters
$send_payload
The payload to be sent. Refer to Packet Templates for available packet templates.
$send_settings
Settings for sending the corrupted payload. Setting type is PD_SendCorruptedPacketSettings:
Field Name
Description
PreambleBitLen
Indicates the length of Preamble in bit.
Default: 0x40
NoPreamble
Indicates whether to insert the Preamble or not.
Default: PD_FALSE
OrderedsetType
Indicates the ordered-set type.
Possible values:
PD_ORDERED_SET_TYPE_SOP(default),
PD_ORDERED_SET_TYPE_SOP_PRIME,
PD_ORDERED_SET_TYPE_SOP_DOUBLE_PRIME,
PD_ORDERED_SET_TYPE_SOP_PRIME_DEBUG,
PD_ORDERED_SET_TYPE_SOP_DOUBLE_PRIME_DEBUG,
PD_ORDERED_SET_TYPE_HARDRESET,
PD_ORDERED_SET_TYPE_CABLERESET,
PD_ORDERED_SET_TYPE_INVALID
CorruptedOrderedset
If OrderedsetType field is PD_ORDERED_SET_TYPE_INVALID
then content of this field will be replaced with ordered-set in the
sent packet.
Default: 0x00
NoCrc
Indicates whether to insert Crc in the packet or not.
Default: PD_FALSE
CorruptCrc4b
Indicates whether to corrupt Crc before 5-bit encoding or not.
Default: PD_FALSE
CorruptCrc5b
Indicates whether to corrupt Crc after 5-bit encoding or not.
Default: PD_FALSE
CorruptCrc5bSymbolIndex
Indicates the symbol index (starting from 0) of 5-bit encoded Crc
data to be corrupted (e.g. index 0 will corrupt the first 5-bit symbol
in Crc data). This field will be processed if CorruptCrc5b is
PD_TRUE.
Default: 0x00
CorruptCrc5bSymbolValue
Indicates the corrupted 5-bit symbol to be replaced with the 5-bit
symbol indicated by CorruptCrc5bSymbolIndex. Will be
processed if CorruptCrc5b is PD_TRUE.
Default: 0x00
CorruptPayload4b
Indicates whether to corrupt Payload before 5-bit encoding or not.
Default: PD_FALSE
CorruptPayload5b
Indicates whether to corrupt Payload after 5-bit encoding or not.
Default: PD_FALSE
CorruptPayload4bBitOffset
Indicates the bit offset of Payload (before 5-bit encoding) to get as
the first data bit being corrupted (e.g. bit offset 0x08 means: get
the Payload data corrupted starting from offset 0x08). This field
will be processed if CorruptPayload4b is PD_TRUE.
Default: 0x00
CorruptPaylaod4bBitLen
Indicates the bit length of Payload (before 5-bit encoding) to get
corrupted.(e.g. bit length 0x03 means: corrupt Payload( before 5-