mainSimulavr: an AVR simulator - Support: sr #103928, Port change callbacks without...

 
 

sr #103928: Port change callbacks without sockets? (simulavrxx)

Submitter:  elonen
Submitted:  Tue 22 Feb 2005 03:33:32 PM UTC
   
 
Category:  features Priority:  5 - Normal
Severity:  3 - Normal Status:  Need Info
Privacy:  Public Assigned to:  rivetwa
Open/Closed:  Closed Component Version:  * None
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 May 2005 02:19:40 AM UTC, comment #3: 

This is really more of a question about SWIG. I don't have a problem with that, but apparently it is not of interest at the moment to simulavrxx developers.

I think the question here is whether or not we can setup a pin stat-change to callback to a Python function.

I will close this item as being stale (forgotten).


William <rivetwa>
Thu 03 Mar 2005 10:22:08 AM UTC, comment #2: 

As I think you are asking for "pin" state changes not for port state changes, or?

The ExtPin class provides only the socket interface now.
But it is pretty simply to create a new class which register call back functions and provide each pin state to the registered callback function. Simply copy ExtPin class (cpp/h) and rename it to ExtPinCallback and change the needed functionality. 

If you want to use callback functions to scripts... :-)
Have you ever given a "pointer to a script"?
I currently have no idea how you would interface the script to the callback function.

I think there is a misunderstanding from my side, so let me know what you want to do with the change.

Regards
    Klaus

Klaus Rudolph <zfrdh>
Group administrator
Sat 26 Feb 2005 04:12:17 PM UTC, comment #1: 

Thanks. I'll look at this patch also.

It sounds like this patch might have the python samples I was asking for.


William <rivetwa>
Tue 22 Feb 2005 03:33:32 PM UTC, original submission:  

As you may have noticed from the patch, I've done some AVR coding using Python based simulation scripts. My  current script contains 1) a simulation thread, 2) a socket based UI server and 3) a GUI in tkinter, all in the same application, which feels a bit funny. Does the Swig API allow any way to register direct callbacks for port value changes instead of having to route them through sockets?

elonen

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-20 rivetwa StatusRemind Need Info
    Open/ClosedOpen Closed
2005-02-26 rivetwa CategoryNone features
    StatusNone Remind
    Assigned toNone rivetwa

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code