Skip navigation.
Home
The QNX Community Portal

View topic - Pulse handling

Pulse handling

For discussion of realtime and/or embedded programming.

Pulse handling

Postby rahil » Thu Aug 20, 2009 7:13 am

Hi.....I've an Interrupt Service Routine inside a driver. This ISR is done through InterruptAttach() call and it returns a NULL sigevent structure.
Now, I want to fill this sigevent structure to send a pulse and want this driver to send a pulse whenever the ISR is called. Moreover, I want this sent pulse to be handled in a different process/driver rather than in the driver itself. How could this be implemented?
rahil
Active Member
 
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India

RE: Pulse handling

Postby mario » Thu Aug 20, 2009 11:41 am

You need to create a PULSE, check SIGEV_INIT_PULSE ( from memory). The coid would be the one use to connect to the channel of the other process.

That being said that looks like a bad idea to me.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Pulse handling

Postby maschoen » Thu Aug 20, 2009 3:11 pm

Well it is certainly a strange idea. If you want the interrupt notification sent to another process, why not just put the interrupt handler in the other process? At the very least you could have the pulse wake up the driver and send another pulse to the separate application.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: RE: Pulse handling

Postby rahil » Tue Aug 25, 2009 12:11 pm

maschoen wrote:Well it is certainly a strange idea. If you want the interrupt notification sent to another process, why not just put the interrupt handler in the other process? At the very least you could have the pulse wake up the driver and send another pulse to the separate application.


Actually I wanted to build a wrapper driver over a lower-layer driver, and wanted the wrapper driver to do additional processing on the raw data.

Anyways, to accomplish this, I'm using ionotify() to arm the low-layer resource manager and get the notifications through sigevents.
rahil
Active Member
 
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 1 guest