GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIM / V1-20-0

Constituent: lim     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LIM_mode.c File Reference

Handle LIM operating and virtual modes. More...

#include "string.h"
#include "unistd.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ITC/ITC_drvdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LATC/latc.h"
#include "LIM/LIM_cmddefs.h"
#include "LIM/LIM_cmdxtrn.h"
#include "LIM/LIM_msgs.h"
#include "LIM/LIM_pubdefs.h"
#include "LIM/LIM_tlmdefs.h"
#include "LIM_DB/LIM_DB_schema.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/PBS.h"
#include "TRD/TRD_pubdefs.h"
#include "LIM_action.h"
#include "LIM_arr.h"
#include "LIM_bulk.h"
#include "LIM_gbm.h"
#include "LIM_lci.h"
#include "LIM_lpa.h"
#include "LIM_ltc.h"
#include "LIM_mode.h"
#include "LIM_pid.h"
#include "LIM_pig.h"
#include "LIM_pkt_send.h"
#include "LIM_pool.h"
#include "LIM_sc.h"
#include "LIM_task.h"
#include "LIM_too.h"

Include dependency graph for LIM_mode.c:


Data Structures

struct  _Lim_Mode_Handler
 Info related to handling a LIM command in a particular mode. More...
struct  _Lim_Mode_Command
 Info related to handling a LIM command. More...
struct  _LIM_Mode
 State information for a LIM mode object. More...

Defines

#define LIM_MODE_VALID_KEY   (('L'<<24)+('M'<<16)+('O'<<8)+'D')
 Value that indicates LIM mode object state is valid.
#define LIM_K_RESET_FORMAT_0   (0)
 Format of global reset data being written out.

Typedefs

