Home
last modified time | relevance | path

Searched refs:can_dut (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/drivers/can/host/pytest/
Dtest_can.py72 def skip_if_unsupported(can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
75 if can_dut.protocol == CanProtocol.CAN_20:
80 def test_dut_to_host(self, can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
82 self.skip_if_unsupported(can_dut, can_host, msg)
84 can_dut.send(msg, timeout=TIMEOUT)
88 def test_host_to_dut(self, can_dut: BusABC, can_host: BusABC, msg: can.Message) -> None:
90 self.skip_if_unsupported(can_dut, can_host, msg)
93 rx = can_dut.recv(timeout=TIMEOUT)
Dconftest.py55 def can_dut(dut: DeviceAdapter, shell: Shell, chosen: str) -> BusABC: function