Home
last modified time | relevance | path

Searched refs:crc16_ccitt (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/tests/unit/crc/
Dmain.c111 zassert_equal(crc16_ccitt(0, test0, sizeof(test0)), 0x0); in ZTEST()
112 zassert_equal(crc16_ccitt(0, test1, sizeof(test1)), 0x538d); in ZTEST()
117 zassert_equal(crc16_ccitt(0, test2, sizeof(test2)), 0x2189); in ZTEST()
122 zassert_equal(crc16_ccitt(0xffff, test2, sizeof(test2)) ^ 0xffff, in ZTEST()
128 crc = crc16_ccitt(0, test3, sizeof(test3) - sizeof(uint16_t)); in ZTEST()
132 zassert_equal(crc16_ccitt(0, test3, sizeof(test3)), 0); in ZTEST()
148 zassert_equal(crc16_ccitt(0xffff, test0, sizeof(test0)), in ZTEST()
150 zassert_equal(crc16_ccitt(0xffff, test2, sizeof(test2)) ^ 0xFFFF, in ZTEST()
/Zephyr-latest/tests/net/ppp/driver/src/
Dmain.c278 crc = crc16_ccitt(0xffff, buf->data, buf->len); in check_fcs()
283 crc = crc16_ccitt(crc, buf->data, buf->len); in check_fcs()
370 crc = crc16_ccitt(0xffff, buf->data, buf->len); in calc_fcs()
375 crc = crc16_ccitt(crc, buf->data, buf->len); in calc_fcs()
/Zephyr-latest/include/zephyr/sys/
Dcrc.h173 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len);
414 return crc16_ccitt(seed, src, len); in crc_by_type()
/Zephyr-latest/lib/crc/
Dcrc16_sw.c52 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len) in crc16_ccitt() function
/Zephyr-latest/drivers/net/
Dppp.c597 crc = crc16_ccitt(0xffff, buf->data, buf->len); in ppp_check_fcs()
602 crc = crc16_ccitt(crc, buf->data, buf->len); in ppp_check_fcs()
775 crc = crc16_ccitt(0xffff, (const uint8_t *)&c, sizeof(c)); in calc_fcs()
778 crc = crc16_ccitt(crc, (const uint8_t *)&protocol, in calc_fcs()
783 crc = crc16_ccitt(crc, buf->data, buf->len); in calc_fcs()
/Zephyr-latest/subsys/settings/src/
Dsettings_nvs.c82 uint16_t name_hash = crc16_ccitt(0xffff, name, strlen(name)); in settings_nvs_cache_add()
93 uint16_t name_hash = crc16_ccitt(0xffff, name, strlen(name)); in settings_nvs_cache_match()
/Zephyr-latest/tests/subsys/modem/modem_ppp/src/
Dmain.c216 fcs = crc16_ccitt(0xFFFF, &byte, 0x01); in test_modem_ppp_generate_ppp_frame()
226 fcs = crc16_ccitt(fcs, frame, size) ^ 0xFFFF; in test_modem_ppp_generate_ppp_frame()
/Zephyr-latest/subsys/modem/
Dmodem_ppp.c24 return crc16_ccitt(0xFFFF, &byte, 1); in modem_ppp_fcs_init()
29 return crc16_ccitt(fcs, &byte, 1); in modem_ppp_fcs_update()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx_subg.c348 crc = crc16_ccitt(0, sdu, len); in drv_rx_done()