Home
last modified time | relevance | path

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

12345678910>>...25

/AliOS-Things-master/components/py_engine/tests/wipy/
A Duart.py61 print(uart0.read(1) == b"1")
62 print(uart0.read(2) == b"23")
63 print(uart0.read() == None)
88 print(uart0.read() == None)
93 print(uart1.read() == None)
95 print(uart0.read() == b"123")
100 print(uart1.read() == None)
107 print(uart1.read() == None)
109 print(uart0.read() == None)
137 uart0.read()
[all …]
A Dspi.py42 read = spi.read(10) variable
43 print(len(read) == 10)
44 read = spi.read(10, write=0xFF) variable
45 print(len(read) == 10)
126 spi.read(15)
A Duart_irq.py60 print(uart1.read() == b"123")
72 print(uart0.read() == b"12345")
86 print(uart1.read() == b"123")
102 print(uart1.read() == b"123")
118 print(uart1.read() == b"123")
133 print(uart1.read() == b"123")
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duzlib_decompio.py13 print(inp.read(1))
15 print(inp.read(2))
16 print(inp.read())
18 print(inp.read(1))
19 print(inp.read())
25 print(inp.read(10))
26 print(inp.read())
31 print(inp.read())
A Duzlib_decompio_gz.py15 print(inp.read(1))
17 print(inp.read(2))
18 print(inp.read())
20 print(inp.read(1))
21 print(inp.read())
29 print(inp.read())
36 print(inp.read())
53 inp.read(6)
A Dvfs_lfs_file.py80 print(f.read())
84 print(f.read())
88 print(f.read())
92 print(f.read(8))
95 print(f.read())
113 print(f1.read())
114 print(f2.read())
A Dvfs_fat_fileio1.py64 f.read()
82 print(f2.read())
86 print(f2.read(1))
89 print(f2.read(1))
91 print(f2.read(1))
94 print(f2.read(1))
A Dwebsocket_basic.py12 return ws.read(sz)
21 return s.read(sz)
42 print(ws.read(1))
44 print(s.read(4))
/AliOS-Things-master/components/py_engine/tests/unicode/
A Dfile2.py10 print(f.read(1))
11 print(f.read(1))
12 print(f.read(2))
13 print(f.read(4))
19 print(f.read(1 if mode == "rt" else 3))
22 print(f.read(1 if mode == "rt" else 4))
/AliOS-Things-master/components/SDL2/test/
A Dtestfile.c142 if (0 != rwops->read(rwops, test_buf, 1, 1)) in main()
153 if (7 != rwops->read(rwops, test_buf, 1, 7)) in main()
157 if (0 != rwops->read(rwops, test_buf, 1, 1)) in main()
163 if (2 != rwops->read(rwops, test_buf, 10, 3)) in main()
183 if (1 != rwops->read(rwops, test_buf, 1, 1)) in main()
189 if (7 != rwops->read(rwops, test_buf, 1, 7)) in main()
193 if (0 != rwops->read(rwops, test_buf, 1, 1)) in main()
218 if (1 != rwops->read(rwops, test_buf, 1, 1)) in main()
224 if (7 != rwops->read(rwops, test_buf, 1, 7)) in main()
228 if (0 != rwops->read(rwops, test_buf, 1, 1)) in main()
[all …]
/AliOS-Things-master/components/py_engine/tests/io/
A Dfile_seek.py3 print(f.read(5))
7 print(f.read(4))
11 print(f.read(20))
15 print(f.read(5))
23 print(f.read(5))
A Dfile1.py2 print(f.read(5))
4 print(f.read())
27 f.read(1)
35 f.read(1)
43 f.read()
A Dopen_plus.py26 print(f.read())
33 print(f.read())
40 print(f.read())
/AliOS-Things-master/components/py_engine/tests/basics/
A Dio_stringio1.py9 print(a.read())
13 print(a.read())
14 print(a.read())
34 print(a.read())
43 for f in [a.read, a.getvalue, lambda:a.write("")]:
/AliOS-Things-master/components/freetype/src/base/
A Dftstream.c43 stream->read = 0; in FT_Stream_OpenMemory()
63 if ( stream->read ) in FT_Stream_Seek()
137 if ( stream->read ) in FT_Stream_ReadAt()
174 if ( stream->read ) in FT_Stream_TryRead()
244 if ( stream->read ) in FT_Stream_EnterFrame()
325 if ( stream->read ) in FT_Stream_ExitFrame()
460 if ( stream->read ) in FT_Stream_ReadChar()
501 if ( stream->read ) in FT_Stream_ReadUShort()
548 if ( stream->read ) in FT_Stream_ReadUShortLE()
595 if ( stream->read ) in FT_Stream_ReadUOffset()
[all …]
/AliOS-Things-master/components/csi/csi1/src/
A Ddev_ringbuf.c17 fifo->write = fifo->read = 0; in dev_ringbuff_reset()
94 if(fifo->write < fifo->read) { in dev_ringbuf_in()
131 tmplen = fifo->size - fifo->read; in dev_ringbuf_out()
135 memcpy((void*)outbuf, (void*)&fifo->buffer[fifo->read], readlen); in dev_ringbuf_out()
137 memcpy((void*)outbuf,(void*)&fifo->buffer[fifo->read], tmplen); in dev_ringbuf_out()
143 fifo->read = (fifo->read + readlen) % fifo->size; in dev_ringbuf_out()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/httpd/
A Dfs.c123 int read; in fs_read_async() local
141 read = file->len - file->index; in fs_read_async()
142 if(read > count) { in fs_read_async()
143 read = count; in fs_read_async()
146 MEMCPY(buffer, (file->data + file->index), read); in fs_read_async()
147 file->index += read; in fs_read_async()
149 return(read); in fs_read_async()
/AliOS-Things-master/components/py_engine/tests/unix/
A Dextra_coverage.py22 print(stream.read()) # read all encounters non-blocking error
23 print(stream.read(1)) # read 1 byte encounters non-blocking error
29 print(stream.read(4)) # read encounters non-blocking error after successful reads
42 print(stream2.read(1)) # read 1 byte encounters non-blocking error with textio stream
96 print(buf.read(21))
/AliOS-Things-master/components/amp/modules/
A Dsi7006.js63 version = si7006Dev.read(1);
77 lowID = si7006Dev.read(4);
81 highID = si7006Dev.read(4);
97 readData = si7006Dev.read(2);
118 readData = si7006Dev.read(2);
/AliOS-Things-master/components/py_engine/framework/
A Dsi7006.py56 self.i2cDev.read(version)
66 self.i2cDev.read(id_buf_low)
70 self.i2cDev.read(id_buf_high)
81 self.i2cDev.read(readData)
98 self.i2cDev.read(readData)
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/led/
A Dmain.py14 value = gpio.read()
18 value = gpio.read()
22 value = gpio.read()
/AliOS-Things-master/components/py_engine/tests/haas/HaaS200/python-apps/driver/led/
A Dmain.py14 value = gpio.read()
18 value = gpio.read()
22 value = gpio.read()
/AliOS-Things-master/components/py_engine/engine/tools/
A Dtransymodem.py40 return serialport.read(size) or None
62 buff = serialport.read(128)
71 buff += serialport.read(128)
80 buff += serialport.read(128)
91 buff = serialport.read(128)
93 buff += serialport.read(128)
109 buff = serialport.read(2)
157 buff = serialport.read(2)
181 enter_buff = serialport.read(100)
/AliOS-Things-master/components/oss/src/model/
A DCreateSelectObjectMetaResult.cc57 data->read(reinterpret_cast<char*>(buffer), 12); in operator =()
76 data->read(reinterpret_cast<char*>(buffer), 32); in operator =()
95 data->read(reinterpret_cast<char*>(buffer), 4); in operator =()
99 data->read(messageBuffer, messageLength); in operator =()
110 data->read(reinterpret_cast<char*>(buffer), 4); in operator =()
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/
A Dpyboardextended.py336 return struct.unpack("<b", self.fin.read(1))[0]
339 return struct.unpack("<i", self.fin.read(4))[0]
343 return self.fin.read(n)
350 return str(self.fin.read(n), "utf8")
448 buf = self.data_files[fd][0].read(n)
521 c = self.orig_serial.read(1)
524 c = self.orig_serial.read(1)[0]
529 esctype = self.orig_serial.read(1)
548 def read(self, n): member in SerialIntercept
588 out_callback(self.serial.read(1))
[all …]

Completed in 27 milliseconds

12345678910>>...25