Home
last modified time | relevance | path

Searched full:checksum (Results 1 – 25 of 154) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt_hash_checksum.h20 * @brief Function that gets called to generate a hash or checksum.
23 * @param output Output buffer for hash/checksum
25 * @param len Maximum length of data to perform hash/checksum on
33 * @brief A collection of handlers for an entire hash/checksum group.
48 /** Hash/checksum function pointer. */
53 * @brief Function that gets called with hash/checksum details
55 * @param group Details about a supported hash/checksum
62 * @brief Registers a full hash/checksum group.
69 * @brief Unregisters a full hash/checksum group.
76 * @brief Finds a registered hash/checksum handler.
[all …]
/Zephyr-latest/dts/bindings/retention/
Dzephyr,retention.yaml6 64-byte area with 2-byte prefix and 1-byte checksum with 61 usable bytes
26 checksum = <1>;
47 prefix and checksum (if enabled).
59 checksum:
61 An optional data verification checksum, which indicates that the data is
64 16-bit CRC, 4 for 32-bit CRC). Default is to not use a checksum.
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/
DKconfig102 bool "Checksum/hash MCUmgr functions"
104 Enable this to support the hash/checksum MCUmgr functionality,
105 individual checksum and hash types need to be enabled below.
107 from the file being read and generate the output hash/checksum.
112 int "Checksum calculation buffer size"
116 Chunk size of buffer to use when calculating file checksum or hash
120 bool "IEEE CRC32 checksum support"
124 Enable IEEE CRC32 checksum support for MCUmgr.
134 bool "Supported hash/checksum command"
137 Enable the supported hash/checksum command which will return details on
[all …]
/Zephyr-latest/drivers/ethernet/dwc_xgmac/
DKconfig53 bool "RX checksum offload"
56 Enable receive checksum offload for TCP/UDP/IP packets
59 bool "TX checksum offload"
62 Enable transmit checksum offload for TCP/UDP/IP packets
/Zephyr-latest/drivers/gnss/
Dgnss_nmea0183.h13 * @brief Compute NMEA0183 checksum
17 * @param str String from which checksum is computed
19 * @retval checksum
33 * @retval checksum
38 * @brief Computes and validates checksum
40 * @param argv Array of arguments split by ',' including message id and checksum
107 * @param argv Array of arguments split by ',' including message id and checksum
123 * @param argv Array of arguments split by ',' including message id and checksum
150 * @param argv Array of arguments split by ',' including message id and checksum
166 * @param argv Array of arguments split by ',' including message id and checksum
Dgnss_nmea0183.c113 uint8_t checksum = 0; in gnss_nmea0183_checksum() local
120 checksum = checksum ^ str[i]; in gnss_nmea0183_checksum()
123 return checksum; in gnss_nmea0183_checksum()
129 uint8_t checksum; in gnss_nmea0183_snprintk() local
156 checksum = gnss_nmea0183_checksum(&str[1]); in gnss_nmea0183_snprintk()
157 pos = snprintk(&str[pos], size - pos, "*%02X", checksum); in gnss_nmea0183_snprintk()
250 uint8_t checksum = 0; in gnss_nmea0183_validate_message() local
255 /* Message must contain message id and checksum */ in gnss_nmea0183_validate_message()
260 /* First argument should start with '$' which is not covered by checksum */ in gnss_nmea0183_validate_message()
267 checksum ^= argv[0][u]; in gnss_nmea0183_validate_message()
[all …]
/Zephyr-latest/subsys/retention/
Dretention.c24 #define INST_HAS_CHECKSUM(n) DT_INST_PROP(n, checksum) ||
177 /* If neither the header or checksum are enabled, return a not supported error */ in retention_is_valid()
219 /* Check the checksum validity, for this all the data must be read out */ in retention_is_valid()
220 uint32_t checksum = 0; in retention_is_valid() local
224 rc = retention_checksum(dev, &checksum); in retention_is_valid()
252 if (checksum != expected_checksum) { in retention_is_valid()
329 /* Generating a checksum requires reading out all the data in the region */ in retention_write()
330 uint32_t checksum = 0; in retention_write() local
332 rc = retention_checksum(dev, &checksum); in retention_write()
339 uint8_t output_checksum = (uint8_t)checksum; in retention_write()
[all …]
/Zephyr-latest/drivers/sensor/silabs/si7055/
DKconfig17 bool "SI7055 Checksum On Measurement"
19 Validates the additional checksum byte for temperature measurements.
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/include/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt_hash_checksum_crc32.h17 * @brief Registers the IEEE CRC32 checksum mcumgr handler.
22 * @brief Un-registers the IEEE CRC32 checksum mcumgr handler.
/Zephyr-latest/scripts/coredump/gdbstubs/
Dgdbstub.py42 checksum = 0
56 checksum += ord(ch)
59 # Get checksum (2-bytes)
65 if (checksum % 256) == in_chksum:
73 logger.debug(f"NACK (checksum {in_chksum} != {checksum}")
83 checksum = 0
85 checksum += d
89 checksum = checksum % 256
90 pkt += format(checksum, "02X").encode()
/Zephyr-latest/drivers/sensor/fcx_mldx5/
Dfcx_mldx5.c91 [FCX_MLDX5_ERROR_CHECKSUM] = "checksum",
108 uint8_t checksum; in fcx_mldx5_calculate_checksum() local
115 checksum = buf[0]; in fcx_mldx5_calculate_checksum()
117 checksum ^= buf[i]; in fcx_mldx5_calculate_checksum()
120 return checksum; in fcx_mldx5_calculate_checksum()
152 uint8_t checksum; in fcx_mldx5_frame_verify() local
173 /* cmd and data bytes are used to calculate checksum */ in fcx_mldx5_frame_verify()
174 checksum = fcx_mldx5_calculate_checksum(command_received, in fcx_mldx5_frame_verify()
178 if (checksum != checksum_received) { in fcx_mldx5_frame_verify()
179 LOG_ERR("Expected checksum 0x%02x not 0x%02x", checksum, checksum_received); in fcx_mldx5_frame_verify()
[all …]
/Zephyr-latest/drivers/sensor/seeed/hm330x/
Dhm330x.c41 uint8_t checksum = 0; in hm330x_sample_fetch() local
55 checksum += buf[i]; in hm330x_sample_fetch()
57 if (checksum != buf[HM330X_FRAME_LEN - 1]) { in hm330x_sample_fetch()
58 LOG_ERR("Checksum error"); in hm330x_sample_fetch()
/Zephyr-latest/doc/services/
Dmisc.rst8 .. doxygengroup:: checksum
11 Checksum APIs
/Zephyr-latest/include/zephyr/sys/
Dcrc.h43 * @defgroup checksum Checksum
49 * @ingroup checksum
143 * @brief Compute the checksum of a buffer with polynomial 0x1021, reflecting
176 * @brief Compute the checksum of a buffer with polynomial 0x1021, no
229 * @brief Generate IEEE conform CRC32 checksum.
240 * @brief Update an IEEE conforming CRC32 checksum.
242 * @param crc CRC32 checksum that needs to be updated.
252 * @brief Calculate CRC32C (Castagnoli) checksum.
254 * @param crc CRC32C checksum that needs to be updated.
294 * @brief Compute the CRC-7 checksum of a buffer.
[all …]
/Zephyr-latest/doc/services/retention/
Dindex.rst19 checksum (1, 2, or 4-bytes in size) of the stored data can be appended to the
24 accessed or updated independently. The prefix and checksum can be set
60 * checksum, this means that the usable
71 /* This uses a 1-byte checksum */
72 checksum = <1>;
83 * includes the prefix and checksum,
95 * checksum
120 When the write function is called, the magic header and checksum (if enabled)
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/
Dmain.c68 host_to_dut->header.checksum = 0; in update_host_to_dut_checksum()
70 uint8_t checksum = 0; in update_host_to_dut_checksum() local
75 checksum += host_to_dut_buffer[i]; in update_host_to_dut_checksum()
77 host_to_dut->header.checksum = (uint8_t)(-checksum); in update_host_to_dut_checksum()
85 expected_dut_to_host->header.checksum = 0; in update_dut_to_host_checksum()
87 uint8_t checksum = 0; in update_dut_to_host_checksum() local
90 checksum += expected_dut_to_host_buffer[i]; in update_dut_to_host_checksum()
93 expected_dut_to_host->header.checksum = (uint8_t)(-checksum); in update_dut_to_host_checksum()
274 /* Set an invalid checksum */ in ZTEST()
275 host_to_dut->header.checksum = 42; in ZTEST()
/Zephyr-latest/drivers/sensor/a01nyub/
Da01nyub.c69 uint8_t checksum; in a01nyub_poll_data() local
71 checksum = a01nyub_checksum(data->rd_data); in a01nyub_poll_data()
72 if (checksum != data->rd_data[A01NYUB_CHECKSUM_IDX]) { in a01nyub_poll_data()
73 LOG_DBG("Checksum mismatch: calculated 0x%x != data checksum 0x%x", in a01nyub_poll_data()
74 checksum, in a01nyub_poll_data()
/Zephyr-latest/doc/services/storage/fcb/
Dfcb.rst20 the entry, and checksum over the entry contents.
36 don't have a valid checksum.
49 entry by calculating the checksum.
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub.c193 uint8_t checksum = 0; in gdb_send_packet() local
198 /* Send packet data and calculate checksum */ in gdb_send_packet()
200 checksum += *data; in gdb_send_packet()
204 /* Send the checksum */ in gdb_send_packet()
207 if (gdb_bin2hex(&checksum, 1, buf, sizeof(buf)) == 0) { in gdb_send_packet()
226 * @retval -1 Checksum error
232 uint8_t expected_checksum, checksum = 0; in gdb_get_packet() local
236 checksum = 0; in gdb_get_packet()
257 checksum += ch; in gdb_get_packet()
263 /* Get checksum now */ in gdb_get_packet()
[all …]
/Zephyr-latest/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c88 uint8_t checksum = 0; in cal_checksum() local
91 checksum += buffer[i]; in cal_checksum()
93 return (uint8_t)(-checksum); in cal_checksum()
204 tx_header->checksum = 0; in send_status_response()
205 tx_header->checksum = cal_checksum((uint8_t *)tx_header, TX_HEADER_SIZE); in send_status_response()
237 /* Validate checksum */ in verify_rx()
279 /* Calculate checksum */ in prepare_response()
280 tx_header->checksum = 0; in prepare_response()
281 tx_header->checksum = cal_checksum(tx->buf, tx_valid_data_size); in prepare_response()
/Zephyr-latest/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c72 /* Checksum of data so far */
73 uint16_t checksum; member
102 /* Checksum */
103 uint16_t checksum; member
216 * @brief Callback to calculate checksum.
230 backend_ctx.checksum += buf[i]; in cb_calc_buf_checksum()
273 backend_ctx.checksum = 0; in process_stored_dump()
279 ret = (backend_ctx.checksum == hdr.checksum) ? 1 : 0; in process_stored_dump()
423 backend_ctx.checksum = 0; in coredump_flash_backend_start()
477 hdr.checksum = backend_ctx.checksum; in coredump_flash_backend_end()
[all …]
/Zephyr-latest/drivers/sensor/ti/bq274xx/
Dbq274xx.c173 uint8_t checksum = 0; in bq274xx_write_block() local
189 checksum += block[i]; in bq274xx_write_block()
191 checksum = 0xff - checksum; in bq274xx_write_block()
193 ret = i2c_reg_write_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, checksum); in bq274xx_write_block()
195 LOG_ERR("Failed to update block checksum"); in bq274xx_write_block()
270 uint8_t val, checksum; in bq27427_ccgain_quirk() local
298 ret = i2c_reg_read_byte_dt(&config->i2c, BQ274XX_EXT_CHECKSUM, &checksum); in bq27427_ccgain_quirk()
300 LOG_ERR("Failed to read block checksum"); in bq27427_ccgain_quirk()
304 /* Flip the sign bit on both value and checksum. */ in bq27427_ccgain_quirk()
306 checksum ^= BQ27427_CC_GAIN_SIGN_BIT; in bq27427_ccgain_quirk()
[all …]
/Zephyr-latest/cmake/modules/
Dkconfig.cmake266 # Sorting the variable names will make checksum calculation more stable.
331 # Calculate a checksum of merge_config_files to determine if we need
335 file(MD5 ${f} checksum)
336 set(merge_config_files_checksum "${merge_config_files_checksum}${checksum}")
339 # Create a new .config if it does not exists, or if the checksum of
341 set(merge_config_files_checksum_file ${PROJECT_BINARY_DIR}/.cmake.dotconfig.checksum)
343 # Check if the checksum file exists too before trying to open it, though it
346 # Read out what the checksum was previously
355 # Checksum is the same as before
400 # Write the new configuration fragment checksum. Only do this if kconfig.py
/Zephyr-latest/drivers/sensor/renesas/hs400x/
DKconfig19 Verify the checksum byte from measurements
/Zephyr-latest/boards/nxp/lpcxpresso11u68/
DCMakeLists.txt4 # Insert checksum (verified by the bootloader) into the zephyr.bin

1234567