typedef unsigned int(* Lim_Cmd_Handler )(LIM_Mode *mode_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Signature of a command handler function.
typedef _Lim_Mode_Handler Lim_Mode_Handler
 Typedef for _Lim_Mode_Handler.
typedef _Lim_Mode_Command Lim_Mode_Command
 Typedef for _Lim_Mode_Command.

Functions

static unsigned int lim_mode_check (LIM_Mode *object_p)
 Validate a LIM mode object pointer.
static unsigned int lim_mode_change_hv_allowed (LIM_Mode *object_p, int new_value)
 Change the value of the HV-Allowed flag.
static unsigned int lim_mode_change_saa (LIM_Mode *object_p, int new_status)
 Change the current SAA transit status.
unsigned int LIM_mode_new (LIM_Mode **object_pp, LIM_Task *task_p, LIM_Pkt_Send *cal_start_p, LIM_Pkt_Send *cal_abort_p, LIM_Pkt_Send *diag_start_p, LIM_Pkt_Send *diag_abort_p, LIM_Pkt_Send *gbm_calcinfo_p, LIM_Pkt_Send *gbm_closeout_p, LIM_Pkt_Send *gbm_repoint_p, LIM_Pkt_Send *ltc_stop_p, LIM_Pkt_Send *physics_start_p, LIM_Pkt_Send *physics_stop_p, LIM_Pkt_Send *slew_req_cmd_p, LIM_Pkt_Send *slew_req_tlm_p, LIM_Pkt_Send *slew_rsp_tlm_p, LIM_Pkt_Send *shed_alert_tlm_p, LIM_Action *action_p, LIM_Pool *pool_p, const LIM_DB_Schema *db_p)
 Create and initialize a new mode object.
unsigned int LIM_mode_delete (LIM_Mode *object_p)
 Shutdown and delete a mode object.
unsigned int LIM_mode_get_info (LIM_Mode *object_p, LIM_Info *info_p)
 Return mode information.
static void lim_mode_wait_for_complete (void)
 Allow time for a task to respond to a stop/abort command.
static unsigned int lim_mode_stop_activity (LIM_Mode *object_p)
 Stop any ongoing LCI, LDF, LPA, and LTC activity.
static unsigned int lim_mode_change_op_mode (LIM_Mode *object_p, LIM_Operating_Mode new_mode)
 Change the current operating mode.
static unsigned int lim_mode_handle_cal (LIM_Mode *object_p, LIM_Operating_Mode target_mode)
 Perform actions for the CALIBRATION operating mode.
static unsigned int lim_mode_handle_hold (LIM_Mode *object_p, LIM_Operating_Mode target_mode)
 Perform actions for the HOLD operating mode.
static unsigned int lim_mode_handle_obs (LIM_Mode *object_p, LIM_Operating_Mode target_mode)
 Perform actions for one of the observation operating modes.
static unsigned int lim_mode_handle_quiescent (LIM_Mode *object_p, LIM_Operating_Mode target_mode)
 Perform actions for the QUIESCENT operating mode.
static unsigned int lim_mode_handle_terminal (LIM_Mode *object_p, LIM_Operating_Mode target_mode)
 Perform actions for the TERMINAL operating mode.
static LIM_Operating_Mode lim_mode_target_mode (LIM_Mode *object_p)
 Determine the next desired operation mode.
static unsigned int lim_mode_handle_op_mode (LIM_Mode *object_p)
 Perform actions within the various operating modes.
static unsigned int lim_mode_handle_command (void *prm, const ITC_QueueItem *qitem_p, Lim_Mode_Command *cmd_p, LIM_Pkt_Send *pkt_send_p)
 Generic command handler.
static unsigned int lim_mode_arr_abort (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle an ARR-Abort command.
unsigned int LIM_ARR_Abort (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM ARR-Abort command.
static unsigned int lim_mode_arr_response (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle an ARR-Response message.
unsigned int LIM_ARR_Response (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM ARR-Response command.
static unsigned int lim_mode_bias_acd (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Configure ACD bias voltages.
unsigned int LIM_Bias_ACD (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-ACD command.
static unsigned int lim_mode_bias_cal (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Configure CAL bias voltages.
unsigned int LIM_Bias_CAL (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-CAL command.
static unsigned int lim_mode_bias_tkr (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Configure TKR bias voltages.
unsigned int LIM_Bias_TKR (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-TKR command.
static unsigned int lim_mode_bulk (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a message on the BULK queue.
static unsigned int lim_mode_handle_bulk (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the BULK queue messages.
static unsigned int lim_mode_cal_abort (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Abort a calibration.
unsigned int LIM_mode_handle_cal_abort (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the Cal-Abort command.
static unsigned int lim_mode_cal_complete (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a calibration completion message.
static unsigned int lim_mode_handle_cal_complete (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the Cal-Complete message.
static unsigned int lim_mode_cal_active (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle an 'active' calibration command.
unsigned int LIM_mode_handle_cal_active (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle an 'active' calibration command.
static unsigned int lim_mode_cal_start (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Start a calibration.
unsigned int LIM_mode_handle_cal_start (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the Cal-Start command.
static unsigned int lim_mode_config_gbm (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the Configure-GBM command.
unsigned int LIM_Config_GBM (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Config-GBM command.
static unsigned int lim_mode_config_hv (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the Configure-HV command.
unsigned int LIM_Config_HV (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Config-HV command.
static unsigned int lim_mode_config_pid (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the Configure-PID command.
unsigned int LIM_Config_PID (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Config-PID command.
static unsigned int lim_mode_gbm_calcinfo (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the GBM-Calcinfo command.
unsigned int LIM_mode_handle_gbm_calcinfo (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the GBM-Calcinfo command.
static unsigned int lim_mode_gbm_closeout (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the GBM-Closeout command.
unsigned int LIM_mode_handle_gbm_closeout (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the GBM-Closeout command.
static unsigned int lim_mode_gbm_repoint (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a GBM-Repoint command.
unsigned int LIM_mode_handle_gbm_repoint (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle a GBM-Repoint command.
static unsigned int lim_mode_grb_confirmed (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the GRB-Confirmed command.
static unsigned int lim_mode_grb_finished (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the GRB-Finished command.
static unsigned int lim_mode_grb_suspected (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle the GRB-Suspected command.
static unsigned int lim_mode_hold_enter (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Enter the HOLD operating mode.
unsigned int LIM_Hold_Enter (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Hold-Enter command.
static unsigned int lim_mode_hold_exit (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Exit the HOLD operating mode.
unsigned int LIM_Hold_Exit (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Hold-Exit command.
static unsigned int lim_mode_latc_config (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Call the LATC_cache, LATC_configure, and LATC_ignore functions.
unsigned int LIM_Latc_Config (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Latc-Config command.
static unsigned int lim_mode_latc_record (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Call the LATC_capture() and LATC_consign() functions.
unsigned int LIM_Latc_Record (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Latc-Record command.
static unsigned int lim_mode_latc_verify (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Call the LATC_capture, LATC_verify, and LATC_consign functions.
unsigned int LIM_Latc_Verify (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Latc-Verify command.
static unsigned int lim_mode_load_shed (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Shed LAT instrument loads.
unsigned int LIM_Load_Shed (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Load-Shed command.
static unsigned int lim_mode_look_at_me (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Send the Look-At-Me command.
unsigned int LIM_Look_At_Me (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Look-At-Me command.
static unsigned int lim_mode_main_feed_on (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Enable the main power feed and transition to QUIESCENT mode.
unsigned int LIM_Main_Feed_On (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Main-Feed-On command.
static unsigned int lim_mode_noop (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Acknowledge our existence.
unsigned int LIM_Noop (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM No-op command.
static unsigned int lim_mode_physics_active (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle an 'active' physics command.
unsigned int LIM_mode_handle_physics_active (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle an 'active' physics command.
static unsigned int lim_mode_physics_complete (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a Physics-Complete command.
static unsigned int lim_mode_physics_idle (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle an 'idle' physics command.
unsigned int LIM_mode_handle_physics_idle (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle an 'idle' physics command.
static unsigned int lim_mode_physics_start (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a Physics-Start command.
unsigned int LIM_mode_handle_physics_start (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the Physics-Start command.
static unsigned int lim_mode_physics_stop (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a Physics-Stop command.
unsigned int LIM_mode_handle_physics_stop (LIM_Mode *object_p, LIM_Pkt_Send *pkt_send_p, const ITC_QueueItem *qitem_p)
 Handle the Physics-Stop command.
static unsigned int lim_mode_pig_record (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Call the PIG_record() function.
unsigned int LIM_Pig_Record (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Pig-Record command.
static unsigned int lim_mode_power_off (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Disable power from one or more LAT instrument components.
unsigned int LIM_Power_Off (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Power-Off command.
static unsigned int lim_mode_power_on (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Enable power to one or more LAT instrument components.
unsigned int LIM_Power_On (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Power-On command.
static unsigned int lim_mode_saa_enter (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Enter the SAA.
unsigned int LIM_SAA_Enter (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM SAA-Enter command.
static unsigned int lim_mode_saa_exit (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Exit the SAA.
unsigned int LIM_SAA_Exit (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM SAA-Exit command.
static unsigned int lim_mode_too_abort (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Handle a TOO-Abort command.
unsigned int LIM_TOO_Abort (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM TOO-Abort command.
static unsigned int lim_mode_too_start (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Start a TOO observation.
unsigned int LIM_TOO_Start (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM TOO-Start command.
static unsigned int lim_mode_handle_lpa_bulk (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, void *pay_p, unsigned int len)
 Handle messages arriving on the BULK queue from the LPA task.
unsigned int LIM_mode_handle_bulk (void *prm, const ITC_QueueItem *qitem_p, void *pay_p, unsigned int len)
 Handle messages arriving on the BULK queue.
void LIM_cb_reset (unsigned short fmt, unsigned short len, const void *dat)
 Restore main feed on context after turbo reset.

Variables

Lim_Mode_Handler Lim_handler_arr_abort []
 Handlers for the ARR-Abort command.
Lim_Mode_Command Lim_command_arr_abort
 Information about the ARR-Abort command.
Lim_Mode_Handler Lim_handler_arr_response []
 Handlers for the ARR-Response command.
Lim_Mode_Command Lim_command_arr_response
 Information about the ARR-Response command.
Lim_Mode_Handler Lim_handler_bias_acd []
 Handlers for the Bias-ACD command.
Lim_Mode_Command Lim_command_bias_acd
 Information about the Bias-ACD command.
Lim_Mode_Handler Lim_handler_bias_cal []
 Handlers for the Bias-CAL command.
Lim_Mode_Command Lim_command_bias_cal
 Information about the Bias-CAL command.
Lim_Mode_Handler Lim_handler_bias_tkr []
 Handlers for the Bias-TKR command.
Lim_Mode_Command Lim_command_bias_tkr
 Information about the Bias-TKR command.
Lim_Mode_Handler Lim_handler_bulk []
 Handlers for the BULK queue messages.
Lim_Mode_Command Lim_command_bulk
 Information about the BULK queue messages.
Lim_Mode_Handler Lim_handler_cal_abort []
 Handlers for the Cal-Abort command.
Lim_Mode_Command Lim_command_cal_abort
 Information about the Cal-Abort command.
Lim_Mode_Handler Lim_handler_cal_complete []
 Handlers for the Cal-Complete command.
Lim_Mode_Command Lim_command_cal_complete
 Information about the Cal-Complete command.
Lim_Mode_Handler Lim_handler_cal_active []
 Handlers for 'active' calibration commands.
Lim_Mode_Command Lim_command_cal_active
 Information about the 'active' calibration commands.
Lim_Mode_Handler Lim_handler_cal_start []
 Handlers for the Cal-Start command.
Lim_Mode_Command Lim_command_cal_start
 Information about the Cal-Start command.
Lim_Mode_Handler Lim_handler_config_gbm []
 Handlers for the Configure-GBM command.
Lim_Mode_Command Lim_command_config_gbm
 Information about the Configure-GBM command.
Lim_Mode_Handler Lim_handler_config_hv []
 Handlers for the Configure-HV command.
Lim_Mode_Command Lim_command_config_hv
 Information about the Configure-HV command.
Lim_Mode_Handler Lim_handler_config_pid []
 Handlers for the Configure-PID command.
Lim_Mode_Command Lim_command_config_pid
 Information about the Configure-PID command.
Lim_Mode_Handler Lim_handler_gbm_calcinfo []
 Handlers for the GBM-Calcinfo command.
Lim_Mode_Command Lim_command_gbm_calcinfo
 Information about the GBM-Calcinfo command.
Lim_Mode_Handler Lim_handler_gbm_closeout []
 Handlers for the GBM-Closeout command.
Lim_Mode_Command Lim_command_gbm_closeout
 Information about the GBM-Closeout command.
Lim_Mode_Handler Lim_handler_gbm_repoint []
 Handlers for GBM-Repoint command.
Lim_Mode_Command Lim_command_gbm_repoint
 Information about the GBM-Repoint command.
Lim_Mode_Handler Lim_handler_grb_confirmed []
 Handlers for the GRB-Confirmed command.
Lim_Mode_Command Lim_command_grb_confirmed
 Information about the GRB-Confirmed command.
Lim_Mode_Handler Lim_handler_grb_finished []
 Handlers for the GRB-Finished command.
Lim_Mode_Command Lim_command_grb_finished
 Information about the GRB-Finished command.
Lim_Mode_Handler Lim_handler_grb_suspected []
 Handlers for the GRB-Suspected command.
Lim_Mode_Command Lim_command_grb_suspected
 Information about the GRB-Suspected command.
Lim_Mode_Handler Lim_handler_hold_enter []
 Handlers for the Hold-Enter command.
Lim_Mode_Command Lim_command_hold_enter
 Information about the Hold-Enter command.
Lim_Mode_Handler Lim_handler_hold_exit []
 Handlers for the Hold-Exit command.
Lim_Mode_Command Lim_command_hold_exit
 Information about the Hold-Exit command.
Lim_Mode_Handler Lim_handler_latc_config []
 Handlers for the Latc-Config command.
Lim_Mode_Command Lim_command_latc_config
 Information about the Latc-Config command.
Lim_Mode_Handler Lim_handler_latc_record []
 Handlers for the Latc-Record command.
Lim_Mode_Command Lim_command_latc_record
 Information about the Latc-Record command.
Lim_Mode_Handler Lim_handler_latc_verify []
 Handlers for the Latc-Verify command.
Lim_Mode_Command Lim_command_latc_verify
 Information about the Latc-Verify command.
Lim_Mode_Handler Lim_handler_load_shed []
 Handlers for the Load-Shed command.
Lim_Mode_Command Lim_command_load_shed
 Information about the Load-Shed command.
Lim_Mode_Handler Lim_handler_look_at_me []
 Handlers for the Look-At-Me command.
Lim_Mode_Command Lim_command_look_at_me
 Information about the Look-At-Me command.
Lim_Mode_Handler Lim_handler_main_feed_on []
 Handlers for the Main-Feed-On command.
Lim_Mode_Command Lim_command_main_feed_on
 Information about the Main-Feed-On command.
Lim_Mode_Handler Lim_handler_noop []
 Handlers for the No-Op command.
Lim_Mode_Command Lim_command_noop
 Information about the No-Op command.
Lim_Mode_Handler Lim_handler_physics_active []
 Handlers for 'active' physics commands.
Lim_Mode_Command Lim_command_physics_active
 Information about the 'active' physics commands.
Lim_Mode_Handler Lim_handler_physics_complete []
 Handlers for the Physics-Complete command.
Lim_Mode_Command Lim_command_physics_complete
 Information about the Physics-Complete command.
Lim_Mode_Handler Lim_handler_physics_idle []
 Handlers for 'idle' physics commands.
Lim_Mode_Command Lim_command_physics_idle
 Information about the 'idle' physics commands.
Lim_Mode_Handler Lim_handler_physics_start []
 Handlers for the Physics-Start command.
Lim_Mode_Command Lim_command_physics_start
 Information about the Physics-Start command.
Lim_Mode_Handler Lim_handler_physics_stop []
 Handlers for the Physics-Stop command.
Lim_Mode_Command Lim_command_physics_stop
 Information about the Physics-Stop command.
Lim_Mode_Handler Lim_handler_pig_record []
 Handlers for the Pig-Record command.
Lim_Mode_Command Lim_command_pig_record
 Information about the Pig-Record command.
Lim_Mode_Handler Lim_handler_power_off []
 Handlers for the Power-Off command.
Lim_Mode_Command Lim_command_power_off
 Information about the Power-Off command.
Lim_Mode_Handler Lim_handler_power_on []
 Handlers for the Power-On command.
Lim_Mode_Command Lim_command_power_on
 Information about the Power-On command.
Lim_Mode_Handler Lim_handler_saa_enter []
 Handlers for the SAA-Enter command.
Lim_Mode_Command Lim_command_saa_enter
 Information about the SAA-Enter command.
Lim_Mode_Handler Lim_handler_saa_exit []
 Handlers for the SAA-Exit command.
Lim_Mode_Command Lim_command_saa_exit
 Information about the SAA-Exit command.
Lim_Mode_Handler Lim_handler_too_abort []
 Handlers for the TOO-Abort command.
Lim_Mode_Command Lim_command_too_abort
 Information about the TOO-Abort command.
Lim_Mode_Handler Lim_handler_too_start []
 Handlers for the TOO-Start command.
Lim_Mode_Command Lim_command_too_start
 Information about the TOO-Start command.

Detailed Description

Handle LIM operating and virtual modes.

**  CVS $Id: LIM_mode.c,v 1.48 2008/10/29 22:36:33 apw Exp $
**  

These are functions related to transitioning between the various operating and virtual modes of the LAT instrument.


Function Documentation

unsigned int LIM_ARR_Abort void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM ARR-Abort command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_ARR_Response void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM ARR-Response command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Bias_ACD void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Bias-ACD command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Bias_CAL void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Bias-CAL command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Bias_TKR void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Bias-TKR command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

void LIM_cb_reset unsigned short  fmt,
unsigned short  len,
const void *  dat
 

Restore main feed on context after turbo reset.

Parameters:
fmt (in) Format of global context data
len (in) Length of global context data
dat (in) Global context data

unsigned int LIM_Config_GBM void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Config-GBM command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Config_HV void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Config-HV command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Config_PID void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Config-PID command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Hold_Enter void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Hold-Enter command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Hold_Exit void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Hold-Exit command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Latc_Config void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Latc-Config command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Latc_Record void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Latc-Record command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Latc_Verify void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Latc-Verify command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Load_Shed void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Load-Shed command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Look_At_Me void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Look-At-Me command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Main_Feed_On void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Main-Feed-On command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int lim_mode_arr_abort LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle an ARR-Abort command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to command's queue item.
pkt_send_p Pointer to command's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_arr_response LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle an ARR-Response message.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_bias_acd LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Configure ACD bias voltages.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_bias_cal LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Configure CAL bias voltages.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_bias_tkr LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Configure TKR bias voltages.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_bulk LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a message on the BULK queue.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to message's queue item.
pkt_send_p Pointer to message's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_cal_abort LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Abort a calibration.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_cal_active LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle an 'active' calibration command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object.
Returns:
MSG code.

unsigned int lim_mode_cal_complete LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a calibration completion message.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_cal_start LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Start a calibration.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_change_hv_allowed LIM_Mode object_p,
int  new_value
[static]
 

Change the value of the HV-Allowed flag.

Parameters:
object_p Pointer to mode object.
new_value New flag value.
Returns:
MSG code.

unsigned int lim_mode_change_op_mode LIM_Mode object_p,
LIM_Operating_Mode  new_mode
[static]
 

Change the current operating mode.

Parameters:
object_p Pointer to mode object.
new_mode New operating mode.
Returns:
MSG code.

unsigned int lim_mode_change_saa LIM_Mode object_p,
int  new_status
[static]
 

Change the current SAA transit status.

Parameters:
object_p Pointer to mode object.
new_status New SAA transit status.
Returns:
MSG code.

unsigned int lim_mode_check LIM_Mode object_p  )  [static]
 

Validate a LIM mode object pointer.

Parameters:
object_p Pointer to mode object.
Returns:
MSG code.

unsigned int lim_mode_config_gbm LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the Configure-GBM command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_config_hv LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the Configure-HV command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_config_pid LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the Configure-PID command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int LIM_mode_delete LIM_Mode object_p  ) 
 

Shutdown and delete a mode object.

Parameters:
object_p Pointer to mode object.
Returns:
MSG code.

unsigned int lim_mode_gbm_calcinfo LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the GBM-Calcinfo command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_gbm_closeout LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the GBM-Closeout command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_gbm_repoint LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a GBM-Repoint command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object (ignored).
Returns:
MSG code.

unsigned int LIM_mode_get_info LIM_Mode object_p,
LIM_Info info_p
 

Return mode information.

Parameters:
object_p Pointer to LIM mode object.
info_p Location to return mode information (must not be NULL).
Returns:
MSG code.

unsigned int lim_mode_grb_confirmed LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the GRB-Confirmed command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item.
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_grb_finished LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the GRB-Finished command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_grb_suspected LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle the GRB-Suspected command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int LIM_mode_handle_bulk void *  prm,
const ITC_QueueItem *  qitem_p,
void *  pay_p,
unsigned int  len
 

Handle messages arriving on the BULK queue.

Parameters:
prm Pointer to a context parm (ptr to mode control object).
qitem_p Pointer to queue item.
pay_p Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int lim_mode_handle_bulk LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
[static]
 

Handle the BULK queue messages.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

void lim_mode_handle_cal LIM_Mode object_p,
LIM_Operating_Mode  target_mode
[static]
 

Perform actions for the CALIBRATION operating mode.

Parameters:
object_p Pointer to mode object.
target_mode Desired operating mode.
Returns:
MSG code.

unsigned int LIM_mode_handle_cal_abort LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the Cal-Abort command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_cal_active LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle an 'active' calibration command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int lim_mode_handle_cal_complete LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
[static]
 

Handle the Cal-Complete message.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_cal_start LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the Cal-Start command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int lim_mode_handle_command void *  prm,
const ITC_QueueItem *  qitem,
Lim_Mode_Command cmd_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Generic command handler.

Parameters:
prm Pointer to context parm (ptr to mode control info).
qitem Pointer to command queue item.
cmd_p Pointer to command information.
pkt_send_p Pointer to a packet sending object.
Returns:
MSG code.

unsigned int LIM_mode_handle_gbm_calcinfo LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the GBM-Calcinfo command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_gbm_closeout LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the GBM-Closeout command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_gbm_repoint LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle a GBM-Repoint command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

void lim_mode_handle_hold LIM_Mode object_p,
LIM_Operating_Mode  target_mode
[static]
 

Perform actions for the HOLD operating mode.

Parameters:
object_p Pointer to mode object.
target_mode Desired operating mode.
Returns:
MSG code.

unsigned int lim_mode_handle_lpa_bulk LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
void *  pay_p,
unsigned int  len
[static]
 

Handle messages arriving on the BULK queue from the LPA task.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item.
pay_p Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

void lim_mode_handle_obs LIM_Mode object_p,
LIM_Operating_Mode  target_mode
[static]
 

Perform actions for one of the observation operating modes.

Parameters:
object_p Pointer to mode object.
target_mode Desired operating mode.
Returns:
MSG code.

unsigned int lim_mode_handle_op_mode LIM_Mode object_p  )  [static]
 

Perform actions within the various operating modes.

Parameters:
object_p Pointer to mode object.
Returns:
MSG code.

unsigned int LIM_mode_handle_physics_active LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle an 'active' physics command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_physics_idle LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle an 'idle' physics command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_physics_start LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the Physics-Start command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

unsigned int LIM_mode_handle_physics_stop LIM_Mode object_p,
LIM_Pkt_Send pkt_send_p,
const ITC_QueueItem *  qitem_p
 

Handle the Physics-Stop command.

Parameters:
object_p Pointer to LIM mode object.
pkt_send_p Pointer to packet sending object.
qitem_p Pointer to queue item.
Returns:
MSG code.

void lim_mode_handle_quiescent LIM_Mode object_p,
LIM_Operating_Mode  target_mode
[static]
 

Perform actions for the QUIESCENT operating mode.

Parameters:
object_p Pointer to mode object.
target_mode Desired operating mode.
Returns:
MSG code.

void lim_mode_handle_terminal LIM_Mode object_p,
LIM_Operating_Mode  target_mode
[static]
 

Perform actions for the TERMINAL operating mode.

Parameters:
object_p Pointer to mode object.
target_mode Desired operating mode.
Returns:
MSG code.

unsigned int lim_mode_hold_enter LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Enter the HOLD operating mode.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_hold_exit LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Exit the HOLD operating mode.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_latc_config LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Call the LATC_cache, LATC_configure, and LATC_ignore functions.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_latc_record LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Call the LATC_capture() and LATC_consign() functions.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_latc_verify LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Call the LATC_capture, LATC_verify, and LATC_consign functions.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_load_shed LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Shed LAT instrument loads.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_look_at_me LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Send the Look-At-Me command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_main_feed_on LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Enable the main power feed and transition to QUIESCENT mode.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int LIM_mode_new LIM_Mode **  object_pp,
LIM_Task task_p,
LIM_Pkt_Send cal_start_p,
LIM_Pkt_Send cal_abort_p,
LIM_Pkt_Send diag_start_p,
LIM_Pkt_Send diag_abort_p,
LIM_Pkt_Send gbm_calcinfo_p,
LIM_Pkt_Send gbm_closeout_p,
LIM_Pkt_Send gbm_repoint_p,
LIM_Pkt_Send ltc_stop_p,
LIM_Pkt_Send physics_start_p,
LIM_Pkt_Send physics_stop_p,
LIM_Pkt_Send slew_req_cmd_p,
LIM_Pkt_Send slew_req_tlm_p,
LIM_Pkt_Send slew_rsp_tlm_p,
LIM_Pkt_Send shed_alert_tlm_p,
LIM_Action action_p,
LIM_Pool pool_p,
const LIM_DB_Schema *  db_p
 

Create and initialize a new mode object.

Parameters:
object_pp Location to return pointer to new object.
task_p Ptr to a task object.
cal_start_p Ptr to a Cal-Start pkt sending obj.
cal_abort_p Ptr to a Cal-Abort pkt sending obj.
diag_start_p Ptr to a Diag-Start pkt sending obj.
diag_abort_p Ptr to a Diag-Abort pkt sending obj.
gbm_calcinfo_p Ptr to a GBM-Calcinfo pkt sending obj.
gbm_closeout_p Ptr to a GBM-Closeout pkt sending obj.
gbm_repoint_p Ptr to a GBM-Repoint pkt sending obj.
ltc_stop_p Ptr to a LTC-Stop pkt sending obj.
physics_start_p Ptr to a Physics-Start pkt sending obj.
physics_stop_p Ptr to a Physics-Stop pkt sending obj.
slew_req_cmd_p Ptr to a Slew-Request cmd pkt sending obj.
slew_req_tlm_p Ptr to a Slew-Request tlm pkt sending obj.
slew_rsp_tlm_p Ptr to a Slew-Request resp tlm pkt send obj.
shed_alert_tlm_p Ptr to a Load-Shed-Alert tlm pkt send obj.
action_p Ptr to an action object.
pool_p Ptr to a packet pool object.
db_p Pointer to configuration information.
Returns:
MSG code.

unsigned int lim_mode_noop LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Acknowledge our existence.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_physics_active LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle an 'active' physics command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object.
Returns:
MSG code.

unsigned int lim_mode_physics_complete LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a Physics-Complete command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to command's queue item.
pkt_send_p Pointer to command's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_physics_idle LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle an 'idle' physics command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item containing the command.
pkt_send_p Pointer to a packet sending object.
Returns:
MSG code.

unsigned int lim_mode_physics_start LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a Physics-Start command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to command's queue item.
pkt_send_p Pointer to command's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_physics_stop LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a Physics-Stop command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to command's queue item.
pkt_send_p Pointer to command's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_pig_record LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Call the PIG_record() function.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_power_off LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Disable power from one or more LAT instrument components.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_power_on LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Enable power to one or more LAT instrument components.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_saa_enter LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Enter the SAA.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_saa_exit LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Exit the SAA.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

unsigned int lim_mode_stop_activity LIM_Mode object_p  )  [static]
 

Stop any ongoing LCI, LDF, LPA, and LTC activity.

Parameters:
object_p Pointer to mode object.
Returns:
MSG code.

LIM_Operating_Mode lim_mode_target_mode LIM_Mode object_p  )  [static]
 

Determine the next desired operation mode.

Parameters:
object_p Pointer to mode object.
Returns:
Desired operating mode.

unsigned int lim_mode_too_abort LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Handle a TOO-Abort command.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to command's queue item.
pkt_send_p Pointer to command's packet sending object (ignored).
Returns:
MSG code.

unsigned int lim_mode_too_start LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p
[static]
 

Start a TOO observation.

Parameters:
object_p Pointer to mode object.
qitem_p Pointer to queue item (unused).
pkt_send_p Pointer to a packet sending object (unused).
Returns:
MSG code.

void lim_mode_wait_for_complete void   )  [static]
 

Allow time for a task to respond to a stop/abort command.

Returns:
Nothing.

unsigned int LIM_Noop void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM No-op command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Pig_Record void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Pig-Record command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Power_Off void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Power-Off command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_Power_On void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM Power-On command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_SAA_Enter void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM SAA-Enter command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_SAA_Exit void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM SAA-Exit command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_TOO_Abort void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM TOO-Abort command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.

unsigned int LIM_TOO_Start void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len
 

Handle the LIM TOO-Start command.

Parameters:
prm Pointer to a context parameter (ptr to mode control info).
qitem Pointer to queue item.
pay Pointer to command payload.
len Length of the command payload, in bytes.
Returns:
MSG code.


Variable Documentation

Lim_command_arr_abort
 

Initial value:

    { "ARR-Abort", 2 + sizeof (LIM_ARR_Abort_Pkt), Lim_handler_arr_abort }
Information about the ARR-Abort command.

Lim_command_arr_response
 

Initial value:

    { "ARR-Response",
      2 + sizeof (LIM_ARR_Response_Pkt),
      Lim_handler_arr_response }
Information about the ARR-Response command.

Lim_command_bias_acd
 

Initial value:

    { "Bias-ACD", 2 + sizeof (LIM_Bias_ACD_Pkt), Lim_handler_bias_acd }
Information about the Bias-ACD command.

Lim_command_bias_cal
 

Initial value:

    { "Bias-CAL", 2 + sizeof (LIM_Bias_CAL_Pkt), Lim_handler_bias_cal }
Information about the Bias-CAL command.

Lim_command_bias_tkr
 

Initial value:

    { "Bias-TKR", 2 + sizeof (LIM_Bias_TKR_Pkt), Lim_handler_bias_tkr }
Information about the Bias-TKR command.

Lim_command_bulk
 

Initial value:

    { "BULK queue message", 0, Lim_handler_bulk }
Information about the BULK queue messages.

Lim_command_cal_abort
 

Initial value:

    { "Calibration-Abort", 0, Lim_handler_cal_abort }
Information about the Cal-Abort command.

Lim_command_cal_active
 

Initial value:

    { "Calibration-Active", 0, Lim_handler_cal_active }
Information about the 'active' calibration commands.

Lim_command_cal_complete
 

Initial value:

    { "Calibration-Complete", 0, Lim_handler_cal_complete }
Information about the Cal-Complete command.

Lim_command_cal_start
 

Initial value:

    { "Calibration-Start", 0, Lim_handler_cal_start }
Information about the Cal-Start command.

Lim_command_config_gbm
 

Initial value:

    { "Configure-GBM",
      2 + sizeof (LIM_Config_GBM_Pkt),
      Lim_handler_config_gbm }
Information about the Configure-GBM command.

Lim_command_config_hv
 

Initial value:

    { "Configure-HV", 2 + sizeof (LIM_Config_HV_Pkt), Lim_handler_config_hv }
Information about the Configure-HV command.

Lim_command_config_pid
 

Initial value:

    { "Configure-PID",
      2 + sizeof (LIM_Config_PID_Pkt),
      Lim_handler_config_pid }
Information about the Configure-PID command.

Lim_command_gbm_calcinfo
 

Initial value:

    { "GBM-Calcinfo", 1000, Lim_handler_gbm_calcinfo }
Information about the GBM-Calcinfo command.

Lim_command_gbm_closeout
 

Initial value:

    { "GBM-Closeout", 1000, Lim_handler_gbm_closeout }
Information about the GBM-Closeout command.

Lim_command_gbm_repoint
 

Initial value:

    { "GBM-Repoint", 1000, Lim_handler_gbm_repoint }
Information about the GBM-Repoint command.

Lim_command_grb_confirmed
 

Initial value:

    { "GRB-Confirmed", 1000, Lim_handler_grb_confirmed }
Information about the GRB-Confirmed command.

Lim_command_grb_finished
 

Initial value:

    { "GRB-Finished", 1000, Lim_handler_grb_finished }
Information about the GRB-Finished command.

Lim_command_grb_suspected
 

Initial value:

    { "GRB-Suspected", 1000, Lim_handler_grb_suspected }
Information about the GRB-Suspected command.

Lim_command_hold_enter
 

Initial value:

    { "Hold-Enter", 2 + sizeof (LIM_Hold_Enter_Pkt), Lim_handler_hold_enter }
Information about the Hold-Enter command.

Lim_command_hold_exit
 

Initial value:

    { "Hold-Exit", 2 + sizeof (LIM_Hold_Exit_Pkt), Lim_handler_hold_exit }
Information about the Hold-Exit command.

Lim_command_latc_config
 

Initial value:

    { "Latc-Config",
      2 + sizeof (LIM_Latc_Config_Pkt),
      Lim_handler_latc_config }
Information about the Latc-Config command.

Lim_command_latc_record
 

Initial value:

    { "Latc-Record",
      2 + sizeof (LIM_Latc_Record_Pkt),
      Lim_handler_latc_record }
Information about the Latc-Record command.

Lim_command_latc_verify
 

Initial value:

    { "Latc-Verify",
      2 + sizeof (LIM_Latc_Verify_Pkt),
      Lim_handler_latc_verify }
Information about the Latc-Verify command.

Lim_command_load_shed
 

Initial value:

    { "Load-Shed", 2 + sizeof (LIM_Load_Shed_Pkt), Lim_handler_load_shed }
Information about the Load-Shed command.

Lim_command_look_at_me
 

Initial value:

    { "Look-At-Me", 2 + sizeof (LIM_Look_At_Me_Pkt), Lim_handler_look_at_me }
Information about the Look-At-Me command.

Lim_command_main_feed_on
 

Initial value:

    { "Main-Feed-On",
      2 + sizeof (LIM_Main_Feed_On_Pkt),
      Lim_handler_main_feed_on }
Information about the Main-Feed-On command.

Lim_command_noop
 

Initial value:

    { "No-Op", 2 + sizeof (LIM_Noop_Pkt), Lim_handler_noop }
Information about the No-Op command.

Lim_command_physics_active
 

Initial value:

    { "Physics-Active", 0, Lim_handler_physics_active }
Information about the 'active' physics commands.

Lim_command_physics_complete
 

Initial value:

    { "Physics-Complete", 1000, Lim_handler_physics_complete }
Information about the Physics-Complete command.

Lim_command_physics_idle
 

Initial value:

    { "Physics-Idle", 0, Lim_handler_physics_idle }
Information about the 'idle' physics commands.

Lim_command_physics_start
 

Initial value:

    { "Physics-Start", 1000, Lim_handler_physics_start }
Information about the Physics-Start command.

Lim_command_physics_stop
 

Initial value:

    { "Physics-Stop", 1000, Lim_handler_physics_stop }
Information about the Physics-Stop command.

Lim_command_pig_record
 

Initial value:

    { "Pig-Record", 2 + sizeof (LIM_Pig_Record_Pkt), Lim_handler_pig_record }
Information about the Pig-Record command.

Lim_command_power_off
 

Initial value:

    { "Power-Off", 2 + sizeof (LIM_Power_Off_Pkt), Lim_handler_power_off }
Information about the Power-Off command.

Lim_command_power_on
 

Initial value:

    { "Power-On", 2 + sizeof (LIM_Power_On_Pkt), Lim_handler_power_on }
Information about the Power-On command.

Lim_command_saa_enter
 

Initial value:

    { "SAA-Enter", 2 + sizeof (LIM_SAA_Enter_Pkt), Lim_handler_saa_enter }
Information about the SAA-Enter command.

Lim_command_saa_exit
 

Initial value:

    { "SAA-Exit", 2 + sizeof (LIM_SAA_Exit_Pkt), Lim_handler_saa_exit }
Information about the SAA-Exit command.

Lim_command_too_abort
 

Initial value:

    { "TOO-Abort", 2 + sizeof (LIM_TOO_Abort_Pkt), Lim_handler_too_abort }
Information about the TOO-Abort command.

Lim_command_too_start
 

Initial value:

    { "TOO-Start", 2 + sizeof (LIM_TOO_Start_Pkt), Lim_handler_too_start }
Information about the TOO-Start command.

Lim_handler_arr_abort
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL ,   lim_mode_arr_abort },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_arr_abort },
        { LIM_OP_MODE_CALIBRATION, lim_mode_arr_abort },
        { LIM_OP_MODE_PHYSICS,     lim_mode_arr_abort },
        { LIM_OP_MODE_TOO,         lim_mode_arr_abort },
        { LIM_OP_MODE_ARR,         lim_mode_arr_abort },
        { -1,                      NULL               },
    }
Handlers for the ARR-Abort command.

Lim_handler_arr_response
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_arr_response },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_arr_response },
        { LIM_OP_MODE_CALIBRATION, lim_mode_arr_response },
        { LIM_OP_MODE_PHYSICS,     lim_mode_arr_response },
        { LIM_OP_MODE_TOO,         lim_mode_arr_response },
        { LIM_OP_MODE_ARR,         lim_mode_arr_response },
        { LIM_OP_MODE_HOLD,        lim_mode_arr_response },
        { -1,                      NULL                       },
    }
Handlers for the ARR-Response command.

Lim_handler_bias_acd
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_bias_acd },
        { LIM_OP_MODE_TOO,         lim_mode_bias_acd },
        { LIM_OP_MODE_ARR,         lim_mode_bias_acd },
        { -1,                      NULL              },
    }
Handlers for the Bias-ACD command.

Lim_handler_bias_cal
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_bias_cal },
        { LIM_OP_MODE_TOO,         lim_mode_bias_cal },
        { LIM_OP_MODE_ARR,         lim_mode_bias_cal },
        { -1,                      NULL              },
    }
Handlers for the Bias-CAL command.

Lim_handler_bias_tkr
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_bias_tkr },
        { LIM_OP_MODE_TOO,         lim_mode_bias_tkr },
        { LIM_OP_MODE_ARR,         lim_mode_bias_tkr },
        { -1,                      NULL              },
    }
Handlers for the Bias-TKR command.

Lim_handler_bulk
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_bulk },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_bulk },
        { LIM_OP_MODE_CALIBRATION, lim_mode_bulk },
        { LIM_OP_MODE_PHYSICS,     lim_mode_bulk },
        { LIM_OP_MODE_TOO,         lim_mode_bulk },
        { LIM_OP_MODE_ARR,         lim_mode_bulk },
        { LIM_OP_MODE_HOLD,        lim_mode_bulk },
        { -1,                      NULL          },
    }
Handlers for the BULK queue messages.

Lim_handler_cal_abort
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_cal_abort },
        { LIM_OP_MODE_CALIBRATION, lim_mode_cal_abort },
        { LIM_OP_MODE_PHYSICS,     lim_mode_cal_abort },
        { LIM_OP_MODE_TOO,         lim_mode_cal_abort },
        { LIM_OP_MODE_ARR,         lim_mode_cal_abort },
        { -1,                      NULL               },
    }
Handlers for the Cal-Abort command.

Lim_handler_cal_active
 

Initial value:

Handlers for 'active' calibration commands.

Lim_handler_cal_complete
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_cal_complete },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_cal_complete },
        { LIM_OP_MODE_CALIBRATION, lim_mode_cal_complete },
        { LIM_OP_MODE_PHYSICS,     lim_mode_cal_complete },
        { LIM_OP_MODE_TOO,         lim_mode_cal_complete },
        { LIM_OP_MODE_ARR,         lim_mode_cal_complete },
        { LIM_OP_MODE_HOLD,        lim_mode_cal_complete },
        { -1,                      NULL                  },
    }
Handlers for the Cal-Complete command.

Lim_handler_cal_start
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_cal_start },
        { -1,                      NULL               },
    }
Handlers for the Cal-Start command.

Lim_handler_config_gbm
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_config_gbm },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_config_gbm },
        { LIM_OP_MODE_CALIBRATION, lim_mode_config_gbm },
        { LIM_OP_MODE_PHYSICS,     lim_mode_config_gbm },
        { LIM_OP_MODE_TOO,         lim_mode_config_gbm },
        { LIM_OP_MODE_ARR,         lim_mode_config_gbm },
        { LIM_OP_MODE_HOLD,        lim_mode_config_gbm },
        { -1,                      NULL                },
    }
Handlers for the Configure-GBM command.

Lim_handler_config_hv
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_config_hv },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_config_hv },
        { LIM_OP_MODE_CALIBRATION, lim_mode_config_hv },
        { LIM_OP_MODE_PHYSICS,     lim_mode_config_hv },
        { LIM_OP_MODE_TOO,         lim_mode_config_hv },
        { LIM_OP_MODE_ARR,         lim_mode_config_hv },
        { LIM_OP_MODE_HOLD,        lim_mode_config_hv },
        { -1,                      NULL               },
    }
Handlers for the Configure-HV command.

Lim_handler_config_pid
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_config_pid },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_config_pid },
        { LIM_OP_MODE_CALIBRATION, lim_mode_config_pid },
        { LIM_OP_MODE_PHYSICS,     lim_mode_config_pid },
        { LIM_OP_MODE_TOO,         lim_mode_config_pid },
        { LIM_OP_MODE_ARR,         lim_mode_config_pid },
        { LIM_OP_MODE_HOLD,        lim_mode_config_pid },
        { -1,                      NULL                },
    }
Handlers for the Configure-PID command.

Lim_handler_gbm_calcinfo
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_CALIBRATION, lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_PHYSICS,     lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_TOO,         lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_ARR,         lim_mode_gbm_calcinfo },
        { LIM_OP_MODE_HOLD,        lim_mode_gbm_calcinfo },
        { -1,                      NULL                  },
    }
Handlers for the GBM-Calcinfo command.

Lim_handler_gbm_closeout
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_gbm_closeout },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_gbm_closeout },
        { LIM_OP_MODE_CALIBRATION, lim_mode_gbm_closeout },
        { LIM_OP_MODE_PHYSICS,     lim_mode_gbm_closeout },
        { LIM_OP_MODE_TOO,         lim_mode_gbm_closeout },
        { LIM_OP_MODE_ARR,         lim_mode_gbm_closeout },
        { LIM_OP_MODE_HOLD,        lim_mode_gbm_closeout },
        { -1,                      NULL                  },
    }
Handlers for the GBM-Closeout command.

Lim_handler_gbm_repoint
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_gbm_repoint },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_gbm_repoint },
        { LIM_OP_MODE_CALIBRATION, lim_mode_gbm_repoint },
        { LIM_OP_MODE_PHYSICS,     lim_mode_gbm_repoint },
        { LIM_OP_MODE_TOO,         lim_mode_gbm_repoint },
        { LIM_OP_MODE_ARR,         lim_mode_gbm_repoint },
        { LIM_OP_MODE_HOLD,        lim_mode_gbm_repoint },
        { -1,                      NULL                 },
    }
Handlers for GBM-Repoint command.

Lim_handler_grb_confirmed
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_grb_confirmed },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_grb_confirmed },
        { LIM_OP_MODE_CALIBRATION, lim_mode_grb_confirmed },
        { LIM_OP_MODE_PHYSICS,     lim_mode_grb_confirmed },
        { LIM_OP_MODE_ARR,         lim_mode_grb_confirmed },
        { LIM_OP_MODE_TOO,         lim_mode_grb_confirmed },
        { LIM_OP_MODE_HOLD,        lim_mode_grb_confirmed },
        { -1,                      NULL                   },
    }
Handlers for the GRB-Confirmed command.

Lim_handler_grb_finished
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_grb_finished },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_grb_finished },
        { LIM_OP_MODE_CALIBRATION, lim_mode_grb_finished },
        { LIM_OP_MODE_PHYSICS,     lim_mode_grb_finished },
        { LIM_OP_MODE_ARR,         lim_mode_grb_finished },
        { LIM_OP_MODE_TOO,         lim_mode_grb_finished },
        { LIM_OP_MODE_HOLD,        lim_mode_grb_finished },
        { -1,                      NULL                  },
    }
Handlers for the GRB-Finished command.

Lim_handler_grb_suspected
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_grb_suspected },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_grb_suspected },
        { LIM_OP_MODE_CALIBRATION, lim_mode_grb_suspected },
        { LIM_OP_MODE_PHYSICS,     lim_mode_grb_suspected },
        { LIM_OP_MODE_ARR,         lim_mode_grb_suspected },
        { LIM_OP_MODE_TOO,         lim_mode_grb_suspected },
        { LIM_OP_MODE_HOLD,        lim_mode_grb_suspected },
        { -1,                      NULL                   },
    }
Handlers for the GRB-Suspected command.

Lim_handler_hold_enter
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_hold_enter },
        { LIM_OP_MODE_CALIBRATION, lim_mode_hold_enter },
        { LIM_OP_MODE_PHYSICS,     lim_mode_hold_enter },
        { LIM_OP_MODE_TOO,         lim_mode_hold_enter },
        { LIM_OP_MODE_ARR,         lim_mode_hold_enter },
        { -1,                      NULL                },
    }
Handlers for the Hold-Enter command.

Lim_handler_hold_exit
 

Initial value:

    {
        { LIM_OP_MODE_HOLD,        lim_mode_hold_exit },
        { -1,                      NULL               },
    }
Handlers for the Hold-Exit command.

Lim_handler_latc_config
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_latc_config },
        { LIM_OP_MODE_TOO,         lim_mode_latc_config },
        { LIM_OP_MODE_ARR,         lim_mode_latc_config },
        { LIM_OP_MODE_HOLD,        lim_mode_latc_config },
        { -1,                      NULL                 },
    }
Handlers for the Latc-Config command.

Lim_handler_latc_record
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_latc_record },
        { LIM_OP_MODE_TOO,         lim_mode_latc_record },
        { LIM_OP_MODE_ARR,         lim_mode_latc_record },
        { LIM_OP_MODE_HOLD,        lim_mode_latc_record },
        { -1,                      NULL                 },
    }
Handlers for the Latc-Record command.

Lim_handler_latc_verify
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_latc_verify },
        { LIM_OP_MODE_TOO,         lim_mode_latc_verify },
        { LIM_OP_MODE_ARR,         lim_mode_latc_verify },
        { LIM_OP_MODE_HOLD,        lim_mode_latc_verify },
        { -1,                      NULL                 },
    }
Handlers for the Latc-Verify command.

Lim_handler_load_shed
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_load_shed },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_load_shed },
        { LIM_OP_MODE_CALIBRATION, lim_mode_load_shed },
        { LIM_OP_MODE_PHYSICS,     lim_mode_load_shed },
        { LIM_OP_MODE_TOO,         lim_mode_load_shed },
        { LIM_OP_MODE_ARR,         lim_mode_load_shed },
        { LIM_OP_MODE_HOLD,        lim_mode_load_shed },
        { -1,                      NULL               },
    }
Handlers for the Load-Shed command.

Lim_handler_look_at_me
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_look_at_me },
        { LIM_OP_MODE_CALIBRATION, lim_mode_look_at_me },
        { LIM_OP_MODE_PHYSICS,     lim_mode_look_at_me },
        { LIM_OP_MODE_TOO,         lim_mode_look_at_me },
        { LIM_OP_MODE_ARR,         lim_mode_look_at_me },
        { LIM_OP_MODE_HOLD,        lim_mode_look_at_me },
        { -1,                      NULL                },
    }
Handlers for the Look-At-Me command.

Lim_handler_main_feed_on
 

Initial value:

Handlers for the Main-Feed-On command.

Lim_handler_noop
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_noop },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_noop },
        { LIM_OP_MODE_CALIBRATION, lim_mode_noop },
        { LIM_OP_MODE_PHYSICS,     lim_mode_noop },
        { LIM_OP_MODE_TOO,         lim_mode_noop },
        { LIM_OP_MODE_ARR,         lim_mode_noop },
        { LIM_OP_MODE_HOLD,        lim_mode_noop },
        { -1,                      NULL          },
    }
Handlers for the No-Op command.

Lim_handler_physics_active
 

Initial value:

Handlers for 'active' physics commands.

Lim_handler_physics_complete
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_physics_complete },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_physics_complete },
        { LIM_OP_MODE_CALIBRATION, lim_mode_physics_complete },
        { LIM_OP_MODE_PHYSICS,     lim_mode_physics_complete },
        { LIM_OP_MODE_TOO,         lim_mode_physics_complete },
        { LIM_OP_MODE_ARR,         lim_mode_physics_complete },
        { LIM_OP_MODE_HOLD,        lim_mode_physics_complete },
        { -1,                      NULL                      },
    }
Handlers for the Physics-Complete command.

Lim_handler_physics_idle
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_physics_idle },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_physics_idle },
        { LIM_OP_MODE_CALIBRATION, lim_mode_physics_idle },
        { -1,                      NULL                  },
    }
