Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 808) sorted by relevance

12345678910>>...33

/Zephyr-Core-3.5.0/samples/drivers/soc_flash_nrf/
DREADME.rst15 Within the sample, user may observe how read/write/erase operations
49 Attempted to read 0x82000
50 Data read: 1122
51 Data read matches data written. Good!
53 Attempted to read 0x82004
54 Data read: aabb
55 Data read matches data written. Good!
57 Attempted to read 0x82008
58 Data read: abcd
59 Data read matches data written. Good!
[all …]
/Zephyr-Core-3.5.0/tests/arch/common/semihost/src/
Dmain.c16 long read, fd; in ZTEST() local
30 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST()
31 zassert_equal(read, -EIO, "Read from write-only file"); in ZTEST()
42 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST()
43 zassert_equal(read, sizeof(r_buffer), "Read failed %d", read); in ZTEST()
45 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST()
46 zassert_equal(read, sizeof(r_buffer), "Read failed"); in ZTEST()
50 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST()
51 zassert_equal(read, -EIO, "Read past end of file"); in ZTEST()
57 read = semihost_read(fd, r_buffer, sizeof(r_buffer) - 1); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/samples/net/sockets/socketpair/
DREADME.rst47 main: read 'Alpha' on fd 4
48 main: read 'Bravo' on fd 6
49 main: read 'Charlie' on fd 8
50 main: read 'Alpha' on fd 4
51 main: read 'Bravo' on fd 6
52 main: read 'Charlie' on fd 8
53 main: read 'Alpha' on fd 4
54 main: read 'Bravo' on fd 6
55 main: read 'Charlie' on fd 8
80 main: read 'Alpha' on fd 3
[all …]
/Zephyr-Core-3.5.0/tests/kernel/pipe/pipe/src/
Dtest_pipe.c176 size_t read; in pipe_get_single() local
191 single_elements[index].size, &read, in pipe_get_single()
201 zassert_true((read == single_elements[index].sent_bytes), in pipe_get_single()
203 read, single_elements[index].sent_bytes, index); in pipe_get_single()
205 zassert_true(rx_buffer_check(rx_buffer, read) == read, in pipe_get_single()
207 index, read, rx_buffer_check(rx_buffer, read)); in pipe_get_single()
254 size_t read; in pipe_get_multiple() local
269 multiple_elements[index].size, &read, in pipe_get_multiple()
279 zassert_true((read == multiple_elements[index].sent_bytes), in pipe_get_multiple()
281 read, multiple_elements[index].sent_bytes, index); in pipe_get_multiple()
[all …]
/Zephyr-Core-3.5.0/samples/sensor/grove_light/src/
Dmain.c24 int read; in main() local
27 read = sensor_sample_fetch(dev); in main()
28 if (read) { in main()
29 printf("sample fetch error %d\n", read); in main()
/Zephyr-Core-3.5.0/drivers/bbram/
Dbbram_stm32.c40 for (size_t read = 0; read < size; read += to_copy) { in bbram_stm32_read() local
41 reg = STM32_BKP_REG(STM32_BKP_REG_INDEX(offset + read)); in bbram_stm32_read()
42 begin = STM32_BKP_REG_BYTE_INDEX(offset + read); in bbram_stm32_read()
43 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - read); in bbram_stm32_read()
44 bytecpy(data + read, (uint8_t *)&reg + begin, to_copy); in bbram_stm32_read()
81 .read = bbram_stm32_read,
/Zephyr-Core-3.5.0/samples/subsys/zbus/uart_bridge/
Ddecoder.py28 b = ser.read(size=1)
33 found_msg_size = int.from_bytes(ser.read(size=1), byteorder="little")
34 found_msg = ser.read(found_msg_size)
41 d = ser.read()
/Zephyr-Core-3.5.0/samples/bluetooth/hci_uart/src/
Dmain.c120 int read; in rx_isr() local
126 read = h4_read(hci_uart_dev, &type, sizeof(type)); in rx_isr()
130 if (read) { in rx_isr()
143 read = h4_read(hci_uart_dev, in rx_isr()
146 remaining -= read; in rx_isr()
175 read = h4_read(hci_uart_dev, net_buf_tail(buf), in rx_isr()
177 buf->len += read; in rx_isr()
178 remaining -= read; in rx_isr()
191 read = h4_read(hci_uart_dev, discard, to_read); in rx_isr()
192 remaining -= read; in rx_isr()
[all …]
/Zephyr-Core-3.5.0/drivers/w1/
DKconfig.zephyr_serial14 The bus reset, and bit read and write operations are executed
15 via bytes read and write operations on top of the Zephyr
21 int "Bit read timeout in us"
24 The bit read timeout specifies how long the driver tries to read the
/Zephyr-Core-3.5.0/drivers/usb/device/
Dusb_dc_native_posix_adapt.c191 int read; in handle_usbip_submit() local
195 read = recv(connfd, req, sizeof(*req), 0); in handle_usbip_submit()
196 if (read != sizeof(*req)) { in handle_usbip_submit()
212 int read; in handle_usbip_unlink() local
217 read = recv(connfd, &hdr->u, sizeof(hdr->u), 0); in handle_usbip_unlink()
218 if (read != sizeof(hdr->u)) { in handle_usbip_unlink()
330 int read; in usbip_start() local
335 read = recv(connfd, &req, sizeof(req), 0); in usbip_start()
336 if (read < 0) { in usbip_start()
346 if (read != sizeof(req)) { in usbip_start()
[all …]
/Zephyr-Core-3.5.0/samples/subsys/usb/cdc_acm_composite/src/
Dmain.c53 int read; in interrupt_handler() local
57 read = uart_fifo_read(dev, buf, sizeof(buf)); in interrupt_handler()
58 if (read < 0) { in interrupt_handler()
60 read = 0; in interrupt_handler()
63 wrote = ring_buf_put(rb, buf, read); in interrupt_handler()
64 if (wrote < read) { in interrupt_handler()
65 LOG_ERR("Drop %zu bytes", read - wrote); in interrupt_handler()
/Zephyr-Core-3.5.0/samples/subsys/zbus/remote_mock/
Dremote_mock.py24 channel_id = int.from_bytes(ser.read(), "little")
27 msg = ser.read(msg_size)
28 ser.read(1) # skip '*'
45 d = ser.read()
/Zephyr-Core-3.5.0/scripts/coredump/coredump_parser/
Dlog_parser.py75 hdr = self.fd.read(LOG_ARCH_HDR_SIZE)
78 arch_data = self.fd.read(num_bytes)
85 hdr = self.fd.read(LOG_MEM_HDR_SIZE)
101 data = self.fd.read(struct.calcsize(ptr_fmt))
106 data = self.fd.read(size)
120 hdr = self.fd.read(LOG_HDR_SIZE)
148 section_id = self.fd.read(1)
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/
DREADME.txt10 Note that this test also verifies the memory buffers reserved for read/write
14 * Read test: Verifies that the driver can consistently read sectors. This test
16 read from several times, each time with a different number of desired sectors.
17 The test deliberately will read sectors beyond the end of the disk, and if
18 the driver does not reject this read request the tests will fail. Following
19 these sector reads, the driver will read multiple times from the same memory
23 follows the same flow as the read test, but at each step writes data to the
/Zephyr-Core-3.5.0/tests/net/socket/socketpair/src/
Dfionread.c9 #undef read
10 #define read(fd, buf, len) zsock_recv(fd, buf, len, 0) macro
38 zassert_equal(1, read(fixture->sv[i], &byte, 1)); in ZTEST_F()
/Zephyr-Core-3.5.0/drivers/flash/
DKconfig.cadence_qspi_nor35 int "Set QSPI to read / write how many bytes per device"
38 Set the size for a QSPI to read / write per device.
41 int "Set QSPI to read / write how many bytes per block"
44 Set the size for a QSPI to read / write per block.
/Zephyr-Core-3.5.0/samples/sensor/grove_temperature/src/
Dmain.c24 int read; in main() local
48 read = sensor_sample_fetch(dev); in main()
49 if (read) { in main()
/Zephyr-Core-3.5.0/scripts/build/
Dfile2hex.py65 gz_obj.write(fg.read(args.length))
68 for chunk in iter(lambda: content.read(8), b''):
74 for chunk in iter(lambda: fp.read(8), b''):
78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''):
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/interop/pytest/
Dtest_lwm2m.py220 assert leshan.read(endpoint, '1/0/2') == '101'
221 assert leshan.read(endpoint, '1/0/3') == '1010'
222 assert leshan.read(endpoint, '1/0/5') == '2000'
226 assert leshan.read(endpoint, '1/0/2') == '1'
227 assert leshan.read(endpoint, '1/0/3') == '10'
228 assert leshan.read(endpoint, '1/0/5') == '86400'
237 assert leshan.read(endpoint, '1/0/0') == id
238 assert leshan.read(endpoint, '1/0/6') is False
239 assert leshan.read(endpoint, '1/0/7') == 'U'
249 assert leshan.read(endpoint, '1/0/2') == '101'
[all …]
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/ll/edtt/common/
Dedtt_driver_bsim.c99 int read = 0; in edtt_read() local
110 read += received_bytes; in edtt_read()
125 return read; in edtt_read()
244 int received_bytes = read(fifo[TO_DEVICE], bufptr, size); in fifo_low_level_read()
/Zephyr-Core-3.5.0/tests/posix/fs/src/
Dtest_fs_open_flags.c62 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
91 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
120 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
149 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
177 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
207 ret = read(fd, &data, sizeof(data)); in test_file_open_flags()
/Zephyr-Core-3.5.0/tests/drivers/build_all/eeprom/
Dapp.overlay42 /* read-only; */
52 /* read-only; */
76 /* read-only; */
/Zephyr-Core-3.5.0/subsys/fs/
Dshell.c334 ssize_t read; in cmd_read() local
338 read = fs_read(&file, buf, MIN(count, sizeof(buf))); in cmd_read()
339 if (read <= 0) { in cmd_read()
345 for (i = 0; i < read; i++) { in cmd_read()
354 for (i = 0; i < read; i++) { in cmd_read()
361 offset += read; in cmd_read()
362 count -= read; in cmd_read()
377 ssize_t read; in cmd_cat() local
403 read = fs_read(&file, buf, sizeof(buf)); in cmd_cat()
404 if (read <= 0) { in cmd_cat()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/zbus/integration/src/
Dmain.c295 struct action_msg read; in ZTEST() local
298 int err = zbus_chan_read(&busy_chan, &read, K_NO_WAIT); in ZTEST()
302 zassert_equal(read.status, 0, "Read status must be false"); in ZTEST()
313 err = zbus_chan_read(&busy_chan, &read, K_MSEC(200)); in ZTEST()
322 err = zbus_chan_read(&busy_chan, &read, K_MSEC(2000)); in ZTEST()
325 zassert_equal(read.status, true, "Read status must be false"); in ZTEST()
331 struct action_msg read = {.status = true}; in ZTEST() local
345 err = zbus_chan_read(&start_measurement_chan, &read, K_NO_WAIT); in ZTEST()
347 zassert_equal(read.status, false, in ZTEST()
/Zephyr-Core-3.5.0/samples/bluetooth/central_otc/
DREADME.rst11 And this sample is to select object sequentially, to read metadata, to write data,
12 to read data, and to calculate checksum of selected objects.

12345678910>>...33