GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-2 > lim_unit_test / sun-gcc
#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"
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 $ **
int CMD_init | ( | test_Test_Descriptor * | td_p | ) |
Initialize the command handler.
td_p | Pointer to test descriptor. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
max_usecs | Max time to wait for command, in microseconds. |
0 | Success. | |
-1 | Failure. |
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 | |||
) | [static] |
Send a command to a task.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
pkt_p | Pointer to packet buffer. | |
pkt_bytes | Number of bytes to send. | |
source_tid | ID of the source task. | |
target_tid | ID of the target task. | |
target_qid | ID of the target queue. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
tran_id | Transaction ID parameter value. | |
accept | Accept parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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 | |||
) | [static] |
Send a command to a task's BULK queue.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
num_parms | Number of command parameters. | |
parm_bytes | Pointer to array of parameter sizes, in bytes. | |
parm_values | Pointer to array of parameter values. | |
source_tid | ID of the source task. | |
target_tid | ID of the target task. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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 | |||
) | [static] |
Send a command to a task's CMD queue.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
num_parms | Number of command parameters. | |
parm_bytes | Pointer to array of parameter sizes, in bytes. | |
parm_values | Pointer to array of parameter values. | |
apid | APID of the command. | |
func_code | Function code of the command. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
rep_valid | Repoint-Request-Allowed valid value. | |
rep_allowed | Repoint-Request-Allowed parameter value. | |
pri_valid | Primary-Interrupt-Allowed valid value. | |
pri_allowed | Primary-Interrupt-Allowed parameter value. | |
red_valid | Redundant-Interrupt-Allowed valid value. | |
red_allowed | Redundant-Interrupt-Allowed parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
hv_allowed | High-Voltage-Allowed parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
primary | Primary selection parameter. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
trigger_id | 'Trigger ID' parameter value. | |
seq_num | 'Sequence Number' parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
trigger_id | 'Trigger ID' parameter value. | |
seq_num | 'Sequence Number' parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
primary | Flag to assert primary GBM interrupt. | |
redundant | Flag to assert redundant GBM interrupt. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
no_recommend | 'No Recommend' parameter value. | |
trigger_id | 'Trigger ID' parameter value. | |
seq_num | 'Sequence Number' parameter value. | |
ra | 'Location RA' parameter value. | |
dec | 'Location DEC' parameter value. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_tran_id | Transaction ID parameter. | |
parm_usecs | Delay parameter, in microseconds. | |
parm_ra | RA parameter, which gets divided by 1000. | |
parm_dec | DEC parameter, which gets divided by 1000. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
dest | Destination parameter for the command. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
dest | Destination parameter for the command. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
type | Type of Physics-Idle command to send - #1 or #2. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
dest | Destination parameter for the command. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
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.
td_p | Pointer to test descriptor. | |
id | ID to use for user messages. | |
info_p | Pointer to wrap control info. | |
parm_usecs | Delay parameter, in microseconds. | |
short_bytes | Number of bytes to remove from the command. |
0 | Success. | |
-1 | Failure. |
int CMD_shutdown | ( | test_Test_Descriptor * | td_p | ) |
Shutdown the command handler.
td_p | Pointer to test descriptor. |
0 | Success. | |
-1 | Failure. |