HL Link Training Functions
The following high-level functions are for link training.
Modulation Control
- async lt_encoding(port, serdes, encoding)[source]
Ask the remote port to use the encoding of the specified serdes.
- Parameters:
port (
GenericL23Port
) – the port objectserdes (int) – the serdes index, starting from 0
encoding (enums.LinkTrainCoeffs) – link training encoding
- Returns:
- Return type:
None
Preset Control
- async lt_preset(port, serdes, preset)[source]
Ask the remote port to use the preset of the specified serdes.
- Parameters:
port (
GenericL23Port
) – the port objectserdes (int) – the serdes index, starting from 0
preset (enums.LinkTrainPresets) – preset index to select for the serdes, 0,1,2,3,4,
- Returns:
- Return type:
None
Coefficient Control
- async lt_coeff_inc(port, serdes, emphasis)[source]
Ask the remote port to increase coeff of the specified serdes.
- Parameters:
port (
GenericL23Port
) – the port objectserdes (int) – the serdes index, starting from 0
emphasis (enums.LinkTrainCoeffs) – the emphasis to increase
- Returns:
- Return type:
None
- async lt_coeff_dec(port, serdes, emphasis)[source]
Ask the remote port to decrease coeff of the specified serdes.
- Parameters:
port (
GenericL23Port
) – the port objectserdes (int) – the serdes index, starting from 0
emphasis (enums.LinkTrainCoeffs) – the emphasis to decrease
- Returns:
- Return type:
None
- async lt_coeff_no_eq(port, serdes, emphasis)[source]
Ask the remote port to set the coeff to NO_EQ on the specified serdes.
- Parameters:
port (
GenericL23Port
) – the port objectserdes (int) – the serdes index, starting from 0
emphasis (enums.LinkTrainCoeffs) – the emphasis to set to NO_EQ
- Returns:
- Return type:
None