RE: Java Action events/asychronous notification

"Rohan Deshpande" <rohan-TBo7Y5mltt/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <D6F4CBA5565BED459B5E5921D3870E4C1CB2D3@netfinity.marlincontrols.com>
Hi Nathan,

Try these resources. They describe how to create an Event with a concrete example.

http://www.javaworld.com/javaqa/2000-08/01-qa-0804-events.html
http://www.javaworld.com/javaworld/javaqa/2002-03/01-qa-0315-happyevent.html

Thanks,
Rohan Deshpande
rohan-TBo7Y5mltt/[email protected]
 
-----Original Message-----
From: Nathan Gustavson [mailto:[email protected]] 
Sent: Wednesday, January 14, 2004 1:02 PM
To: Tini (E-mail)
Subject: [TINI]Java Action events/asychronous notification

Hello,
I'm a C/C++ embedded developer who has been forcefully thrown into the world
of Java with the advent of this Tini processor. I'm looking for advice on
implementing asychronous methods for our Tini carrier board.
I've been trying to write some simple drivers for the IO on our board for
the last couple days and have been having a lot of trouble implementing and
asychronous interface for our keypad.
I've got the Interrupts running with ExternalInterrupt and am receiving the
keys no problem, but can't seem to discover a good end API for the users for
this.

In C I would just create a function pointer to a callback and call it when
the key is pressed.

After 2 days research and hair pulling I have discoved that Java does not do
this, I've been Googling and going through the html documentation, but all I
have discovered is how to set up and action to occur when a pre-defined
event(such as mouse movement) occurs. I have been unable to find any
reference to how to actually set up the API to call a function. That is, how
to implement an addtask type method for my own IO devices.

If anyone out there has any example code or knows any good tutorials it
would be appreciated.
Help!




Thank you,
 
Nathan Z. Gustavson
Embedded Engineer
EMAC, Inc.
2390 EMAC Way
Carbondale, IL  62902
Phone (618) 529-4525 ext 320
Fax (618) 457-0110
Website: http://www.emacinc.com


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.