Simon Albinsson
561d4bd1c4
mock_smbus:canged smbus import to python3style
2018-04-22 19:54:17 +00:00
Simon Albinsson
9292f4e17e
Adds timing to mock-bus
...
I dont know if it is a limitation of i2cwr or the sgp but it dosnt seem
to clock-strech but rahter just not present any data if the messure ment
is not done, so timing is important. The test should now fail if data is
read to fast
2018-04-16 12:39:39 +00:00
Simon Albinsson
e82bdb3a5b
Fixes some comments and messages
2018-04-12 22:50:42 +00:00
Simon Albinsson
d1bfc5ed3e
Test: Load/save baseline
2018-04-12 22:45:42 +00:00
Simon Albinsson
1a25064710
Test: i2c-read now protects agains double reads
2018-04-12 21:51:59 +00:00
Simon Albinsson
17e8468f58
test: naive test of crc
2018-04-12 21:40:17 +00:00
Simon Albinsson
d803d31af5
test:fixes bug in CRC-coruption routine
2018-04-12 21:38:29 +00:00
Simon Albinsson
5c6086d0e2
Test:adds support for breaking crc
2018-04-12 21:22:14 +00:00
Simon Albinsson
100b410a1d
Test: Test i2c_generalcall
2018-04-12 21:02:57 +00:00
Simon Albinsson
3599889c8d
Test: adds support for testing i2c reads
2018-04-12 20:48:26 +00:00
Simon Albinsson
9ec514ff92
adding basic tests for smbus
2018-04-12 19:49:43 +00:00
Simon Albinsson
ceb161c6a8
adds tests for crc
2018-04-12 15:32:43 +00:00