Home
last modified time | relevance | path

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

12345678910>>...43

/Zephyr-latest/samples/drivers/soc_flash_nrf/
DREADME.rst16 Within the sample, user may observe how read/write/erase operations
48 Attempted to read 0x82000
49 Data read: 1122
50 Data read matches data written. Good!
52 Attempted to read 0x82004
53 Data read: aabb
54 Data read matches data written. Good!
56 Attempted to read 0x82008
57 Data read: abcd
58 Data read matches data written. Good!
[all …]
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/subsys/bluetooth/audio/
Dgmap_client.c57 struct bt_gatt_read_params read; member
156 memset(&gmap_cli->params.read, 0, sizeof(gmap_cli->params.read)); in gmap_read_bgr_feat()
158 gmap_cli->params.read.func = bgr_feat_read_cb; in gmap_read_bgr_feat()
159 gmap_cli->params.read.handle_count = 1u; in gmap_read_bgr_feat()
160 gmap_cli->params.read.single.handle = handle; in gmap_read_bgr_feat()
161 gmap_cli->params.read.single.offset = 0u; in gmap_read_bgr_feat()
163 return bt_gatt_read(gmap_cli->conn, &gmap_cli->params.read); in gmap_read_bgr_feat()
255 memset(&gmap_cli->params.read, 0, sizeof(gmap_cli->params.read)); in gmap_read_bgs_feat()
257 gmap_cli->params.read.func = bgs_feat_read_cb; in gmap_read_bgs_feat()
258 gmap_cli->params.read.handle_count = 1u; in gmap_read_bgs_feat()
[all …]
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dtest_lwm2m.py94 assert leshan.read(endpoint, '3/0/0') == 'Zephyr'
95 assert leshan.read(endpoint, '3/0/1') == 'client-1'
96 assert leshan.read(endpoint, '3/0/2') == 'serial-1'
122 resp = leshan.read(endpoint,'3/0')
130 resp = leshan.read(endpoint, '3/0')
141 assert leshan.read(endpoint, '1/0/2') == 101
142 assert leshan.read(endpoint, '1/0/3') == 1010
143 assert leshan.read(endpoint, '1/0/5') == 2000
147 assert leshan.read(endpoint, '1/0/2') == 1
148 assert leshan.read(endpoint, '1/0/3') == 10
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_stm32.c49 for (size_t read = 0; read < size; read += to_copy) { in bbram_stm32_read() local
50 reg = STM32_BKP_REG(STM32_BKP_REG_INDEX(offset + read)); in bbram_stm32_read()
51 begin = STM32_BKP_REG_BYTE_INDEX(offset + read); in bbram_stm32_read()
52 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - read); in bbram_stm32_read()
53 bytecpy(data + read, (uint8_t *)&reg + begin, to_copy); in bbram_stm32_read()
98 .read = bbram_stm32_read,
/Zephyr-latest/samples/subsys/zbus/uart_bridge/
Ddecoder.py29 b = ser.read(size=1)
34 found_msg_size = int.from_bytes(ser.read(size=1), byteorder="little")
35 found_msg = ser.read(found_msg_size)
42 d = ser.read()
/Zephyr-latest/scripts/coredump/coredump_parser/
Dlog_parser.py83 hdr = self.fd.read(LOG_ARCH_HDR_SIZE)
86 arch_data = self.fd.read(num_bytes)
93 hdr = self.fd.read(LOG_THREADS_META_HDR_SIZE)
96 data = self.fd.read(num_bytes)
103 hdr = self.fd.read(LOG_MEM_HDR_SIZE)
119 data = self.fd.read(struct.calcsize(ptr_fmt))
124 data = self.fd.read(size)
138 hdr = self.fd.read(LOG_HDR_SIZE)
166 section_id = self.fd.read(1)
/Zephyr-latest/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-latest/drivers/w1/
DKconfig.zephyr_serial15 The bus reset, and bit read and write operations are executed
16 via bytes read and write operations on top of the Zephyr
22 int "Bit read timeout in us"
25 The bit read timeout specifies how long the driver tries to read the
DKconfig.zephyr_gpio13 The bus reset, and bit read and write operations are executed
14 via byte read and write operations on top of the Zephyr
24 operations for bus reset, and bit read and write operations.
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.c195 int read; in handle_usbip_submit() local
199 read = recv(connfd, req, sizeof(*req), 0); in handle_usbip_submit()
200 if (read != sizeof(*req)) { in handle_usbip_submit()
216 int read; in handle_usbip_unlink() local
221 read = recv(connfd, &hdr->u, sizeof(hdr->u), 0); in handle_usbip_unlink()
222 if (read != sizeof(hdr->u)) { in handle_usbip_unlink()
334 int read; in usbip_start() local
339 read = recv(connfd, &req, sizeof(req), 0); in usbip_start()
340 if (read < 0) { in usbip_start()
350 if (read != sizeof(req)) { in usbip_start()
[all …]
/Zephyr-latest/samples/subsys/zbus/remote_mock/
Dremote_mock.py25 channel_id = int.from_bytes(ser.read(), "little")
28 msg = ser.read(msg_size)
29 ser.read(1) # skip '*'
46 d = ser.read()
/Zephyr-latest/subsys/bindesc/
DKconfig37 Enable the app to read the binary descriptors of another image
42 module-str = Binary Descriptor read
46 bool "Bindesc read from RAM"
51 bool "Bindesc read from memory mapped flash"
56 bool "Bindesc read from flash"
64 int "Bindesc read flash max data size"
69 the value set to BINDESC_DEFINE_MAX_DATA_SIZE by the read image.
/Zephyr-latest/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-latest/samples/subsys/bindesc/read_bindesc/
DREADME.rst1 .. zephyr:code-sample:: read-bindesc
2 :name: Binary descriptors read
5 Define some binary descriptors and read them.
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/
Dmain.c246 int read; in rx_isr() local
252 read = h4_read(hci_uart_dev, &type, sizeof(type)); in rx_isr()
256 if (read) { in rx_isr()
269 read = h4_read(hci_uart_dev, &hdr_buf[hdr_len(type) - remaining], in rx_isr()
271 remaining -= read; in rx_isr()
311 read = h4_read(hci_uart_dev, net_buf_tail(buf), remaining); in rx_isr()
312 buf->len += read; in rx_isr()
313 remaining -= read; in rx_isr()
325 read = h4_read(hci_uart_dev, discard, to_read); in rx_isr()
326 remaining -= read; in rx_isr()
[all …]
/Zephyr-latest/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-latest/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-latest/drivers/flash/
DKconfig.cadence_qspi_nor36 int "Set QSPI to read / write how many bytes per device"
39 Set the size for a QSPI to read / write per device.
42 int "Set QSPI to read / write how many bytes per block"
45 Set the size for a QSPI to read / write per block.
/Zephyr-latest/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-latest/drivers/mdio/
Dmdio_stm32_hal.c38 uint32_t read; in mdio_stm32_read() local
43 ret = HAL_ETH_ReadPHYRegister(heth, prtad, regad, &read); in mdio_stm32_read()
51 *data = read & ADIN1100_REG_VALUE_MASK; in mdio_stm32_read()
103 .read = mdio_stm32_read,
Dmdio_renesas_ra.c38 uint32_t read; in renesas_ra_mdio_read() local
45 err = R_ETHER_PHY_Read(&dev_data->ether_phy_ctrl, regad, &read); in renesas_ra_mdio_read()
53 *data = read & UINT16_MAX; in renesas_ra_mdio_read()
103 .read = renesas_ra_mdio_read,

12345678910>>...43