Pumpkin, Inc.

Pumpkin User Forums

Checking MESSAGEs in SALVO 2.0

If you can't make Salvo do what you want it to do, post it here.

Checking MESSAGEs in SALVO 2.0

Postby luben » Mon May 07, 2001 7:10 am

Hello,

If there is simple way to check if FILLED for one MESSAGE QUEUE , maybe there is some way to check if one MESSAGE is signalled or not (for SALVO 2.0). Sometimes is good to check this <on fly>. What can I imagine right now is to read the message with minimal timeout. If timeout occured - message was not signalled. If no timeout - message was signalled. Then I have to resignal the message to restore the initial status.

Regards
Luben

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: Checking MESSAGEs in SALVO 2.0

Postby Salvo Tech Support » Mon May 07, 2001 9:34 am

Hi Luben.

Are you saying that you simply want to know if a message has been signaled, but not what the message actually is?

If so, you can always code it directly. E.g.:

code:
if ( ecbP->event )
/* message has been signaled */;
else
/* message hasn't been signaled */;

where ecbP is a pointer to the message's control block.

A lot of this "what if" functionality can be deduced by going through the source code (here, salvo.h, which is present in the freeware and full versions) and perhaps also looking at a runtime dump of the Salvo variables (e.g. in MPLAB's File Registers window).

We document the source code to make this sort of thing easier for our users -- you could create your own function or macro like the one above.

Regards,

------------------
-----------------------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am


Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest

cron