#include "vxWorks.h"#include "stdlib.h"#include "stdio.h"#include "logLib.h"#include "sigLib.h"#include "semLib.h"#include "intLib.h"#include "iv.h"#include "ISOMAX/IREC.h"#include "ISOMAX/ISOMAX.h"#include "MV2X/ravenDisconnect.h"Functions | |
| int | IREC_init (char *fileName, int mode) |
| Initialize application resources. More... | |
| void | IREC_exit (int signal) |
| Cleaup application resources. More... | |
| void | IREC_intHandler (void) |
| Frame sync interrupt handler. More... | |
| void | IREC (char *fileName, int mode) |
| Application main function. More... | |
Variables | |
| unsigned short | IREC_buf [ISOMAX_FIFO_FRAMES][ISOMAX_FRAME_WORDS] |
| FILE * | IREC_out = NULL |
| char * | IREC_outBuf = NULL |
| SEM_ID | IREC_flag |
|
||||||||||||
|
Application main function. After initialization, runs forever pending on the IREC_flag semaphore. When new data is available, it is written to the IREC_out file. An incorrectly formatted frame will cause the application to halt.
|
|
|
Cleaup application resources. This function peforms the following actions to shutdown the application:
|
|
||||||||||||
|
Initialize application resources. This function peforms the following actions to setup the application for operation:
|
|
|
Frame sync interrupt handler. This function is attached to the ISOMAX frame sync board receive FIFO half-full interrupt. The newly received data is read into IREC_buf and the condition signalled through IREC_flag. |
|
|
Buffer to hold incomming frame data. |
|
|
Semaphore to signal frame sync FIFO receive condition. |
|
|
Descriptor for output data file. |
|
|
Buffer for output file. |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001