Searched refs:cal_checksum (Results 1 – 2 of 2) sorted by relevance
86 static uint8_t cal_checksum(const uint8_t *const buffer, const uint16_t size) in cal_checksum() function205 tx_header->checksum = cal_checksum((uint8_t *)tx_header, TX_HEADER_SIZE); in send_status_response()238 if (cal_checksum((uint8_t *)rx_header, rx_valid_data_size) != 0) { in verify_rx()281 tx_header->checksum = cal_checksum(tx->buf, tx_valid_data_size); in prepare_response()
24 static uint8_t cal_checksum(const uint8_t *const buffer, const uint16_t size) in cal_checksum() function92 cmd->checksum = cal_checksum((uint8_t *)cmd, CMD_HEADER_SIZE + sizeof(*cmd_data)); in prepare_hello_cmd()119 rsp->checksum = cal_checksum(tx_buf, sizeof(tx_buf)); in test_hello()