Handlers for 'idle' physics commands.

Lim_handler_physics_start
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_physics_start },
        { LIM_OP_MODE_TOO,         lim_mode_physics_start },
        { LIM_OP_MODE_ARR,         lim_mode_physics_start },
        { -1,                      NULL                   },
    }
Handlers for the Physics-Start command.

Lim_handler_physics_stop
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_physics_stop },
        { LIM_OP_MODE_CALIBRATION, lim_mode_physics_stop },
        { LIM_OP_MODE_PHYSICS,     lim_mode_physics_stop },
        { LIM_OP_MODE_TOO,         lim_mode_physics_stop },
        { LIM_OP_MODE_ARR,         lim_mode_physics_stop },
        { -1,                      NULL                  },
    }
Handlers for the Physics-Stop command.

Lim_handler_pig_record
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_pig_record },
        { LIM_OP_MODE_CALIBRATION, lim_mode_pig_record },
        { LIM_OP_MODE_PHYSICS,     lim_mode_pig_record },
        { LIM_OP_MODE_TOO,         lim_mode_pig_record },
        { LIM_OP_MODE_ARR,         lim_mode_pig_record },
        { LIM_OP_MODE_HOLD,        lim_mode_pig_record },
        { -1,                      NULL                },
    }
Handlers for the Pig-Record command.

