GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-21-0 > lim / linux-gcc
#include "string.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_pubdefs.h"
#include "LIM/LIM_cmddefs.h"
#include "LIM/LIM_msgs.h"
#include "LIM/LIM_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/WUT.h"
#include "LIM_action.h"
#include "LIM_arr.h"
#include "LIM_bulk.h"
#include "LIM_gbm.h"
#include "LIM_lpa.h"
#include "LIM_pkt_send.h"
#include "LIM_sc.h"
#include "LIM_task.h"
Classes | |
struct | _LIM_Arr |
State information for an ARR observation object. More... | |
Defines | |
#define | LIM_ARR_VALID_KEY (('L'<<24)+('A'<<16)+('R'<<8)+'R') |
Value that indicates the ARR observation object state is valid. | |
Functions | |
static unsigned int | lim_arr_check (LIM_Arr *object_p) |
Validate an ARR observation object pointer. | |
static WUT_cb_status | lim_arr_wut_handler (void *prm, WUT_tmr *wut) |
Handle GRB timer expiration. | |
static unsigned int | lim_arr_change_grb_state (LIM_Arr *object_p, int new_state) |
Change the GRB state of an object. | |
static unsigned int | lim_arr_set_grb_idle (LIM_Arr *object_p) |
Set an object to the IDLE GRB state. | |
static unsigned int | lim_arr_set_grb_0 (LIM_Arr *object_p, LIM_Operating_Mode op_mode) |
Set an object to the GRB 0 state. | |
unsigned int | LIM_arr_new (LIM_Arr **object_pp, LIM_Task *task_p, LIM_Action *action_p, LIM_Gbm *gbm_p, LIM_Sc *sc_p, LIM_Lpa *lpa_p, LIM_Bulk *bulk_p, const LIM_DB_Schema *db_p) |
Create and initialize a new ARR observation object. | |
unsigned int | LIM_arr_delete (LIM_Arr *object_p) |
Shutdown and delete a ARR observation object. | |
int | LIM_arr_is_ready (LIM_Arr *object_p) |
Return the READY status of an ARR observation. | |
LIM_Grb_State | LIM_arr_grb_state (LIM_Arr *object_p) |
Return the GRB state of an ARR observation. | |
unsigned int | LIM_arr_get_info (LIM_Arr *object_p, LIM_Info *info_p) |
Return ARR observation information. | |
unsigned int | LIM_arr_handle_abort (LIM_Arr *object_p, const ITC_QueueItem *qitem_p) |
Handle an ARR-Abort command. | |
static unsigned int | lim_arr_handle_grb_active (LIM_Arr *object_p, LIM_Lpa_Mode grb_mode) |
Perform activity for an 'active' GRB state. | |
unsigned int | LIM_arr_handle_activity (LIM_Arr *object_p) |
Handle ARR observation activity. | |
unsigned int | LIM_arr_handle_bulk (LIM_Arr *object_p, LIM_Operating_Mode op_mode) |
Handle a message on the BULK queue. | |
unsigned int | LIM_arr_handle_calcinfo (LIM_Arr *object_p, const ITC_QueueItem *qitem_p, int forward_ok, LIM_Operating_Mode op_mode) |
Handle a GBM-Calcinfo command. | |
unsigned int | LIM_arr_handle_closeout (LIM_Arr *object_p, const ITC_QueueItem *qitem_p, int forward_ok) |
Handle a GBM-Closeout command. | |
unsigned int | LIM_arr_handle_confirmed (LIM_Arr *object_p, const ITC_QueueItem *qitem_p, LIM_Operating_Mode op_mode) |
Handle a GRB-Confirmed command. | |
unsigned int | LIM_arr_handle_finished (LIM_Arr *object_p) |
Handle a GRB-Finished command. | |
unsigned int | LIM_arr_handle_repoint (LIM_Arr *object_p, const ITC_QueueItem *qitem_p, int forward_ok, int slew_req_ok, LIM_Operating_Mode op_mode) |
Handle a GBM-Repoint command. | |
unsigned int | LIM_arr_handle_suspected (LIM_Arr *object_p, LIM_Operating_Mode op_mode) |
Handle a GRB-Suspected command. | |
unsigned int | LIM_arr_handle_physics_start (LIM_Arr *object_p, const ITC_QueueItem *qitem_p) |
Handle a PHYSICS-START command in ARR mode. | |
unsigned int | LIM_arr_handle_response (LIM_Arr *object_p, const ITC_QueueItem *qitem_p) |
Handle an ARR-Response message. |
** CVS $Id: LIM_arr.c,v 1.23 2008/11/01 14:45:46 dmay Exp $ **
unsigned int lim_arr_change_grb_state | ( | LIM_Arr * | object_p, | |
int | new_state | |||
) | [static] |
Change the GRB state of an object.
object_p | Pointer to ARR observation object. | |
new_state | New GRB state. |
unsigned int lim_arr_check | ( | LIM_Arr * | object_p | ) | [static] |
Validate an ARR observation object pointer.
object_p | Pointer to ARR observation object. |
unsigned int LIM_arr_delete | ( | LIM_Arr * | object_p | ) |
Shutdown and delete a ARR observation object.
object_p | Pointer to object. |
Return ARR observation information.
object_p | Pointer to ARR observation object. | |
info_p | Location to return GBM interface information (must not be NULL). |
LIM_Grb_State LIM_arr_grb_state | ( | LIM_Arr * | object_p | ) |
Return the GRB state of an ARR observation.
object_p | Pointer to ARR observation object. |
unsigned int LIM_arr_handle_abort | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p | |||
) |
Handle an ARR-Abort command.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. |
unsigned int LIM_arr_handle_activity | ( | LIM_Arr * | object_p | ) |
Handle ARR observation activity.
object_p | Pointer to ARR observation object. |
unsigned int LIM_arr_handle_bulk | ( | LIM_Arr * | object_p, | |
LIM_Operating_Mode | op_mode | |||
) |
Handle a message on the BULK queue.
object_p | Pointer to ARR observation object. | |
op_mode | Current operating mode. |
unsigned int LIM_arr_handle_calcinfo | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p, | |||
int | forward_ok, | |||
LIM_Operating_Mode | op_mode | |||
) |
Handle a GBM-Calcinfo command.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. | |
forward_ok | Flag indicating that command may be fowarded to LPA. | |
op_mode | Current operating mode. |
unsigned int LIM_arr_handle_closeout | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p, | |||
int | forward_ok | |||
) |
Handle a GBM-Closeout command.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. | |
forward_ok | Flag indicating that command can be forwarded to LPA. |
unsigned int LIM_arr_handle_confirmed | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p, | |||
LIM_Operating_Mode | op_mode | |||
) |
Handle a GRB-Confirmed command.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. | |
op_mode | Current operating mode. |
unsigned int LIM_arr_handle_finished | ( | LIM_Arr * | object_p | ) |
Handle a GRB-Finished command.
object_p | Pointer to ARR observation object. |
unsigned int lim_arr_handle_grb_active | ( | LIM_Arr * | object_p, | |
LIM_Lpa_Mode | grb_mode | |||
) | [static] |
Perform activity for an 'active' GRB state.
object_p | Pointer to ARR observation object. | |
grb_mode | Expected GRB mode. |
unsigned int LIM_arr_handle_physics_start | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p | |||
) |
Handle a PHYSICS-START command in ARR mode.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. |
unsigned int LIM_arr_handle_repoint | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p, | |||
int | forward_ok, | |||
int | slew_req_ok, | |||
LIM_Operating_Mode | op_mode | |||
) |
Handle a GBM-Repoint command.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the command. | |
forward_ok | Flag indicating that cmd can be forwarded to LPA. | |
slew_req_ok | Flag indicating that slew-req can be sent to S/C. | |
op_mode | Current operating mode. |
unsigned int LIM_arr_handle_response | ( | LIM_Arr * | object_p, | |
const ITC_QueueItem * | qitem_p | |||
) |
Handle an ARR-Response message.
object_p | Pointer to ARR observation object. | |
qitem_p | Pointer to queue item containing the message. |
unsigned int LIM_arr_handle_suspected | ( | LIM_Arr * | object_p, | |
LIM_Operating_Mode | op_mode | |||
) |
Handle a GRB-Suspected command.
object_p | Pointer to ARR observation object. | |
op_mode | Current operating mode. |
int LIM_arr_is_ready | ( | LIM_Arr * | object_p | ) |
Return the READY status of an ARR observation.
object_p | Pointer to ARR observation object. |
unsigned int LIM_arr_new | ( | LIM_Arr ** | object_pp, | |
LIM_Task * | task_p, | |||
LIM_Action * | action_p, | |||
LIM_Gbm * | gbm_p, | |||
LIM_Sc * | sc_p, | |||
LIM_Lpa * | lpa_p, | |||
LIM_Bulk * | bulk_p, | |||
const LIM_DB_Schema * | db_p | |||
) |
Create and initialize a new ARR observation object.
object_pp | Location to return pointer to new object. | |
task_p | Pointer to a task object. | |
action_p | Pointer to an action reporting object. | |
gbm_p | Pointer to a GBM interface object. | |
sc_p | Pointer to a spacecraft interface object. | |
lpa_p | Pointer to an LPA task interface object. | |
bulk_p | Pointer to a BULK queue object. | |
db_p | Pointer to configuration information. |
unsigned int lim_arr_set_grb_0 | ( | LIM_Arr * | object_p, | |
LIM_Operating_Mode | op_mode | |||
) | [static] |
Set an object to the GRB 0 state.
object_p | Pointer to ARR observation object. | |
op_mode | Current operating mode. |
unsigned int lim_arr_set_grb_idle | ( | LIM_Arr * | object_p | ) | [static] |
Set an object to the IDLE GRB state.
object_p | Pointer to ARR observation object. |
WUT_cb_status lim_arr_wut_handler | ( | void * | prm, | |
WUT_tmr * | wut | |||
) | [static] |
Handle GRB timer expiration.
prm | Pointer to ARR observation object. | |
wut | Pointer to wake-up timer. |