GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V0-2-0
Constituent: grbp_siu     Tag: rad750
#include "GRBP/io/GRB_stream.h"
#include "GRBP/io/ATT_stream.h"
#include "GRBP/io/ATT_dgm.h"
#include "GRBP/GRBP_client.h"
#include "GRBP_math.h"
#include "GRBP_msgdef.h"
#include "GRBP_pktdef.h"
#include "GRBP_DB/GRBP_DB_clientSchema.h"
#include "GRBP_DB/GRBP_DB_messageSchedule.h"
#include "GRBP_DB/GRBP_DB_window.h"
#include "GRBP_DB/GRBP_DB_print.h"
#include "GRBP_DB/GRBP_DB_locationSchedule.h"
#include "GRB/GRB_siu.h"
#include "ATT/ATT.h"
#include "CDM/CDM_pubdefs.h"
#include "CMX/CMX_lookupPub.h"
#include <stdio.h>
#include <stdlib.h>
#include "EDS/TMR.h"
Include dependency graph for grbp_siu.c:
Data Structures | |
struct | _Gbm |
Controls the contents and delivery of the GBM calculation message. More... | |
struct | _Ctl |
Captures the command line parameters. More... | |
Defines | |
#define | RADIANS(_degrees) ((_degrees) * (M_PI/180)) |
Converts degrees to the equivalent number of radians. | |
Typedefs | |
typedef enum _OutStyle | OutStyle |
Typedef for enum _OutStyle. | |
typedef _Gbm | Gbm |
Typedef for struct _Gbm. | |
typedef _Ctl | Ctl |
Typedef for struct _Ctl. | |
Enumerations | |
enum | _OutStyle { OUTSTYLE_K_NONE = 0, OUTSTYLE_K_ASCII = 1, OUTSTYLE_K_BINARY = 2 } |
The output styles. More... | |
Functions | |
int | main (int argc, char *const argv[]) |
Entry point to the client side (SIU) GRBP test program. | |
int | doit (Ctl *ctl) |
Workhorse routine to feed the message and attitude files to the client-side GRBP code. | |
static int | fill_gbm (Gbm *gbm, const char *string) |
Parses the gbm options string. | |
static void * | mem_alloc (unsigned int nbytes) |
Wraps the 'real' allocator. | |
static void | mem_free (void *ptr) |
Wraps the 'real' deallocator. | |
static const void * | lookup (const char *symbol) |
Looksup the address of symbol using CMX_lookupSymbol and exits if not found. | |
static GRBP_DB_clientSchemaAll * | getSchema (int verbose) |
Returns the GRBP DB schema. | |
static const GRB_latMsgServices * | getMsgServices (OutStyle style, const char *name) |
Gets the message service vector based on the output style. | |
static void | closeMsgServices (OutStyle style) |
Closes the message services based on the style. | |
static ATT_stream * | read_att (const char *name, int flag) |
Opens and reads the specified ATT file. | |
static __inline ATT_Control * | setup_att (int size) |
Sets up the ATT record history buffer. | |
static GRB_stream * | read_grb (const char *name, int flag) |
Opens and reads the specified GRB message file. | |
static __inline unsigned long long int | get_base_time (const ATT_attitude *attitude) |
Gets the base time of the GRB. | |
static void __inline | print_msg (const GRBP_msg *msg, int flag) |
Prints the specified GRB message. | |
static void __inline | print_attitude (const ATT_attitude *attitude, int flag) |
Prints the attitude record. | |
static void __inline | print_attitude_header (int flag) |
Prints the attitude header line. | |
static void | reportUsage (void) |
Reports on the usage of grbp_siu. | |
static int | fillCtl (Ctl *ctl, int argc, char *const argv[]) |
Examines the command line parameters and fills the control structure. | |
static int | loadLib (const char *library_name, int verbose) |
Dynamically loads the specified configuration library. | |
static void | suspect_null (const GRB_latAlertMsg *alert) |
Dummy GRB LAT suspect alert message handler. | |
static void | confirm_null (int duration, double ra, double dec) |
Dummy a GRB LAT repoint request message handler. | |
static void | update_null (const GRB_latAlertMsg *alert) |
Dummy GRB LAT update alert message handler. | |
static void | closeout_null (const GRB_latAlertMsg *alert) |
Dummy GRB LAT closeout alert message handler. | |
static void | alert_fprintf (FILE *fp, const char *name, const GRB_latAlertMsg *alert) |
Print the contents of a GRB LAT a alert message. | |
static void | open_fprintf (const char *name) |
Opens an output file to print the alert messages to. | |
static void | close_fprintf (void) |
Closes the output file. | |
static void | suspect_fprintf (const GRB_latAlertMsg *alert) |
Print the contents of a GRB LAT suspect alert message. | |
static void | confirm_fprintf (int duration, double ra, double dec) |
Print the parameters of the repoint request. | |
static void | update_fprintf (const GRB_latAlertMsg *alert) |
Print the contents of a GRB LAT update alert message. | |
static void | closeout_fprintf (const GRB_latAlertMsg *alert) |
Print the contents of a GRB LAT closeout alert message. | |
Variables | |
static FILE * | AlertFp |
The file pointer to write to. |
CVS $Id: grbp_siu.c,v 1.4 2007/08/02 17:25:01 russell Exp $
|
Converts degrees to the equivalent number of radians.
|
|
The output styles.
|
|
Print the contents of a GRB LAT a alert message.
|
|
Closes the message services based on the style.
|
|
Print the contents of a GRB LAT closeout alert message.
|
|
Dummy GRB LAT closeout alert message handler.
|
|
Print the parameters of the repoint request.
|
|
Dummy a GRB LAT repoint request message handler.
|
|
Workhorse routine to feed the message and attitude files to the client-side GRBP code.
|
|
Parses the gbm options string.
|
|
Examines the command line parameters and fills the control structure.
|
|
Gets the base time of the GRB.
|
|
Gets the message service vector based on the output style.
|
|
Returns the GRBP DB schema.
|
|
Dynamically loads the specified configuration library.
|
|
Looksup the address of symbol using CMX_lookupSymbol and exits if not found.
|
|
Wraps the 'real' allocator.
|
|
Wraps the 'real' deallocator.
|
|
Opens an output file to print the alert messages to.
|
|
Prints the attitude record.
|
|
Prints the attitude header line.
|
|
Prints the specified GRB message.
|
|
Opens and reads the specified ATT file.
|
|
Opens and reads the specified GRB message file.
|
|
Sets up the ATT record history buffer.
|
|
Print the contents of a GRB LAT suspect alert message.
|
|
Dummy GRB LAT suspect alert message handler.
|
|
Print the contents of a GRB LAT update alert message.
|
|
Dummy GRB LAT update alert message handler.
|