GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-4 > lim / mv2304


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 <LCFG/LCFG.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>

Classes

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 struct _Lim_Mode_Handler Lim_Mode_Handler
 Typedef for _Lim_Mode_Handler.
typedef struct _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_bias_acd_on (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn on ACD bias voltages.
unsigned int LIM_Bias_ACD_On (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-ACD-On command.
static unsigned int lim_mode_bias_cal_on (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn on CAL bias voltages.
unsigned int LIM_Bias_CAL_On (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-CAL-On command.
static unsigned int lim_mode_bias_tkr_on (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn on TKR bias voltages.
unsigned int LIM_Bias_TKR_On (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-TKR-On command.
static unsigned int lim_mode_bias_acd_off (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn off ACD bias voltages.
unsigned int LIM_Bias_ACD_Off (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-ACD-Off command.
static unsigned int lim_mode_bias_cal_off (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn off CAL bias voltages.
unsigned int LIM_Bias_CAL_Off (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-CAL-Off command.
static unsigned int lim_mode_bias_tkr_off (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Turn off TKR bias voltages.
unsigned int LIM_Bias_TKR_Off (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Bias-TKR-Off 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 LCFG_cache, LCFG_configure, and LCFG_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 LCFG_capture() and LCFG_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 LCFG_capture, LCFG_verify, and LCFG_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_pig_verify (LIM_Mode *object_p, const ITC_QueueItem *qitem_p, LIM_Pkt_Send *pkt_send_p)
 Call the PIG_verify() function.
unsigned int LIM_Pig_Verify (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len)
 Handle the LIM Pig-Verify 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_bias_acd_on []
 Handlers for the Bias-ACD-On command.
Lim_Mode_Command Lim_command_bias_acd_on
 Information about the Bias-ACD-On command.
Lim_Mode_Handler Lim_handler_bias_cal_on []
 Handlers for the Bias-CAL-On command.
Lim_Mode_Command Lim_command_bias_cal_on
 Information about the Bias-CAL-On command.
Lim_Mode_Handler Lim_handler_bias_tkr_on []
 Handlers for the Bias-TKR-On command.
Lim_Mode_Command Lim_command_bias_tkr_on
 Information about the Bias-TKR_on command.
Lim_Mode_Handler Lim_handler_bias_acd_off []
 Handlers for the Bias-ACD-Off command.
Lim_Mode_Command Lim_command_bias_acd_off
 Information about the Bias-ACD-Off command.
Lim_Mode_Handler Lim_handler_bias_cal_off []
 Handlers for the Bias-CAL-Off command.
Lim_Mode_Command Lim_command_bias_cal_off
 Information about the Bias-CAL-Off command.
Lim_Mode_Handler Lim_handler_bias_tkr_off []
 Handlers for the Bias-TKR-Off command.
Lim_Mode_Command Lim_command_bias_tkr_off
 Information about the Bias-TKR_Off 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_pig_verify []
 Handlers for the Pig-Verify command.
Lim_Mode_Command Lim_command_pig_verify
 Information about the Pig-Verify 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.52 2011/03/29 21:20:28 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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

unsigned int LIM_Bias_ACD_Off ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-ACD-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.

References lim_mode_handle_command().

unsigned int LIM_Bias_ACD_On ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-ACD-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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

unsigned int LIM_Bias_CAL_Off ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-CAL-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.

References lim_mode_handle_command().

unsigned int LIM_Bias_CAL_On ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-CAL-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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

unsigned int LIM_Bias_TKR_Off ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-TKR-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.

References lim_mode_handle_command().

unsigned int LIM_Bias_TKR_On ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Bias-TKR-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.

References lim_mode_handle_command().

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

References LIM_K_RESET_FORMAT_0.

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_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.

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References _LIM_Mode::arr_p, and LIM_arr_handle_abort().

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.

References _LIM_Mode::arr_p, and LIM_arr_handle_response().

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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_acd(), _LIM_Mode::lpa_p, and _LIM_Bias_ACD_Pkt::pay.

unsigned int lim_mode_bias_acd_off ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn off 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.

References _LIM_Bias_ACD_Off_Prm::acdmask, _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_acd_off(), _LIM_Mode::lpa_p, and _LIM_Bias_ACD_Off_Pkt::pay.

unsigned int lim_mode_bias_acd_on ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn on 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.

References _LIM_Bias_ACD_On_Prm::acdmask, _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_acd_on(), _LIM_Mode::lpa_p, and _LIM_Bias_ACD_On_Pkt::pay.

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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_cal(), _LIM_Mode::lpa_p, and _LIM_Bias_CAL_Pkt::pay.

unsigned int lim_mode_bias_cal_off ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn off 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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_cal_off(), _LIM_Mode::lpa_p, _LIM_Bias_CAL_Off_Pkt::pay, and _LIM_Bias_CAL_Off_Prm::temmask.

unsigned int lim_mode_bias_cal_on ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn on 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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_cal_on(), _LIM_Mode::lpa_p, _LIM_Bias_CAL_On_Pkt::pay, and _LIM_Bias_CAL_On_Prm::temmask.

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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_tkr(), _LIM_Mode::lpa_p, and _LIM_Bias_TKR_Pkt::pay.

unsigned int lim_mode_bias_tkr_off ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn off 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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_tkr_off(), _LIM_Mode::lpa_p, _LIM_Bias_TKR_Off_Pkt::pay, and _LIM_Bias_TKR_Off_Prm::temmask.

unsigned int lim_mode_bias_tkr_on ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Turn on 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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, LIM_pig_bias_tkr_on(), _LIM_Mode::lpa_p, _LIM_Bias_TKR_On_Pkt::pay, and _LIM_Bias_TKR_On_Prm::temmask.

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.

References _LIM_Mode::arr_p, _LIM_Mode::lci_p, LIM_arr_handle_bulk(), LIM_lci_handle_bulk(), LIM_lpa_handle_bulk(), LIM_sc_handle_bulk(), LIM_too_handle_bulk(), _LIM_Mode::lpa_p, _LIM_Mode::op_mode, _LIM_Mode::sc_p, and _LIM_Mode::too_p.

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.

References _LIM_Mode::lci_p, and LIM_lci_fwd_abort().

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.

References _LIM_Mode::lci_p, and LIM_lci_fwd_other().

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.

References _LIM_Mode::action_p, _LIM_Mode::lci_p, LIM_ACTION_CAL_COMPLETE, LIM_action_report(), LIM_lci_handle_complete(), LIM_OP_MODE_CALIBRATION, and _LIM_Mode::op_mode.

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.

References _LIM_Mode::lci_p, and LIM_lci_send_start().

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.

References _LIM_Mode::action_p, _LIM_Mode::hv_allowed, LIM_ACTION_HV_STATE_CHANGE, LIM_action_report(), LIM_task_lock_access(), LIM_task_unlock_access(), and _LIM_Mode::task_p.

Referenced by lim_mode_config_hv().

unsigned int lim_mode_change_op_mode ( LIM_Mode object_p,
LIM_Operating_Mode  new_mode 
) [static]

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.

References _LIM_Mode::action_p, LIM_action_report(), LIM_ACTION_SAA_CHANGE, LIM_task_lock_access(), LIM_task_unlock_access(), _LIM_Mode::saa_transit, and _LIM_Mode::task_p.

Referenced by lim_mode_saa_enter(), and lim_mode_saa_exit().

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.

References _LIM_Mode::key, and LIM_MODE_VALID_KEY.

Referenced by LIM_mode_delete(), LIM_mode_get_info(), LIM_mode_handle_bulk(), and lim_mode_handle_command().

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.

References _LIM_Config_GBM_Prm::allowed, _LIM_CALLOWGBMBF::bf, _LIM_Mode::gbm_p, LIM_gbm_change_pri_int_allowed(), LIM_gbm_change_red_int_allowed(), LIM_gbm_change_rep_allowed(), LIM_gbm_configure_interrupts(), LIM_OP_MODE_TERMINAL, _LIM_Mode::op_mode, _LIM_Config_GBM_Pkt::pay, and _LIM_Mode::task_p.

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.

References _LIM_Mode::action_p, _LIM_Config_HV_Prm::allowed, _LIM_CALLOWHVBF::bf, lim_mode_change_hv_allowed(), LIM_OP_MODE_TERMINAL, LIM_pig_saa_enter(), LIM_pig_saa_exit(), _LIM_Mode::op_mode, _LIM_Config_HV_Pkt::pay, and _LIM_Mode::saa_transit.

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.

References _LIM_Mode::action_p, LIM_pid_select(), _LIM_Config_PID_Pkt::pay, and _LIM_Config_PID_Prm::primary_select.

unsigned int LIM_mode_delete ( LIM_Mode object_p  ) 

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.

References _LIM_Mode::arr_p, LIM_arr_handle_calcinfo(), LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, _LIM_Mode::lpa_p, and _LIM_Mode::op_mode.

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.

References _LIM_Mode::arr_p, LIM_arr_handle_closeout(), LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, and _LIM_Mode::lpa_p.

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.

2009-10-15 jgt If this command falls victim to a bad id check we want LIM to behave exactly as it always has, with the exception of rejecting the command. It turns out that occasionally, the GBM will send a second set of commands if it detects a new burst while the LAT is still in an ARR. In this case, the LAT is doing everything right, but by rejecting the commands we cause the FOT to be paged. In retrospect, the right thing to do is to accept the command, not process it, and print out a nastygram so that we know it happened.

References _LIM_Mode::arr_p, LIM_arr_handle_repoint(), LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, _LIM_Mode::lpa_p, and _LIM_Mode::op_mode.

unsigned int LIM_mode_get_info ( LIM_Mode object_p,
LIM_Info info_p 
)

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.

References _LIM_Mode::action_p, _LIM_Mode::arr_p, LIM_ACTION_RCV_GRB_CONFIRM, LIM_action_report(), LIM_arr_handle_confirmed(), LIM_OP_MODE_CALIBRATION, LIM_OP_MODE_HOLD, LIM_OP_MODE_TERMINAL, and _LIM_Mode::op_mode.

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.

References _LIM_Mode::action_p, _LIM_Mode::arr_p, LIM_ACTION_RCV_GRB_FINISH, LIM_action_report(), LIM_arr_handle_finished(), LIM_OP_MODE_ARR, and _LIM_Mode::op_mode.

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.

References _LIM_Mode::arr_p, LIM_arr_handle_suspected(), and _LIM_Mode::op_mode.

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.

References _LIM_Mode::cal_start_p, lim_mode_check(), lim_mode_handle_bulk(), lim_mode_handle_cal_complete(), lim_mode_handle_lpa_bulk(), LIM_pkt_send_get_tid(), and _LIM_Mode::physics_start_p.

Referenced by LIM_mode_new().

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.

References lim_mode_handle_command().

Referenced by LIM_mode_handle_bulk().

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.

References _LIM_Mode::lci_p, LIM_lci_get_state(), lim_mode_change_op_mode(), LIM_OP_MODE_QUIESCENT, and LIM_OTHER_STATE_IDLE.

Referenced by lim_mode_handle_op_mode().

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.

References lim_mode_handle_command().

Referenced by LIM_intercept_cal().

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.

References lim_mode_handle_command().

Referenced by LIM_intercept_cal().

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.

References lim_mode_handle_command().

Referenced by LIM_mode_handle_bulk().

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.

References lim_mode_handle_command().

Referenced by LIM_intercept_cal().

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

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.

2009-10-15 jgt If this command falls victim to a bad id check we want LIM to behave exactly as it always has, with the exception of rejecting the command. It turns out that occasionally, the GBM will send a second set of commands if it detects a new burst while the LAT is still in an ARR. In this case, the LAT is doing everything right, but by rejecting the commands we cause the FOT to be paged. In retrospect, the right thing to do is to accept the command, not process it, and print out a nastygram so that we know it happened.

References _Lim_Mode_Command::len, LIM_gbm_sizeof_calcinfo(), and lim_mode_handle_command().

Referenced by LIM_intercept_gbm().

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.

References _Lim_Mode_Command::len, LIM_gbm_sizeof_closeout(), and lim_mode_handle_command().

Referenced by LIM_intercept_gbm().

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.

References _Lim_Mode_Command::len, LIM_gbm_sizeof_repoint(), and lim_mode_handle_command().

Referenced by LIM_intercept_gbm().

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.

References lim_mode_change_op_mode(), LIM_OP_MODE_HOLD, and LIM_OP_MODE_QUIESCENT.

Referenced by lim_mode_handle_op_mode().

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.

References _Lim_Mode_Command::len, LIM_lpa_bulk_is_complete(), LIM_lpa_bulk_is_grb_confirmed(), LIM_lpa_bulk_is_grb_finished(), LIM_lpa_bulk_is_grb_suspected(), LIM_lpa_sizeof_complete(), LIM_lpa_sizeof_grb_confirmed(), LIM_lpa_sizeof_grb_finished(), LIM_lpa_sizeof_grb_suspected(), and lim_mode_handle_command().

Referenced by LIM_mode_handle_bulk().

void lim_mode_handle_obs ( LIM_Mode object_p,
LIM_Operating_Mode  target_mode 
) [static]

unsigned int lim_mode_handle_op_mode ( LIM_Mode object_p  )  [static]

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.

References lim_mode_handle_command().

Referenced by LIM_intercept_physics().

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.

References lim_mode_handle_command().

Referenced by LIM_intercept_physics(), and LIM_intercept_physics_idle().

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.

References _Lim_Mode_Command::len, LIM_lpa_sizeof_start(), and lim_mode_handle_command().

Referenced by LIM_intercept_physics().

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.

References _Lim_Mode_Command::len, LIM_lpa_sizeof_stop(), and lim_mode_handle_command().

Referenced by LIM_intercept_physics().

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.

References lim_mode_change_op_mode(), and LIM_OP_MODE_QUIESCENT.

Referenced by lim_mode_handle_op_mode().

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.

References lim_mode_change_op_mode(), LIM_OP_MODE_QUIESCENT, and LIM_OP_MODE_TERMINAL.

Referenced by lim_mode_handle_op_mode().

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.

References _LIM_Mode::hold_requested.

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.

References _LIM_Mode::hold_requested.

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

Call the LCFG_cache, LCFG_configure, and LCFG_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.

References _LIM_Latc_Config_Prm::ignore, _LIM_Latc_Config_Prm::latc, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, _LIM_Mode::lpa_p, and _LIM_Latc_Config_Pkt::pay.

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

Call the LCFG_capture() and LCFG_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.

References _LIM_Latc_Record_Prm::dest, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, _LIM_Mode::lpa_p, and _LIM_Latc_Record_Pkt::pay.

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

Call the LCFG_capture, LCFG_verify, and LCFG_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.

References _LIM_Latc_Verify_Prm::dest, LIM_lpa_get_state(), LIM_OTHER_STATE_RUNNING, LIM_OTHER_STATE_STOPPING, _LIM_Mode::lpa_p, and _LIM_Latc_Verify_Pkt::pay.

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.

References _LIM_Mode::action_p, LIM_action_report(), LIM_ACTION_SIU_REBOOT, lim_mode_stop_activity(), LIM_pig_shed(), LIM_pkt_send_tlm(), _LIM_Load_Shed_Alert_Tlm::pad, and _LIM_Mode::shed_alert_tlm_p.

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.

References _LIM_Mode::action_p, and LIM_pig_look_at_me().

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.

References _LIM_Mode::action_p, _LIM_Mode::gbm_p, LIM_gbm_configure_interrupts(), LIM_K_RESET_FORMAT_0, LIM_pig_siu_init(), _LIM_Mode::main_feed_on, _LIM_Main_Feed_On_Pkt::pay, and _LIM_Main_Feed_On_Prm::siu_cfg.

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.

References _LIM_Mode::action_p, _LIM_Mode::arr_p, _LIM_Mode::bulk_p, _LIM_Mode::cal_start_p, _LIM_Mode::gbm_p, _LIM_Mode::hv_allowed, _LIM_Mode::key, _LIM_Mode::lci_p, LIM_Apid661, LIM_Apid662, LIM_Apid663, LIM_Apid664, LIM_arr_new(), LIM_bulk_new(), LIM_gbm_new(), LIM_lci_new(), LIM_LOAD_SHED_ALERT_TLM_APID, LIM_lpa_new(), LIM_ltc_new(), LIM_mode_delete(), LIM_mode_handle_bulk(), LIM_MODE_VALID_KEY, LIM_OP_MODE_TERMINAL, LIM_pkt_set_info(), LIM_sc_new(), LIM_task_add_apid(), LIM_task_add_raw(), LIM_too_new(), LIM_VIRT_MODE_IDLE, _LIM_Mode::lpa_p, _LIM_Mode::ltc_p, _LIM_Mode::op_mode, _LIM_Mode::physics_start_p, _LIM_Mode::pool_p, _LIM_Mode::saa_transit, _LIM_Mode::sc_p, _LIM_Mode::shed_alert_tlm_p, _LIM_Mode::task_p, _LIM_Mode::too_p, and _LIM_Mode::virt_mode.

Referenced by LIM_initialize().

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.

References LIM_lpa_fwd_active(), and _LIM_Mode::lpa_p.

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.

References LIM_lpa_handle_complete(), and _LIM_Mode::lpa_p.

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.

References LIM_lpa_fwd_idle(), and _LIM_Mode::lpa_p.

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.

References _LIM_Mode::arr_p, LIM_arr_handle_physics_start(), LIM_lpa_get_start_parms(), LIM_lpa_send_start(), LIM_OP_MODE_ARR, LIM_OP_MODE_QUIESCENT, LIM_OP_MODE_TOO, LIM_too_handle_physics_start(), _LIM_Mode::lpa_p, _LIM_Mode::op_mode, _LIM_Mode::saa_transit, and _LIM_Mode::too_p.

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.

References LIM_lpa_fwd_stop(), _LIM_Mode::lpa_p, and _LIM_Mode::op_mode.

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.

References _LIM_Pig_Record_Prm::dest, LIM_pig_record(), _LIM_Pig_Record_Pkt::pay, and _LIM_Mode::pool_p.

unsigned int lim_mode_pig_verify ( LIM_Mode object_p,
const ITC_QueueItem *  qitem_p,
LIM_Pkt_Send pkt_send_p 
) [static]

Call the PIG_verify() 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.

References LIM_pig_verify(), and _LIM_Mode::pool_p.

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.

References _LIM_Mode::action_p, LIM_pig_extract(), LIM_pig_extract_evt(), _LIM_Power_Off_Pkt::pay, and _LIM_Power_Off_Prm::power_cfg.

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.

References _LIM_Mode::action_p, _LIM_Mode::hv_allowed, LIM_pig_insert(), LIM_pig_insert_evt(), LIM_pig_saa_enter(), LIM_pig_saa_exit(), _LIM_Power_On_Pkt::pay, _LIM_Power_On_Prm::power_cfg, and _LIM_Mode::saa_transit.

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.

References _LIM_Mode::action_p, LIM_lpa_get_state(), LIM_lpa_send_stop(), lim_mode_change_saa(), lim_mode_wait_for_complete(), LIM_OP_MODE_TERMINAL, LIM_OTHER_STATE_RUNNING, LIM_pig_saa_enter(), _LIM_Mode::lpa_p, and _LIM_Mode::op_mode.

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.

References _LIM_Mode::action_p, _LIM_Mode::hv_allowed, lim_mode_change_saa(), LIM_OP_MODE_TERMINAL, LIM_pig_saa_exit(), and _LIM_Mode::op_mode.

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.

References _LIM_Mode::lci_p, LIM_lci_get_state(), LIM_lci_send_abort(), LIM_lpa_get_state(), LIM_lpa_send_stop(), LIM_ltc_send_stop(), lim_mode_wait_for_complete(), LIM_OTHER_STATE_RUNNING, _LIM_Mode::lpa_p, _LIM_Mode::ltc_p, and _LIM_Mode::op_mode.

Referenced by lim_mode_load_shed().

LIM_Operating_Mode lim_mode_target_mode ( LIM_Mode object_p  )  [static]

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.

References LIM_too_handle_abort(), and _LIM_Mode::too_p.

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.

References LIM_OP_MODE_QUIESCENT, LIM_too_handle_start(), _LIM_Mode::op_mode, _LIM_Mode::saa_transit, and _LIM_Mode::too_p.

void lim_mode_wait_for_complete ( void   )  [static]

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

Returns:
Nothing.

Referenced by lim_mode_saa_enter(), and lim_mode_stop_activity().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

unsigned int LIM_Pig_Verify ( void *  prm,
const struct _ITC_QueueItem qitem,
void *  pay,
unsigned int  len 
)

Handle the LIM Pig-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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().

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.

References lim_mode_handle_command().


Variable Documentation

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

    { "Bias-ACD-Off", 2 + sizeof(LIM_Bias_ACD_Off_Pkt),
      Lim_handler_bias_acd_off }
Information about the Bias-ACD-Off command.

Initial value:

    { "Bias-ACD-On", 2 + sizeof(LIM_Bias_ACD_On_Pkt), Lim_handler_bias_acd_on }
Information about the Bias-ACD-On command.

Initial value:

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

Initial value:

    { "Bias-CAL-Off", 2 + sizeof(LIM_Bias_CAL_Off_Pkt),
      Lim_handler_bias_cal_off }
Information about the Bias-CAL-Off command.

Initial value:

    { "Bias-CAL-On", 2 + sizeof(LIM_Bias_CAL_On_Pkt), Lim_handler_bias_cal_on }
Information about the Bias-CAL-On command.

Initial value:

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

Initial value:

    { "Bias-TKR-Off", 2 + sizeof(LIM_Bias_TKR_Off_Pkt),
      Lim_handler_bias_tkr_off }
Information about the Bias-TKR_Off command.

Initial value:

    { "Bias-TKR-On", 2 + sizeof(LIM_Bias_TKR_On_Pkt), Lim_handler_bias_tkr_on }
Information about the Bias-TKR_on command.

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

    { "Pig-Verify", 2 + sizeof (LIM_Pig_Verify_Pkt), Lim_handler_pig_verify }
Information about the Pig-Verify command.

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

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

Initial value:

Handlers for the Bias-ACD command.

Initial value:

Handlers for the Bias-ACD-Off command.

Initial value:

Handlers for the Bias-ACD-On command.

Initial value:

Handlers for the Bias-CAL command.

Initial value:

Handlers for the Bias-CAL-Off command.

Initial value:

Handlers for the Bias-CAL-On command.

Initial value:

Handlers for the Bias-TKR command.

Initial value:

Handlers for the Bias-TKR-Off command.

Initial value:

Handlers for the Bias-TKR-On command.

Initial value:

Handlers for 'active' calibration commands.

Initial value:

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

Initial value:

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

Initial value:

Handlers for the Latc-Config command.

Initial value:

Handlers for the Latc-Record command.

Initial value:

Handlers for the Latc-Verify command.

Initial value:

Handlers for the Main-Feed-On command.

Initial value:

Handlers for 'active' physics commands.

Initial value:

Handlers for 'idle' physics commands.

Initial value:

Handlers for the Physics-Start command.

Initial value:

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

Initial value:

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

Initial value:

Handlers for the TOO-Start command.


Generated on Wed Nov 21 21:17:40 2012 by  doxygen 1.5.8