2015-05-28 06:06:12 -04:00
|
|
|
ValueError -1
|
|
|
|
ValueError 0
|
|
|
|
CAN 1
|
|
|
|
ValueError 3
|
2014-10-30 19:13:53 -04:00
|
|
|
CAN(1)
|
2018-03-19 00:15:39 -04:00
|
|
|
True
|
2022-04-02 07:14:33 -04:00
|
|
|
CAN(1, CAN.LOOPBACK, auto_restart=False)
|
2014-10-02 12:30:28 -04:00
|
|
|
False
|
|
|
|
True
|
2018-03-19 00:15:39 -04:00
|
|
|
[0, 0, 0, 0, 0, 0, 0, 0]
|
|
|
|
True [0, 0, 0, 0, 0, 0, 1, 0]
|
2022-04-02 07:14:33 -04:00
|
|
|
(123, False, False, 0, b'abcd')
|
|
|
|
(2047, False, False, 0, b'abcd')
|
|
|
|
(0, False, False, 0, b'abcd')
|
2014-10-30 18:13:26 -04:00
|
|
|
passed
|
2022-04-02 07:14:33 -04:00
|
|
|
[42, False, False, 0, <memoryview>] 0 bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
|
|
|
|
[42, False, False, 0, <memoryview>] 4 bytearray(b'1234\x00\x00\x00\x00\x00\x00')
|
|
|
|
[42, False, False, 0, <memoryview>] 8 bytearray(b'01234567\x00\x00')
|
|
|
|
[42, False, False, 0, <memoryview>] 3 bytearray(b'abc34567\x00\x00')
|
2018-03-19 00:15:39 -04:00
|
|
|
b'abc'
|
|
|
|
b'def'
|
|
|
|
TypeError
|
|
|
|
ValueError
|
|
|
|
TypeError
|
|
|
|
ValueError
|
|
|
|
ValueError
|
2022-04-02 07:14:33 -04:00
|
|
|
==== TEST extframe=True ====
|
|
|
|
CAN(1, CAN.LOOPBACK, auto_restart=False)
|
2014-10-30 18:13:26 -04:00
|
|
|
passed
|
2022-04-02 07:14:33 -04:00
|
|
|
('0x8', '0x1c', '0xa', True, b'ok')
|
|
|
|
('0x800', '0x1c00', '0xa00', True, b'ok')
|
|
|
|
('0x80000', '0x1c0000', '0xa0000', True, b'ok')
|
|
|
|
('0x8000000', '0x1c000000', '0xa000000', True, b'ok')
|
|
|
|
==== TEST rx callbacks ====
|
2015-01-15 17:16:57 -05:00
|
|
|
cb0
|
|
|
|
pending
|
|
|
|
cb0
|
|
|
|
full
|
|
|
|
cb0a
|
|
|
|
overflow
|
|
|
|
cb1
|
|
|
|
pending
|
|
|
|
cb1
|
|
|
|
full
|
|
|
|
cb1a
|
|
|
|
overflow
|
2022-04-02 07:14:33 -04:00
|
|
|
(1, False, False, 0, b'11111111')
|
|
|
|
(2, False, False, 1, b'22222222')
|
|
|
|
(4, False, False, 3, b'44444444')
|
|
|
|
(5, False, False, 0, b'55555555')
|
|
|
|
(6, False, False, 1, b'66666666')
|
|
|
|
(8, False, False, 3, b'88888888')
|
2015-01-15 17:16:57 -05:00
|
|
|
cb0a
|
|
|
|
pending
|
|
|
|
cb1a
|
|
|
|
pending
|
2022-04-02 07:14:33 -04:00
|
|
|
(1, False, False, 0, b'11111111')
|
|
|
|
(5, False, False, 0, b'55555555')
|
|
|
|
==== TEST async send ====
|
2015-04-16 18:52:43 -04:00
|
|
|
False
|
2022-04-02 07:14:33 -04:00
|
|
|
(1, False, False, 0, b'abcde')
|
2015-04-16 18:52:43 -04:00
|
|
|
passed
|
2022-04-02 07:14:33 -04:00
|
|
|
(2, False, False, 0, b'abcde')
|
|
|
|
(3, False, False, 0, b'abcde')
|
|
|
|
(4, False, False, 0, b'abcde')
|
|
|
|
==== TEST rtr messages ====
|
2015-04-17 15:15:26 -04:00
|
|
|
False
|
2022-04-02 07:14:33 -04:00
|
|
|
(5, False, True, 4, b'')
|
|
|
|
(6, False, True, 5, b'')
|
|
|
|
(7, False, True, 6, b'')
|
2015-04-17 15:15:26 -04:00
|
|
|
False
|
2022-04-02 07:14:33 -04:00
|
|
|
(32, False, True, 9, b'')
|
|
|
|
==== TEST errors ====
|
2019-12-13 00:43:17 -05:00
|
|
|
OSError(110,)
|