GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-4 > lim_scp / rad750
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CCSDS/CCSDS_pkt.h>
#include <LIM/LIM_msgs.h>
#include <LIM/LIM_pubdefs.h>
#include <LIM/LIM_scpside.h>
Classes | |
struct | _Lim_Field |
Description of a command packet field. More... | |
Typedefs | |
typedef struct _Lim_Field | Lim_Field |
Typedef for _Lim_Field. | |
Functions | |
static void | lim_dump_boilerplate (char *pkt_name) |
Display some boilerplate header information. | |
static void | lim_interp_allowed (unsigned int value) |
Interpret a LIM allowed field value. | |
static void | lim_interp_bias_acd (unsigned int value) |
Interpret an ACD bias voltage value. | |
static void | lim_interp_bias_16 (unsigned int value) |
Interpret a 16-bit bias voltage value. | |
static void | lim_interp_action (unsigned int value) |
Interpret a LIM action field value. | |
static void | lim_interp_cmd_state (unsigned int value) |
Interpret a LIM command state field value. | |
static void | lim_interp_gbm_rep_allowed (unsigned int value) |
Interpret a LIM GBM-repoint-allowed field value. | |
static void | lim_interp_hv_allowed (unsigned int value) |
Interpret a LIM high-voltage-allowed field value. | |
static void | lim_interp_int_select (unsigned int value) |
Interpret a LIM internal selection field value. | |
static void | lim_interp_mask_16 (unsigned int value) |
Interpret a 16-bit mask value. | |
static void | lim_interp_op_mode (unsigned int value) |
Interpret an operating mode field value. | |
static void | lim_interp_pdu_select (unsigned int value) |
Interpret a LIM PDU selection field value. | |
static void | lim_interp_pid_select (unsigned int value) |
Interpret a LIM PID selection field value. | |
static void | lim_interp_pri_select (unsigned int value) |
Interpret a LIM primary selection field value. | |
static void | lim_interp_remaining (unsigned int value) |
Interpret a time-remaining value. | |
static void | lim_interp_saa_transit (unsigned int value) |
Interpret a LIM SAA transit field value. | |
static void | lim_interp_sec_select (unsigned int value) |
Interpret a LIM secondary (redundant) selection field value. | |
static void | lim_interp_select (unsigned int value) |
Interpret a LIM selection field value. | |
static void | lim_interp_siu_id (unsigned int value) |
Interpret a LIM SIU ID field value. | |
static void | lim_interp_spare (unsigned int value) |
Interpret a LIM spare field value. | |
static void | lim_interp_status (unsigned int value) |
Interpret a LIM status field value. | |
static void | lim_interp_task_state (unsigned int value) |
Interpret a LIM task state field value. | |
static void | lim_interp_valid (unsigned int value) |
Interpret a LIM valid field value. | |
static void | lim_interp_virt_mode (unsigned int value) |
Interpret a virtual mode field value. | |
static void | lim_show_field (unsigned char *pay, unsigned int start_byte, unsigned int end_byte, unsigned int start_bit, unsigned int end_bit, char *desc_p, void(*interp_p)(unsigned int val)) |
Show a field from a command packet. | |
static unsigned int | lim_dump_fields (Lim_Field *field_p, unsigned int num_fields, unsigned char *pkt_p, unsigned int start_byte) |
Dump command packet fields. | |
void | LIM_dumpBiasAcd (char *pkt) |
Dump the Bias-ACD command. | |
void | LIM_dumpBiasCal (char *pkt) |
Dump the Bias-CAL command. | |
void | LIM_dumpBiasTkr (char *pkt) |
Dump the Bias-TKR command. | |
void | LIM_dumpCalStart (char *pkt) |
Dump the Calibration-Start command. | |
void | LIM_dumpHoldEnter (char *pkt) |
Dump the Hold-Enter command. | |
void | LIM_dumpHoldExit (char *pkt) |
Dump the Hold-Exit command. | |
void | LIM_dumpLatcRecord (char *pkt) |
Dump the Latc-Record command. | |
void | LIM_dumpLoadShed (char *pkt) |
Dump the Load-Shed command. | |
void | LIM_dumpMainFeedOn (char *pkt) |
Dump the Main-Feed-On command. | |
void | LIM_dumpPigRecord (char *pkt) |
Dump the Pig-Record command. | |
void | LIM_dumpConfigGbm (char *pkt) |
Dump the Configure-GBM command. | |
void | LIM_dumpConfigHv (char *pkt) |
Dump the Configure-HV command. | |
void | LIM_dumpConfigPid (char *pkt) |
Dump the Configure-PID command. | |
void | LIM_dumpPowerOff (char *pkt) |
Dump the Power-Off command. | |
void | LIM_dumpPowerOn (char *pkt) |
Dump the Power-On command. | |
void | LIM_dumpSaaEnter (char *pkt) |
Dump the SAA-Enter command. | |
void | LIM_dumpSaaExit (char *pkt) |
Dump the SAA-Exit command. | |
void | LIM_dumpSafeMode (char *pkt) |
Dump the Safe-Mode command. | |
void | LIM_dumpNoop (char *pkt) |
Dump the No-op command. | |
void | LIM_dumpTlmState (char *pkt) |
Dump the LIM state telemetry. |
** CVS $Id: LIM_dump.c,v 1.14 2011/03/29 21:20:28 apw Exp $ **
These functions display the contents of LIM telecommands.
void lim_dump_boilerplate | ( | char * | pkt_name | ) | [static] |
Display some boilerplate header information.
pkt_name | Packet description string. |
Referenced by LIM_dumpBiasAcd(), LIM_dumpBiasCal(), LIM_dumpBiasTkr(), LIM_dumpCalStart(), LIM_dumpConfigGbm(), LIM_dumpConfigHv(), LIM_dumpConfigPid(), LIM_dumpHoldEnter(), LIM_dumpHoldExit(), LIM_dumpLatcRecord(), LIM_dumpLoadShed(), LIM_dumpMainFeedOn(), LIM_dumpNoop(), LIM_dumpPigRecord(), LIM_dumpPowerOff(), LIM_dumpPowerOn(), LIM_dumpSaaEnter(), LIM_dumpSaaExit(), LIM_dumpSafeMode(), and LIM_dumpTlmState().
unsigned int lim_dump_fields | ( | Lim_Field * | field_p, | |
unsigned int | num_fields, | |||
unsigned char * | pkt_p, | |||
unsigned int | start_byte | |||
) | [static] |
Dump command packet fields.
field_p | Pointer to first field description. | |
num_fields | Number of fields to dump. | |
pkt_p | Pointer to packet. | |
start_byte | Starting offset within the packet. |
References _Lim_Field::desc_p, _Lim_Field::interp_p, lim_show_field(), _Lim_Field::num_bits, and _Lim_Field::num_bytes.
Referenced by LIM_dumpBiasAcd(), LIM_dumpBiasCal(), LIM_dumpBiasTkr(), LIM_dumpCalStart(), LIM_dumpConfigGbm(), LIM_dumpConfigHv(), LIM_dumpConfigPid(), LIM_dumpLatcRecord(), LIM_dumpMainFeedOn(), LIM_dumpPigRecord(), LIM_dumpPowerOff(), LIM_dumpPowerOn(), and LIM_dumpTlmState().
void LIM_dumpBiasAcd | ( | char * | pkt | ) |
Dump the Bias-ACD command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), and lim_interp_bias_acd().
Referenced by lim_sendBiasAcd().
void LIM_dumpBiasCal | ( | char * | pkt | ) |
Dump the Bias-CAL command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_bias_16(), lim_interp_mask_16(), and lim_interp_spare().
Referenced by LIM_sendBiasCal().
void LIM_dumpBiasTkr | ( | char * | pkt | ) |
Dump the Bias-TKR command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_bias_16(), lim_interp_mask_16(), and lim_interp_spare().
Referenced by LIM_sendBiasTkr().
void LIM_dumpCalStart | ( | char * | pkt | ) |
Dump the Calibration-Start command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), and lim_dump_fields().
Referenced by LIM_sendCalStart().
void LIM_dumpConfigGbm | ( | char * | pkt | ) |
Dump the Configure-GBM command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_allowed(), lim_interp_spare(), and lim_interp_valid().
Referenced by LIM_sendConfigGbm().
void LIM_dumpConfigHv | ( | char * | pkt | ) |
Dump the Configure-HV command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), and lim_interp_allowed().
Referenced by LIM_sendConfigHv().
void LIM_dumpConfigPid | ( | char * | pkt | ) |
Dump the Configure-PID command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), and lim_interp_pid_select().
Referenced by LIM_sendConfigPid().
void LIM_dumpHoldEnter | ( | char * | pkt | ) |
Dump the Hold-Enter command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendHoldEnter().
void LIM_dumpHoldExit | ( | char * | pkt | ) |
Dump the Hold-Exit command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendHoldExit().
void LIM_dumpLatcRecord | ( | char * | pkt | ) |
Dump the Latc-Record command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), and lim_dump_fields().
Referenced by LIM_sendLatcRecord().
void LIM_dumpLoadShed | ( | char * | pkt | ) |
Dump the Load-Shed command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendLoadShed().
void LIM_dumpMainFeedOn | ( | char * | pkt | ) |
Dump the Main-Feed-On command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_int_select(), lim_interp_pri_select(), lim_interp_sec_select(), lim_interp_select(), lim_interp_siu_id(), and lim_interp_spare().
Referenced by LIM_sendMainFeedOnPrimary().
void LIM_dumpNoop | ( | char * | pkt | ) |
Dump the No-op command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendNoop().
void LIM_dumpPigRecord | ( | char * | pkt | ) |
Dump the Pig-Record command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), and lim_dump_fields().
Referenced by LIM_sendPigRecord().
void LIM_dumpPowerOff | ( | char * | pkt | ) |
Dump the Power-Off command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_mask_16(), lim_interp_pdu_select(), lim_interp_sec_select(), lim_interp_select(), and lim_interp_spare().
Referenced by LIM_sendEpuOff().
void LIM_dumpPowerOn | ( | char * | pkt | ) |
Dump the Power-On command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_mask_16(), lim_interp_pdu_select(), lim_interp_sec_select(), lim_interp_select(), and lim_interp_spare().
Referenced by LIM_sendEpuOn(), and LIM_sendTemOn().
void LIM_dumpSaaEnter | ( | char * | pkt | ) |
Dump the SAA-Enter command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendSaaEnter().
void LIM_dumpSaaExit | ( | char * | pkt | ) |
Dump the SAA-Exit command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendSaaExit().
void LIM_dumpSafeMode | ( | char * | pkt | ) |
Dump the Safe-Mode command.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate().
Referenced by LIM_sendSafeMode().
void LIM_dumpTlmState | ( | char * | pkt | ) |
Dump the LIM state telemetry.
pkt | Pointer to CCSDS packet. |
References lim_dump_boilerplate(), lim_dump_fields(), lim_interp_action(), lim_interp_cmd_state(), lim_interp_gbm_rep_allowed(), lim_interp_hv_allowed(), lim_interp_op_mode(), lim_interp_remaining(), lim_interp_saa_transit(), lim_interp_spare(), lim_interp_status(), lim_interp_task_state(), and lim_interp_virt_mode().
void lim_interp_action | ( | unsigned int | value | ) | [static] |
Interpret a LIM action field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM allowed field value.
value | Value to interpret. |
Referenced by LIM_dumpConfigGbm(), and LIM_dumpConfigHv().
void lim_interp_bias_16 | ( | unsigned int | value | ) | [static] |
Interpret a 16-bit bias voltage value.
value | Value to interpret. |
Referenced by LIM_dumpBiasCal(), and LIM_dumpBiasTkr().
void lim_interp_bias_acd | ( | unsigned int | value | ) | [static] |
Interpret an ACD bias voltage value.
value | Value to interpret. |
Referenced by LIM_dumpBiasAcd().
void lim_interp_cmd_state | ( | unsigned int | value | ) | [static] |
Interpret a LIM command state field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_gbm_rep_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM GBM-repoint-allowed field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_hv_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM high-voltage-allowed field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_int_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM internal selection field value.
value | Value to interpret. |
Referenced by LIM_dumpMainFeedOn().
void lim_interp_mask_16 | ( | unsigned int | value | ) | [static] |
Interpret a 16-bit mask value.
value | Value to interpret. |
Referenced by LIM_dumpBiasCal(), LIM_dumpBiasTkr(), LIM_dumpPowerOff(), and LIM_dumpPowerOn().
void lim_interp_op_mode | ( | unsigned int | value | ) | [static] |
Interpret an operating mode field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_pdu_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM PDU selection field value.
value | Value to interpret. |
Referenced by LIM_dumpPowerOff(), and LIM_dumpPowerOn().
void lim_interp_pid_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM PID selection field value.
value | Value to interpret. |
Referenced by LIM_dumpConfigPid().
void lim_interp_pri_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM primary selection field value.
value | Value to interpret. |
Referenced by LIM_dumpMainFeedOn().
void lim_interp_remaining | ( | unsigned int | value | ) | [static] |
Interpret a time-remaining value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_saa_transit | ( | unsigned int | value | ) | [static] |
Interpret a LIM SAA transit field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_sec_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM secondary (redundant) selection field value.
value | Value to interpret. |
Referenced by LIM_dumpMainFeedOn(), LIM_dumpPowerOff(), and LIM_dumpPowerOn().
void lim_interp_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM selection field value.
value | Value to interpret. |
Referenced by LIM_dumpMainFeedOn(), LIM_dumpPowerOff(), and LIM_dumpPowerOn().
void lim_interp_siu_id | ( | unsigned int | value | ) | [static] |
Interpret a LIM SIU ID field value.
value | Value to interpret. |
Referenced by LIM_dumpMainFeedOn().
void lim_interp_spare | ( | unsigned int | value | ) | [static] |
Interpret a LIM spare field value.
value | Value to interpret. |
Referenced by LIM_dumpBiasCal(), LIM_dumpBiasTkr(), LIM_dumpConfigGbm(), LIM_dumpMainFeedOn(), LIM_dumpPowerOff(), LIM_dumpPowerOn(), and LIM_dumpTlmState().
void lim_interp_status | ( | unsigned int | value | ) | [static] |
Interpret a LIM status field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_task_state | ( | unsigned int | value | ) | [static] |
Interpret a LIM task state field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_interp_valid | ( | unsigned int | value | ) | [static] |
Interpret a LIM valid field value.
value | Value to interpret. |
Referenced by LIM_dumpConfigGbm().
void lim_interp_virt_mode | ( | unsigned int | value | ) | [static] |
Interpret a virtual mode field value.
value | Value to interpret. |
Referenced by LIM_dumpTlmState().
void lim_show_field | ( | unsigned char * | pay, | |
unsigned int | start_byte, | |||
unsigned int | end_byte, | |||
unsigned int | start_bit, | |||
unsigned int | end_bit, | |||
char * | desc_p, | |||
void(*)(unsigned int val) | interp_p | |||
) | [static] |
Show a field from a command packet.
pay | Pointer to packet buffer. | |
start_byte | First byte of the value within the packet. | |
end_byte | Last byte of the value within the packet. | |
start_bit | First bit of the field within the value. | |
end_bit | Last bit of the field within the value. | |
desc_p | Pointer to field description string. | |
interp_p | Pointer to field interpretation function. |
Referenced by lim_dump_fields().