ctypes - random access to address space
Diez B. Roggisch
deets at nospam.web.de
Tue Apr 14 04:00:25 EDT 2009
janislaw schrieb:
> Hi,
>
> I am currently doing a project in which I interface to a PCI card. To
> ease the prototyping, I call the API functions, which map the address
> space of the card to a process memory.
>
> I acquire the location in the process memory mapped to an address
> space using card API, resulting in a c structure, containing an
> integer field, being a location.
>
> The question is, if I can create a ctypes pointer to this location. Is
> that what i.e. POINTER(uint32).from_address() does?
Yes.
Diez
More information about the Python-list
mailing list