ctypes - random access to address space

J

janislaw

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?

Jan Wicijowski
 
D

Diez B. Roggisch

janislaw said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,293
Messages
2,571,501
Members
48,189
Latest member
StaciLgf76

Latest Threads

Top