Lines Matching full:crc
12 #include <zephyr/sys/crc.h>
73 uint16_t crc; in mcumgr_serial_process_frag() local
132 crc = mcumgr_serial_calc_crc(rx_ctxt->nb->data, rx_ctxt->nb->len); in mcumgr_serial_process_frag()
133 if (crc != 0U) { in mcumgr_serial_process_frag()
138 /* Packet is complete; strip the CRC. */ in mcumgr_serial_process_frag()
167 * CRC.
179 uint16_t crc; in mcumgr_serial_tx_pkt() local
194 crc = mcumgr_serial_calc_crc(data, len); in mcumgr_serial_tx_pkt()
229 * in the two byte CRC. The frame can not be stretched and current logic does not in mcumgr_serial_tx_pkt()
230 * allow to send CRC separately so if CRC would not fit as a whole, shrink in mcumgr_serial_tx_pkt()
231 * to_process by one byte forcing one byte to the next frame, with the CRC. in mcumgr_serial_tx_pkt()
268 * three byte chunks, and CRC. in mcumgr_serial_tx_pkt()
272 raw[0] = (crc & 0xff00) >> 8; in mcumgr_serial_tx_pkt()
273 raw[1] = crc & 0x00ff; in mcumgr_serial_tx_pkt()
280 raw[1] = (crc & 0xff00) >> 8; in mcumgr_serial_tx_pkt()
281 raw[2] = crc & 0x00ff; in mcumgr_serial_tx_pkt()
289 raw[2] = (crc & 0xff00) >> 8; in mcumgr_serial_tx_pkt()
295 raw[0] = crc & 0x00ff; in mcumgr_serial_tx_pkt()