Lines Matching full:crc

8 #include <zephyr/sys/crc.h>
9 #include "../../../lib/crc/crc8_sw.c"
10 #include "../../../lib/crc/crc16_sw.c"
11 #include "../../../lib/crc/crc32_sw.c"
12 #include "../../../lib/crc/crc32c_sw.c"
13 #include "../../../lib/crc/crc7_sw.c"
14 #include "../../../lib/crc/crc24_sw.c"
16 ZTEST(crc, test_crc32c) in ZTEST() argument
31 * of one big stream whose CRC needs to be calculated. Note that the in ZTEST()
32 * CRC of the first string is passed over to the second crc calculation, in ZTEST()
43 ZTEST(crc, test_crc32_ieee) in ZTEST() argument
54 ZTEST(crc, test_crc24_pgp) in ZTEST() argument
64 /* Compute a CRC in several steps */ in ZTEST()
70 ZTEST(crc, test_crc16) in ZTEST() argument
74 /* CRC-16/CCITT, CRC-16/CCITT-TRUE, CRC-16/KERMIT in ZTEST()
75 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-kermit in ZTEST()
81 /* CRC-16/DECT-X in ZTEST()
82 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-dect-x in ZTEST()
88 ZTEST(crc, test_crc16_ansi) in ZTEST() argument
94 /* CRC-16/ANSI, CRC-16/MODBUS, CRC-16/USB, CRC-16/IBM in ZTEST()
95 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-modbus in ZTEST()
103 ZTEST(crc, test_crc16_ccitt) in ZTEST() argument
109 uint16_t crc; in ZTEST() local
113 /* CRC-16/CCITT, CRC-16/CCITT-TRUE, CRC-16/KERMIT in ZTEST()
114 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-kermit in ZTEST()
118 /* CRC-16/X-25, CRC-16/IBM-SDLC, CRC-16/ISO-HDLC in ZTEST()
119 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-ibm-sdlc in ZTEST()
125 /* Appending the CRC to a buffer and computing the CRC over in ZTEST()
128 crc = crc16_ccitt(0, test3, sizeof(test3) - sizeof(uint16_t)); in ZTEST()
129 test3[sizeof(test3)-2] = (uint8_t)(crc >> 0); in ZTEST()
130 test3[sizeof(test3)-1] = (uint8_t)(crc >> 8); in ZTEST()
135 ZTEST(crc, test_crc16_ccitt_for_ppp) in ZTEST() argument
154 ZTEST(crc, test_crc16_itu_t) in ZTEST() argument
158 /* CRC-16/XMODEM, CRC-16/ACORN, CRC-16/LTE in ZTEST()
159 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-xmodem in ZTEST()
163 /* CRC16/CCITT-FALSE, CRC-16/IBM-3740, CRC-16/AUTOSAR in ZTEST()
164 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-ibm-3740 in ZTEST()
168 /* CRC-16/GSM in ZTEST()
169 * https://reveng.sourceforge.io/crc-catalogue/16.htm#crc.cat.crc-16-gsm in ZTEST()
176 ZTEST(crc, test_crc8_ccitt) in ZTEST() argument
187 ZTEST(crc, test_crc8_rohc) in ZTEST() argument
204 ZTEST(crc, test_crc7_be) in ZTEST() argument
215 ZTEST(crc, test_crc8) in ZTEST() argument
295 ZTEST_SUITE(crc, NULL, NULL, NULL, NULL, NULL);