Lines Matching +full:0 +full:x2d

27 const uint8_t rom_01_bytes[] = { 0x2d, 0x18, 0x08, 0xf5, 0x2d, 0x00, 0x00, 0x67 };
28 const uint8_t rom_02_bytes[] = { 0x2d, 0x2d, 0xfc, 0xf4, 0x2d, 0x00, 0x00, 0x57 };
29 const uint8_t rom_03_bytes[] = { 0x48, 0xa8, 0xdc, 0xf2, 0xb7, 0x01, 0x30, 0x7e };
31 const uint64_t rom_01_64 = 0x2d1808f52d000067;
32 const uint64_t rom_02_64 = 0x2d2dfcf42d000057;
33 const uint64_t rom_03_64 = 0xa8a8dcf2b701307e;
36 .family = 0x2d,
37 .serial = { 0x18, 0x08, 0xf5, 0x2d, 0x00, 0x00 },
38 .crc = 0x67,
41 .family = 0x2d,
42 .serial = { 0x2d, 0xfc, 0xf4, 0x2d, 0x00, 0x00 },
43 .crc = 0x57,
46 .family = 0xa8,
47 .serial = { 0xa8, 0xdc, 0xf2, 0xb7, 0x01, 0x30 },
48 .crc = 0x7e,
51 const uint8_t crc16_1_in[11] = { 0x0f, 0x00, 0x00, 0xff, 0xee, 0xdd,
52 0xcc, 0xdd, 0xcc, 0xbb, 0xff };
53 const uint16_t crc16_1 = 0x60bb;
54 const uint8_t crc16_2_in[11] = { 0x0f, 0x08, 0x00, 0xaa, 0xbb, 0xcc,
55 0xdd, 0xaa, 0xbb, 0xcc, 0xdd };
56 const uint16_t crc16_2 = 0x8909;
57 const uint8_t crc16_3_in[12] = { 0xaa, 0x00, 0x00, 0x07, 0x00, 0x00,
58 0x00, 0xcc, 0xaa, 0xbb, 0xcc, 0xdd };
59 const uint16_t crc16_3 = 0x5d69;
68 zassert_equal(slave1_family, 0x28, "slave 1 family code not matching"); in ZTEST_USER()
71 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 1"); in ZTEST_USER()
72 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 2"); in ZTEST_USER()
73 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 1"); in ZTEST_USER()
74 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 2"); in ZTEST_USER()
89 zassert_equal(crc8_result, 0, "crc1: crc over complete rom not 0"); in ZTEST_USER()
92 zassert_equal(crc8_result, 0, "crc2: crc over complete rom not 0"); in ZTEST_USER()
161 zassert_false((ret < 0), "w1_reset failed. Err: %d", ret); in ZTEST_USER()
162 zassert_equal(ret, 0, "In case no devices are connected should return 0"); in ZTEST_USER()
179 ret = w1_search_rom(master_dev, w1_test_search_callback, 0); in ZTEST()
180 zassert_equal(ret, 0, "In case no slaves are connected should return 0"); in ZTEST()
181 zassert_equal(found_w1_devices, 0, "No callback exptected"); in ZTEST()
183 ret = w1_search_rom(master_dev, 0, 0); in ZTEST()
184 zassert_equal(ret, 0, "In case no slaves are connected should return 0"); in ZTEST()
186 ret = w1_search_alarm(master_dev, 0, 0); in ZTEST()
187 zassert_equal(ret, 0, "In case no devices are connected should return 0"); in ZTEST()
188 zassert_equal(found_w1_devices, 0, "No callback exptected"); in ZTEST()
195 const uint8_t block_send[8] = { 0x0F, 0x0E, 0x0D, 0x0C, 0xC0, 0xD0, 0xE0, 0xF0 }; in ZTEST_USER()
198 zassert_equal(ret, 0, "write_bit: error: %d", ret); in ZTEST_USER()
200 ret = w1_write_byte(master_dev, 0x3b); in ZTEST_USER()
201 zassert_equal(ret, 0, "write_byte: error: %d", ret); in ZTEST_USER()
204 zassert_equal(ret, 0, "write_block: error: %d", ret); in ZTEST_USER()
211 uint8_t block_rcv[8] = { 0x0F, 0x0E, 0x0D, 0x0C, 0xC0, 0xD0, 0xE0, 0xF0 }; in ZTEST_USER()
212 const uint8_t block_ref[8] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; in ZTEST_USER()
217 zassert_true((ret >= 0), "read_bit: error: %d", ret); in ZTEST_USER()
221 zassert_true((ret >= 0), "read_byte: error: %d", ret); in ZTEST_USER()
222 zassert_equal(ret, 0xFF, "byte: empty receive should be logical 0xFF"); in ZTEST_USER()
225 zassert_equal(ret, 0, "read_block: error: %d", ret); in ZTEST_USER()
227 "block: empty receive should be local all 0xFF"); in ZTEST_USER()
235 const uint8_t block_send[8] = { 0x0F, 0x0E, 0x0D, 0x0C, 0xC0, 0xD0, 0xE0, 0xF0 }; in ZTEST_USER()
236 uint8_t block_rcv[8] = { 0x00 }; in ZTEST_USER()
253 ret = w1_write_read(master_dev, &cfg_1, block_send, 8, block_rcv, 0); in ZTEST_USER()