Lines Matching +full:disable +full:- +full:rx
3 # SPDX-License-Identifier: Apache-2.0
15 # RX/TX timeout in seconds
55 Class for testing CAN RX/TX between Zephyr DUT and host.
59 def check_rx(tx: can.Message, rx: can.Message) -> None:
61 # pylint: disable-next=unused-variable
64 if rx is None:
67 if not tx.equals(rx, timestamp_delta=None, check_channel=False,
69 pytest.fail(f'rx message "{rx}" not equal to tx message "{tx}"')
72 def skip_if_unsupported(can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
80 def test_dut_to_host(self, can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
85 rx = can_host.recv(timeout=TIMEOUT)
86 self.check_rx(msg, rx)
88 def test_host_to_dut(self, can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
93 rx = can_dut.recv(timeout=TIMEOUT)
94 self.check_rx(msg, rx)