Lines Matching full:crc
18 #include <zephyr/sys/crc.h>
362 uint16_t crc; in mcumgr_dummy_process_frag() local
417 crc = mcumgr_dummy_calc_crc(rx_ctxt->nb->data, rx_ctxt->nb->len); in mcumgr_dummy_process_frag()
418 if (crc != 0U) { in mcumgr_dummy_process_frag()
423 /* Packet is complete; strip the CRC. */ in mcumgr_dummy_process_frag()
447 uint16_t crc; in mcumgr_dummy_process_frag_outgoing() local
502 crc = mcumgr_dummy_calc_crc(tx_ctxt->nb->data, tx_ctxt->nb->len); in mcumgr_dummy_process_frag_outgoing()
503 if (crc != 0U) { in mcumgr_dummy_process_frag_outgoing()
508 /* Packet is complete; strip the CRC. */ in mcumgr_dummy_process_frag_outgoing()
538 * include a header or CRC.
542 * @param crc The 16-bit CRC of the entire packet.
550 uint16_t crc, mcumgr_serial_tx_cb cb, in mcumgr_dummy_tx_frame() argument
577 u16 = sys_cpu_to_be16(len + 2); /* Bug fix to account for CRC */ in mcumgr_dummy_tx_frame()
597 * and send the CRC. in mcumgr_dummy_tx_frame()
601 raw[0] = (crc & 0xff00) >> 8; in mcumgr_dummy_tx_frame()
602 raw[1] = crc & 0x00ff; in mcumgr_dummy_tx_frame()
614 raw[1] = (crc & 0xff00) >> 8; in mcumgr_dummy_tx_frame()
615 raw[2] = crc & 0x00ff; in mcumgr_dummy_tx_frame()
628 raw[2] = (crc & 0xff00) >> 8; in mcumgr_dummy_tx_frame()
634 raw[0] = crc & 0x00ff; in mcumgr_dummy_tx_frame()
663 uint16_t crc; in mcumgr_dummy_tx_pkt() local
668 /* Calculate CRC of entire packet. */ in mcumgr_dummy_tx_pkt()
669 crc = mcumgr_dummy_calc_crc(data, len); in mcumgr_dummy_tx_pkt()
677 crc, cb, in mcumgr_dummy_tx_pkt()