Searched refs:crc (Results 1 – 2 of 2) sorted by relevance
/nrf_hw_models-3.4.0/src/HW_models/ |
D | crc.c | 85 static uint32_t crc_update_ble(uint32_t crc, const void *data, size_t data_len) in crc_update_ble() argument 91 tbl_idx = (crc ^ *d) & 0xff; in crc_update_ble() 92 crc = (crc_table_24_ble[tbl_idx] ^ (crc >> 8)) & 0xffffff; in crc_update_ble() 96 return crc & 0xffffff; in crc_update_ble() 106 uint32_t crc; in append_crc_ble() local 107 crc = crc_update_ble( rev_24(crc_init), buf, len ); in append_crc_ble() 111 buf[len + i] = (crc >> (i*8)) & 0xff; in append_crc_ble() 162 uint16_t crc_update_154(uint16_t crc, const void *data, size_t data_len) in crc_update_154() argument 168 tbl_idx = (crc ^ *d) & 0xff; in crc_update_154() 169 crc = (crc_table_154[tbl_idx] ^ (crc >> 8)) & 0xffff; in crc_update_154() [all …]
|
D | NRF_RADIO.c | 793 uint32_t crc = 0; in Rx_handle_end_response() local 798 memcpy((void*)&crc, &rx_buf[2 + payload_len], crc_len); in Rx_handle_end_response() 801 memcpy((void*)&crc, &rx_buf[1 + payload_len], crc_len); in Rx_handle_end_response() 804 NRF_RADIO_regs.RXCRC = crc; in Rx_handle_end_response()
|