Search This Blog
Mar 25, 2008
Mar 10, 2008
Rmvb support
There are serveral vendor are supporting rmvb function without transfer. It is hot issue and we need speed up our development.
Have a look on overlay code, it is complex but the idea is good to deal with the overlay with MMU coperate. I still need take more time to famliar with the memory issue. I have tested serveral python script in BIN directory, however, it doesn't works.:-(
Have a look on overlay code, it is complex but the idea is good to deal with the overlay with MMU coperate. I still need take more time to famliar with the memory issue. I have tested serveral python script in BIN directory, however, it doesn't works.:-(
Mar 3, 2008
IIC 展览
今天是iic展览,公司只参加了深圳的展示。现在产品趋同性加大,今后竞争会更激烈,需要多关心目前的产品方向。学如逆水行舟,不进则退。
Feb 20, 2008
Read firmware from player
Now we can read firmware under normal USB connection. It looks work well.
Feb 15, 2008
Read10, Write10, ReadCapacity command support
With my co-worker help, it can do read/write through SCSI command. The original data buffer pointer return from structure member. change it to golbal array, it can write data into u-disk now.
Feb 14, 2008
Python access mass storage class device
use SWIG function. Build C dll which access USB port with DDK support. Python implement SCSI command function. Now can send INQUIRY and READ10 command. Try to add more SCSI command support in future.
Jan 28, 2008
Python call C function with pointer parameter
昨天折腾了一下。 可以传递指针参数了。
1. 在useSwig.i 里面加上
%module useSWIG
%inline %{
extern void add(int size, int *result);
%}
%include carrays.i
%array_functions(int, intp);
2. useSWIG.c
void add(int size, int *result)
{
}
3. runme.py
import useSWIG
a = useSWIG.new_intp(100);
useSWIG.add(100,a)
for i in range(0,100):
r = useSWIG.intp_getitem(a,i);
print r
useSWIG.delete_intp(a);
这样有点麻烦,但是能实现指针的传递。暂时先这么用。
1. 在useSwig.i 里面加上
%module useSWIG
%inline %{
extern void add(int size, int *result);
%}
%include carrays.i
%array_functions(int, intp);
2. useSWIG.c
void add(int size, int *result)
{
}
3. runme.py
import useSWIG
a = useSWIG.new_intp(100);
useSWIG.add(100,a)
for i in range(0,100):
r = useSWIG.intp_getitem(a,i);
print r
useSWIG.delete_intp(a);
这样有点麻烦,但是能实现指针的传递。暂时先这么用。
Subscribe to:
Posts (Atom)