Lim_handler_power_off
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_power_off },
        { -1,                      NULL               },
    }
Handlers for the Power-Off command.

Lim_handler_power_on
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_power_on },
        { -1,                      NULL               },
    }
Handlers for the Power-On command.

Lim_handler_saa_enter
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_saa_enter },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_saa_enter },
        { LIM_OP_MODE_CALIBRATION, lim_mode_saa_enter },
        { LIM_OP_MODE_PHYSICS,     lim_mode_saa_enter },
        { LIM_OP_MODE_TOO,         lim_mode_saa_enter },
        { LIM_OP_MODE_ARR,         lim_mode_saa_enter },
        { LIM_OP_MODE_HOLD,        lim_mode_saa_enter },
        { -1,                      NULL               },
    }
Handlers for the SAA-Enter command.

Lim_handler_saa_exit
 

Initial value:

    {
        { LIM_OP_MODE_TERMINAL,    lim_mode_saa_exit },
        { LIM_OP_MODE_QUIESCENT,   lim_mode_saa_exit },
        { LIM_OP_MODE_CALIBRATION, lim_mode_saa_exit },
        { LIM_OP_MODE_PHYSICS,     lim_mode_saa_exit },
        { LIM_OP_MODE_TOO,         lim_mode_saa_exit },
        { LIM_OP_MODE_ARR,         lim_mode_saa_exit },
        { LIM_OP_MODE_HOLD,        lim_mode_saa_exit },
        { -1,                      NULL                       },
    }
Handlers for the SAA-Exit command.

Lim_handler_too_abort
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_too_abort },
        { LIM_OP_MODE_CALIBRATION, lim_mode_too_abort },
        { LIM_OP_MODE_PHYSICS,     lim_mode_too_abort },
        { LIM_OP_MODE_TOO,         lim_mode_too_abort },
        { LIM_OP_MODE_ARR,         lim_mode_too_abort },
        { -1,                      NULL                  },
    }
Handlers for the TOO-Abort command.

Lim_handler_too_start
 

Initial value:

    {
        { LIM_OP_MODE_QUIESCENT,   lim_mode_too_start },
        { LIM_OP_MODE_PHYSICS,     lim_mode_too_start },
        { LIM_OP_MODE_ARR,         lim_mode_too_start },
        { -1,                      NULL               },
    }
Handlers for the TOO-Start command.


Generated on Thu Oct 30 01:44:59 2008 by  doxygen 1.4.4