Home
last modified time | relevance | path

Searched refs:wr_buf (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_ltc2451.c39 uint8_t wr_buf[1]; in ltc2451_set_conversion_speed() local
43 wr_buf[0] = 0; in ltc2451_set_conversion_speed()
45 wr_buf[0] = 1; in ltc2451_set_conversion_speed()
51 err = i2c_write_dt(&config->i2c, wr_buf, sizeof(wr_buf)); in ltc2451_set_conversion_speed()
/Zephyr-latest/drivers/eeprom/
Deeprom_shell.c74 uint8_t wr_buf[CONFIG_EEPROM_SHELL_BUFFER_SIZE]; in cmd_write() local
86 if (len > sizeof(wr_buf)) { in cmd_write()
88 sizeof(wr_buf)); in cmd_write()
98 wr_buf[i] = byte; in cmd_write()
109 err = eeprom_write(eeprom, offset, wr_buf, len); in cmd_write()
123 if (memcmp(wr_buf, rd_buf, len) != 0) { in cmd_write()
149 uint8_t wr_buf[CONFIG_EEPROM_SHELL_BUFFER_SIZE]; in cmd_fill() local
168 memset(wr_buf, pattern, MIN(len, CONFIG_EEPROM_SHELL_BUFFER_SIZE)); in cmd_fill()
183 err = eeprom_write(eeprom, addr, wr_buf, pending); in cmd_fill()
203 if (memcmp(wr_buf, rd_buf, pending) != 0) { in cmd_fill()
/Zephyr-latest/tests/boards/altera_max10/qspi/src/
Dqspi_flash.c21 uint8_t wr_buf[4] = {0xAA, 0xBB, 0xCC, 0xDD}; in ZTEST() local
63 &wr_buf, sizeof(wr_buf)), in ZTEST()
68 zassert_equal(memcmp(wr_buf + 1, rd_buf, sizeof(rd_buf)), in ZTEST()
/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c110 char wr_buf[512]; in execute_long_pattern_write() local
117 BUILD_ASSERT((sizeof(wr_buf) % sizeof(pattern)) == 0); in execute_long_pattern_write()
118 for (int i = 0; i < sizeof(wr_buf); i += sizeof(pattern)) { in execute_long_pattern_write()
119 memcpy(wr_buf + i, pattern, sizeof(pattern)); in execute_long_pattern_write()
122 len = zms_write(fs, id, wr_buf, sizeof(wr_buf)); in execute_long_pattern_write()
123 zassert_true(len == sizeof(wr_buf), "zms_write failed: %d", len); in execute_long_pattern_write()
127 zassert_mem_equal(wr_buf, rd_buf, sizeof(rd_buf), "RD buff should be equal to the WR buff"); in execute_long_pattern_write()
/Zephyr-latest/tests/subsys/fs/nvs/src/
Dmain.c113 char wr_buf[512]; in execute_long_pattern_write() local
120 BUILD_ASSERT((sizeof(wr_buf) % sizeof(pattern)) == 0); in execute_long_pattern_write()
121 for (int i = 0; i < sizeof(wr_buf); i += sizeof(pattern)) { in execute_long_pattern_write()
122 memcpy(wr_buf + i, pattern, sizeof(pattern)); in execute_long_pattern_write()
125 len = nvs_write(fs, id, wr_buf, sizeof(wr_buf)); in execute_long_pattern_write()
126 zassert_true(len == sizeof(wr_buf), "nvs_write failed: %d", len); in execute_long_pattern_write()
131 zassert_mem_equal(wr_buf, rd_buf, sizeof(rd_buf), in execute_long_pattern_write()