CARMA C++
monitor.h
1 #ifndef monitor_h
2 #define monitor_h
3 
4 /*
5  * This file defines attributes of the interface between the
6  * control program and the monitor program.
7  */
8 #include "carma/szautil/SzaPorts.h"
9 
10 /*
11  * Enumerate the types of messages that are passed from the
12  * control-program to monitor clients.
13  */
14 typedef enum {
15  MC_SIZE_MSG, /* Conveys the width of the communications channel */
16  MC_REGMAP_MSG, /* Conveys the current SZA register map */
17  MC_REGS_MSG /* Conveys values of the currently selected registers */
18 } CpToMonitor;
19 
20 /*
21  * Enumerate the types of messages that are passed from monitor clients
22  * to the control program.
23  */
24 typedef enum {
25  MC_REGSET_MSG, /* A new register selection set */
26  MC_INTERVAL_MSG /* A new sampling interval set */
27 } MonitorToCp;
28 
29 /*
30  * Enumerate the types of messages that are passed from the
31  * control-program to image monitor clients.
32  */
33 typedef enum {
34  IMC_SIZE_MSG, /* Conveys the width of the communications channel */
35  IMC_IMAGE_MSG, /* Conveys the current frame grabber image */
36 } CpToImMonitor;
37 
38 #endif