GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LIM / V1-19-2
Constituent: lim_unit_test     Tag: rad750
#include <string.h>
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_swap.h"
#include "ITC/ITC_drvdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LIM/LIM_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/BSWP.h"
#include "../src/LIM_pool.h"
#include "../src/LIM_task.h"
#include "lim_unit_test.h"
#include "lim_util_cmd.h"
#include "lim_util_sim.h"
#include "lim_util_wrap.h"
Include dependency graph for lim_util_cmd.c:
Defines | |
#define | CMD_APID_CAL_ABORT (SIM_APID_LCI) |
#define | CMD_APID_CAL_COMPLETE (SIM_APID_LCI) |
#define | CMD_APID_CAL_OTHER (SIM_APID_LCI) |
#define | CMD_APID_CAL_START (SIM_APID_LCI) |
#define | CMD_APID_DIAG_ABORT (SIM_APID_LDF) |
#define | CMD_APID_DIAG_COMPLETE (SIM_APID_LDF) |
#define | CMD_APID_DIAG_OTHER (SIM_APID_LDF) |
#define | CMD_APID_DIAG_START (SIM_APID_LDF) |
#define | CMD_APID_PHYS_ACTIVE (SIM_APID_LPA) |
#define | CMD_APID_PHYS_COMPLETE (SIM_APID_LPA) |
#define | CMD_APID_PHYS_IDLE_1 (SIM_APID_LPA) |
#define | CMD_APID_PHYS_IDLE_2 (SIM_APID_LPA_IDLE) |
#define | CMD_APID_PHYS_START (SIM_APID_LPA) |
#define | CMD_APID_PHYS_STOP (SIM_APID_LPA) |
#define | CMD_APID_GBM_CALC_INFO (SIM_APID_GBM) |
#define | CMD_APID_GBM_REPOINT (SIM_APID_GBM) |
#define | CMD_APID_GBM_CLOSEOUT (SIM_APID_GBM) |
#define | CMD_APID_ARR_RESPONSE 1633 |
#define | CMD_APID_ARR_ABORT 1633 |
#define | CMD_APID_LOAD_SHED 1634 |
#define | CMD_APID_BIAS_ACD 1635 |
#define | CMD_APID_BIAS_CAL 1635 |
#define | CMD_APID_BIAS_TKR 1635 |
#define | CMD_APID_CONFIG_GBM 1635 |
#define | CMD_APID_CONFIG_HV 1635 |
#define | CMD_APID_CONFIG_PID 1635 |
#define | CMD_APID_HOLD_ENTER 1635 |
#define | CMD_APID_HOLD_EXIT 1635 |
#define | CMD_APID_LATC_CONFIG 1635 |
#define | CMD_APID_LATC_RECORD 1635 |
#define | CMD_APID_LATC_VERIFY 1635 |
#define | CMD_APID_MAIN_FEED_ON 1635 |
#define | CMD_APID_NO_OP 1635 |
#define | CMD_APID_PIG_RECORD 1635 |
#define | CMD_APID_POWER_ON 1635 |
#define | CMD_APID_POWER_OFF 1635 |
#define | CMD_APID_SAA_ENTER 1635 |
#define | CMD_APID_SAA_EXIT 1635 |
#define | CMD_APID_SAFE_MODE 1635 |
#define | CMD_APID_TOO_ABORT 1635 |
#define | CMD_APID_TOO_START 1635 |
#define | CMD_APID_LOOK_AT_ME 1636 |
#define | CMD_FC_CAL_ABORT (SIM_FC_CAL_ABORT) |
#define | CMD_FC_CAL_COMPLETE (SIM_FC_COMPLETE) |
#define | CMD_FC_CAL_OTHER (SIM_FC_CAL_OTHER) |
#define | CMD_FC_CAL_START (SIM_FC_CAL_START) |
#define | CMD_FC_DIAG_ABORT (SIM_FC_DIAG_ABORT) |
#define | CMD_FC_DIAG_COMPLETE (SIM_FC_COMPLETE) |
#define | CMD_FC_DIAG_OTHER (SIM_FC_DIAG_OTHER) |
#define | CMD_FC_DIAG_START (SIM_FC_DIAG_START) |
#define | CMD_FC_PHYS_ACTIVE (SIM_FC_PHYS_ACTIVE) |
#define | CMD_FC_PHYS_COMPLETE (SIM_FC_COMPLETE) |
#define | CMD_FC_PHYS_IDLE_1 (SIM_FC_PHYS_IDLE_1) |
#define | CMD_FC_PHYS_IDLE_2 (SIM_FC_PHYS_IDLE_2) |
#define | CMD_FC_PHYS_START (SIM_FC_PHYS_START) |
#define | CMD_FC_PHYS_STOP (SIM_FC_PHYS_STOP) |
#define | CMD_FC_GBM_CALC_INFO (SIM_FC_GBM_CALC_INFO) |
#define | CMD_FC_GBM_REPOINT (SIM_FC_GBM_REPOINT) |
#define | CMD_FC_GBM_CLOSEOUT (SIM_FC_GBM_CLOSEOUT) |
#define | CMD_FC_GRB_CONFIRM (SIM_FC_GRB_CONFIRM) |
#define | CMD_FC_GRB_FINISH (SIM_FC_GRB_FINISH) |
#define | CMD_FC_GRB_SUSPECT (SIM_FC_GRB_SUSPECT) |
#define | CMD_FC_ARR_RESPONSE 0 |
#define | CMD_FC_ARR_ABORT 1 |
#define | CMD_FC_LOAD_SHED 1 |
#define | CMD_FC_BIAS_ACD 10 |
#define | CMD_FC_BIAS_CAL 11 |
#define | CMD_FC_BIAS_TKR 12 |
#define | CMD_FC_CONFIG_GBM 13 |
#define | CMD_FC_CONFIG_HV 14 |
#define | CMD_FC_CONFIG_PID 15 |
#define | CMD_FC_HOLD_ENTER 2 |
#define | CMD_FC_HOLD_EXIT 3 |
#define | CMD_FC_LATC_CONFIG 19 |
#define | CMD_FC_LATC_RECORD 17 |
#define | CMD_FC_LATC_VERIFY 20 |
#define | CMD_FC_MAIN_FEED_ON 4 |
#define | CMD_FC_NO_OP 18 |
#define | CMD_FC_PIG_RECORD 16 |
#define | CMD_FC_POWER_ON 6 |
#define | CMD_FC_POWER_OFF 7 |
#define | CMD_FC_SAA_ENTER 8 |
#define | CMD_FC_SAA_EXIT 9 |
#define | CMD_FC_SAFE_MODE 5 |
#define | CMD_FC_TOO_ABORT 1 |
#define | CMD_FC_TOO_START 0 |
#define | CMD_FC_LOOK_AT_ME 0 |
Functions | |
int | CMD_init (test_Test_Descriptor *td_p) |
Initialize the command handler. | |
int | CMD_shutdown (test_Test_Descriptor *td_p) |
Shutdown the command handler. | |
int | CMD_rcv_cmd (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int max_usecs) |
Receive a command from a task. | |
static int | cmd_send (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned char *pkt_p, unsigned int pkt_bytes, ITC_TaskID source_tid, ITC_TaskID target_tid, ITC_QueueID target_qid, unsigned int short_bytes) |
Send a command to a task. | |
static int | cmd_send_bulk (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int num_parms, unsigned int *parm_bytes, unsigned int *parm_values, ITC_TaskID source_tid, ITC_TaskID target_tid, unsigned int short_bytes) |
Send a command to a task's BULK queue. | |
static int | cmd_send_cmd (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int num_parms, unsigned int *parm_bytes, unsigned int *parm_values, unsigned int apid, unsigned int func_code, unsigned int short_bytes) |
Send a command to a task's CMD queue. | |
int | CMD_send_arr_abort (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the ARR-Abort command. | |
int | CMD_send_arr_response (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int tran_id, unsigned int accept, unsigned int short_bytes) |
Send the ARR-Response command. | |
int | CMD_send_grb_confirm (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_tran_id, unsigned int parm_usecs, unsigned int parm_ra, unsigned int parm_dec, unsigned int short_bytes) |
Send the GRB-Confirmed command. | |
int | CMD_send_grb_finish (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the GRB-Finished command. | |
int | CMD_send_grb_suspect (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the GRB-Suspected command. | |
int | CMD_send_bias_acd (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Bias-ACD command. | |
int | CMD_send_bias_cal (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Bias-CAL command. | |
int | CMD_send_bias_tkr (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Bias-TKR command. | |
int | CMD_send_cal_abort (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the Calibration-Abort command. | |
int | CMD_send_cal_complete (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send a Calibration-Complete command. | |
int | CMD_send_cal_other (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send an 'other' calibration command. | |
int | CMD_send_cal_start (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the Calibration-Start command. | |
int | CMD_send_config_gbm (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int rep_valid, int rep_allowed, int pri_valid, int pri_allowed, int red_valid, int red_allowed, unsigned int short_bytes) |
Send the Configure-GBM command. | |
int | CMD_send_config_hv (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int hv_allowed, unsigned int short_bytes) |
Send the Configure-HV command. | |
int | CMD_send_config_pid (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int primary, unsigned int short_bytes) |
Send the Configure-PID command. | |
int | CMD_send_diag_abort (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the Diagnostic-Abort command. | |
int | CMD_send_diag_complete (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send a Diagnostic-Complete command. | |
int | CMD_send_diag_other (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Diagnostic-Other command. | |
int | CMD_send_diag_start (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the Diagnostic-Start command. | |
int | CMD_send_gbm_calc_info (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int trigger_id, unsigned int seq_num, unsigned int short_bytes) |
Send a GBM-Calc-Info command. | |
int | CMD_send_gbm_closeout (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int trigger_id, unsigned int seq_num, unsigned int short_bytes) |
Send a GBM-Closeout command. | |
int | CMD_send_gbm_int (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int primary, int redundant, unsigned int short_bytes) |
Assert GBM interrupts. | |
int | CMD_send_gbm_repoint (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int no_recommend, unsigned int trigger_id, unsigned int seq_num, int ra, int dec, unsigned int short_bytes) |
Send a GBM-Repoint command. | |
int | CMD_send_hold_enter (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Hold-Enter command. | |
int | CMD_send_hold_exit (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Hold-Exit command. | |
int | CMD_send_latc_config (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Latc-Config command. | |
int | CMD_send_latc_record (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int dest, unsigned int short_bytes) |
Send the Latc-Record command. | |
int | CMD_send_latc_verify (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int dest, unsigned int short_bytes) |
Send the Latc-Verify command. | |
int | CMD_send_load_shed (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Load-Shed command. | |
int | CMD_send_look_at_me (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Look-At-Me command. | |
int | CMD_send_main_feed_on (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Main-Feed-On command. | |
int | CMD_send_no_op (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the No-Op command. | |
int | CMD_send_phys_active (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Physics-Active command. | |
int | CMD_send_phys_complete (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send a Physics-Complete command. | |
int | CMD_send_phys_idle (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, int type, unsigned int short_bytes) |
Send the Physics-Idle command. | |
int | CMD_send_phys_start (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the Physics-Start command. | |
int | CMD_send_phys_stop (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Physics-Stop command. | |
int | CMD_send_pig_record (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int dest, unsigned int short_bytes) |
Send the Pig-Record command. | |
int | CMD_send_power_off (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Power-Off command. | |
int | CMD_send_power_on (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Power-On command. | |
int | CMD_send_saa_enter (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the SAA-Enter command. | |
int | CMD_send_saa_exit (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the SAA-Exit command. | |
int | CMD_send_safe_mode (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the Safe-Mode command. | |
int | CMD_send_too_abort (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int short_bytes) |
Send the TOO-Abort command. | |
int | CMD_send_too_start (test_Test_Descriptor *td_p, int id, WRAP_Info *info_p, unsigned int parm_usecs, unsigned int short_bytes) |
Send the TOO-Start command. |
** CVS $Id: lim_util_cmd.c,v 1.38 2007/12/16 22:56:21 dmay Exp $ **
|
Initialize the command handler.
|
|
Receive a command from a task.
|
|
Send a command to a task.
|
|
Send the ARR-Abort command.
|
|
Send the ARR-Response command.
|
|
Send the Bias-ACD command.
|
|
Send the Bias-CAL command.
|
|
Send the Bias-TKR command.
|
|
Send a command to a task's BULK queue.
|
|
Send the Calibration-Abort command.
|
|
Send a Calibration-Complete command.
|
|
Send an 'other' calibration command.
|
|
Send the Calibration-Start command.
|
|
Send a command to a task's CMD queue.
|
|
Send the Configure-GBM command.
|
|
Send the Configure-HV command.
|
|
Send the Configure-PID command.
|
|
Send the Diagnostic-Abort command.
|
|
Send a Diagnostic-Complete command.
|
|
Send the Diagnostic-Other command.
|
|
Send the Diagnostic-Start command.
|
|
Send a GBM-Calc-Info command.
|
|
Send a GBM-Closeout command.
|
|
Assert GBM interrupts.
|
|
Send a GBM-Repoint command.
|
|
Send the GRB-Confirmed command.
|
|
Send the GRB-Finished command.
|
|
Send the GRB-Suspected command.
|
|
Send the Hold-Enter command.
|
|
Send the Hold-Exit command.
|
|
Send the Latc-Config command.
|
|
Send the Latc-Record command.
|
|
Send the Latc-Verify command.
|
|
Send the Load-Shed command.
|
|
Send the Look-At-Me command.
|
|
Send the Main-Feed-On command.
|
|
Send the No-Op command.
|
|
Send the Physics-Active command.
|
|
Send a Physics-Complete command.
|
|
Send the Physics-Idle command.
|
|
Send the Physics-Start command.
|
|
Send the Physics-Stop command.
|
|
Send the Pig-Record command.
|
|
Send the Power-Off command.
|
|
Send the Power-On command.
|
|
Send the SAA-Enter command.
|
|
Send the SAA-Exit command.
|
|
Send the Safe-Mode command.
|
|
Send the TOO-Abort command.
|
|
Send the TOO-Start command.
|
|
Shutdown the command handler.
|