339 Commits

Author SHA1 Message Date
lyon
4ac3eaf76f add c_buffer class for ctypes 2022-05-25 14:44:59 +08:00
lyon
54ad82d5a8 format 2022-05-25 14:05:18 +08:00
lyon
db45bd9964 str(obj) from __str__ is test ok 2022-05-25 13:57:02 +08:00
lyon
e860275c99 support __str__ in for print 2022-05-25 13:46:48 +08:00
lyon
962a280555 add writeBytes template 2022-05-24 20:58:58 +08:00
lyon
a7613dd097 fix readBytes memory error 2022-05-24 15:26:12 +08:00
lyon
8efa491c43 add implament file for TemplateDevice 2022-05-24 14:13:31 +08:00
lyon
5498f4fa17 create TemplateDevice package 2022-05-24 13:56:35 +08:00
lyon
e2a630358c move PLOOC to package and use as optional 2022-05-24 09:19:44 +08:00
lyon
d071361c74 add set/writeBytes for StdDevice, compile passed 2022-05-23 17:10:37 +08:00
lyon
f826f42295 adding writebytes and readbytes to stddevice 2022-05-23 16:54:56 +08:00
lyon
27a7cdce88 try to add read/writeBytes, not ok yeat 2022-05-23 16:03:05 +08:00
dreamcmi
bfc01e09fd
Fix CH582 iic and uart bug
Update pika_config.c for 1.8.0
2022-05-23 11:34:14 +08:00
lyon
ee3a2c8f53 support [] index for bytes 2022-05-21 19:23:34 +08:00
lyon
c3bc444af0 assert for test_import_bf1/2 is ok 2022-04-28 16:55:48 +08:00
lyon
876ea81576 support type(b'test') -> <class 'bytes'> 2022-04-28 16:04:14 +08:00
lyon
652962c4c3 use ... insetad of pass in PikaStdLib.pyi 2022-04-28 15:53:09 +08:00
lyon
8df290da3f use pyi instaed of py for C moudle 2022-04-28 11:47:37 +08:00
lyon
aa676d380b format 2022-04-28 00:49:40 +08:00
lyon
5cbe98d212 keep both meta obj and direct obj, meta obj cannot init with arg 2022-04-28 00:42:06 +08:00
lyon
ceb8de7c81 format arg_new[]Obj api 2022-04-28 00:29:32 +08:00
lyon
7f70e2a9df import type() 2022-04-27 23:38:00 +08:00
lyon
15aef30a5f use obj_getObj/getSuperObj 2022-04-27 22:14:56 +08:00
lyon
d5f308117a add '#api' for each package/*.py 2022-04-26 21:38:15 +08:00
lyon
e3ffb344bb add '#api' comment 2022-04-26 21:34:43 +08:00
李昂
7345c222bd
update package/Arm2D/Arm2D_Window.c. 2022-04-26 08:53:45 +00:00
lyon
cd82162e6e all tests passed 2022-04-26 12:15:07 +08:00
lyon
d8560dd24d task not pass, class not pass 2022-04-26 11:09:18 +08:00
lyon
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
16886ec594 remove '__res' after run __iter__() 2022-04-26 10:12:34 +08:00
lyon
9b1e6a323a list_iter not ok 2022-04-26 10:06:15 +08:00
lyon
89d23c2d3e ref error in list.iter 2022-04-26 10:01:40 +08:00
lyon
88c0fd481e add _refcnt when get refArg from object 2022-04-25 19:19:44 +08:00
lyon
f13acd2334 create _refcnt when create a class_object 2022-04-25 18:58:15 +08:00
lyon
059096a7b1 divide POINTER and REF_OBJECT OK 2022-04-25 15:01:58 +08:00
lyon
37f3062b88 dividing POINTER and REF_OBJECT 2022-04-25 14:49:38 +08:00
lyon
e03af6c5a7 rename __POINTER_ to REF_OBJECT 2022-04-25 14:43:44 +08:00
lyon1998
c256cfcb8f use uint8_t in ctypes 2022-04-20 17:05:21 +08:00
lyon1998
c15faf1916 test bytes input in ctypes 2022-04-20 14:52:20 +08:00
lyon1998
b015af566d update ctypes Test input to bytes 2022-04-19 18:30:24 +08:00
lyon1998
8d2378251f rename Mem to Bytes 2022-04-19 18:12:07 +08:00
lyon1998
7362ba0d4b add print_rcv to test Mem arg 2022-04-18 18:44:14 +08:00
lyon1998
034fb16ea1 fix ctypes.py 2022-04-18 18:30:24 +08:00
lyon1998
acaa60703c update ctypes 2022-04-18 18:05:45 +08:00
lyon1998
386b2c5d74 add c_void_p 2022-04-18 14:21:04 +08:00
lyon1998
be4caeee45 add other ctypes_type, add c_float 2022-04-18 14:16:55 +08:00
lyon1998
bf50bde599 support setMem, getMem, getMemSize for ctypes 2022-04-18 12:13:10 +08:00
lyon1998
933fad80c5 test for args_mem ok 2022-04-18 11:45:59 +08:00
lyon1998
13afcd2ef6 clear pikaobj.h old api, add ctypesUtils_mem api 2022-04-17 23:02:13 +08:00
lyon1998
7d730006e4 use ctypeUtils in ctype method 2022-04-17 22:56:21 +08:00