Y
youngdubliner
Hi All ,
Bit of a problem with Py_Parse or Py_ParseTuple ?
I have a python script that reads a sector of flash in an embedded device.
it returns the value of each byte within the sector as a tuple.
i.e. [255,255,255,255,255,255,255, .......etc etc for the whole sector !
We are using this script to read whats currently in any sector.
No problems there.
Now I need to call our script from C.
I want to copy each of the bytes within the sector into an C unsigned char *array
Is there any way to do this using Py_ParseTuple or Py_Parse ???
something like this for instance ??? ......
Py_ParseTuple[pres,"??",&my_c_array]
so now my_c_array[0] = 255 ,my_c_array[1] = 255 ,my_c_array[2] = 255 , etc etc
Thanks for the help !
Bit of a problem with Py_Parse or Py_ParseTuple ?
I have a python script that reads a sector of flash in an embedded device.
it returns the value of each byte within the sector as a tuple.
i.e. [255,255,255,255,255,255,255, .......etc etc for the whole sector !
We are using this script to read whats currently in any sector.
No problems there.
Now I need to call our script from C.
I want to copy each of the bytes within the sector into an C unsigned char *array
Is there any way to do this using Py_ParseTuple or Py_Parse ???
something like this for instance ??? ......
Py_ParseTuple[pres,"??",&my_c_array]
so now my_c_array[0] = 255 ,my_c_array[1] = 255 ,my_c_array[2] = 255 , etc etc
Thanks for the help !