Namespace test_flow_control¶
Namespace List > test_flow_control
Public Functions¶
| Type | Name |
|---|---|
| test_flow_control_overflow_sets_protocol_result () Verify overflow FC sets protocol result. |
Protected Functions¶
| Type | Name |
|---|---|
| _fc_frame (flow_status flow_status, block_size block_size, st_min st_min) Build a Flow Control (FC) frame. |
|
| _make_payload (size size) Build a deterministic payload of a given size. |
Public Functions Documentation¶
function test_flow_control_overflow_sets_protocol_result¶
Verify overflow FC sets protocol result.
test_flow_control::test_flow_control_overflow_sets_protocol_result ()
Injects PCI_FLOW_STATUS_OVERFLOW and checks protocol state.
Protected Functions Documentation¶
function _fc_frame¶
Build a Flow Control (FC) frame.
test_flow_control::_fc_frame (
flow_status flow_status,
block_size block_size,
st_min st_min
)
Parameters:
flow_statusFlow status nibble.block_sizeBlock size byte.st_minSTmin byte.
Returns:
CAN frame bytes representing the FC.
Encodes the 0x30 PCI for flow control.
function _make_payload¶
Build a deterministic payload of a given size.
test_flow_control::_make_payload (
size size
)
Parameters:
sizeNumber of bytes to generate.
Returns:
Payload bytes.
Uses a simple modulo pattern for repeatability.
The documentation for this class was generated from the following file tests/integration/test_flow_control.py