Lines Matching refs:fcs
217 uint8_t fcs, expected; in ZTEST() local
226 fcs = crc8(test0, sizeof(test0), 0x00, 0x00, false); in ZTEST()
228 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
230 fcs = crc8(test0, sizeof(test0), 0x31, 0x00, false); in ZTEST()
232 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
234 fcs = crc8(test1, sizeof(test1), 0x07, 0x00, false); in ZTEST()
236 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
238 fcs = crc8(test1, sizeof(test1), 0x31, 0xff, false); in ZTEST()
240 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
242 fcs = crc8(test1, sizeof(test1), 0x07, 0x00, false); in ZTEST()
244 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
246 fcs = crc8(test2, sizeof(test2), 0x31, 0x00, false); in ZTEST()
248 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
250 fcs = crc8(test2, sizeof(test2), 0x31, 0xff, false); in ZTEST()
252 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
254 fcs = crc8(test2, sizeof(test2), 0x07, 0x00, false); in ZTEST()
256 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
258 fcs = crc8(test2, sizeof(test2), 0x07, 0xff, false); in ZTEST()
260 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
262 fcs = crc8(test2, sizeof(test2), 0xe0, 0xff, true); in ZTEST()
264 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
266 fcs = crc8(test3, sizeof(test3), 0xe0, 0xff, true); in ZTEST()
268 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
270 fcs = crc8(test3, sizeof(test3), 0x07, 0xff, false); in ZTEST()
272 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
274 fcs = crc8(test4, sizeof(test4), 0x31, 0x00, false); in ZTEST()
276 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
278 fcs = crc8(test4, sizeof(test4), 0x07, 0x00, false); in ZTEST()
280 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
282 fcs = crc8(test4, sizeof(test4), 0x9b, 0xff, false); in ZTEST()
284 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
286 fcs = crc8(test4, sizeof(test4), 0x1d, 0xfd, false); in ZTEST()
288 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()
290 fcs = crc8(test5, sizeof(test5), 0xe0, 0xff, true); in ZTEST()
292 zassert_equal(fcs, expected, "0x%02x vs 0x%02x", fcs, expected); in ZTEST()