GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LIM / V1-22-0 > lim_scp / sun-gcc
#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.13 2006/08/28 21:26:15 dwood 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. |
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. |
void LIM_dumpBiasAcd | ( | char * | pkt | ) |
Dump the Bias-ACD command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpBiasCal | ( | char * | pkt | ) |
Dump the Bias-CAL command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpBiasTkr | ( | char * | pkt | ) |
Dump the Bias-TKR command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpCalStart | ( | char * | pkt | ) |
Dump the Calibration-Start command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpConfigGbm | ( | char * | pkt | ) |
Dump the Configure-GBM command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpConfigHv | ( | char * | pkt | ) |
Dump the Configure-HV command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpConfigPid | ( | char * | pkt | ) |
Dump the Configure-PID command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpHoldEnter | ( | char * | pkt | ) |
Dump the Hold-Enter command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpHoldExit | ( | char * | pkt | ) |
Dump the Hold-Exit command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpLatcRecord | ( | char * | pkt | ) |
Dump the Latc-Record command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpLoadShed | ( | char * | pkt | ) |
Dump the Load-Shed command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpMainFeedOn | ( | char * | pkt | ) |
Dump the Main-Feed-On command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpNoop | ( | char * | pkt | ) |
Dump the No-op command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpPigRecord | ( | char * | pkt | ) |
Dump the Pig-Record command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpPowerOff | ( | char * | pkt | ) |
Dump the Power-Off command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpPowerOn | ( | char * | pkt | ) |
Dump the Power-On command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpSaaEnter | ( | char * | pkt | ) |
Dump the SAA-Enter command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpSaaExit | ( | char * | pkt | ) |
Dump the SAA-Exit command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpSafeMode | ( | char * | pkt | ) |
Dump the Safe-Mode command.
pkt | Pointer to CCSDS packet. |
void LIM_dumpTlmState | ( | char * | pkt | ) |
Dump the LIM state telemetry.
pkt | Pointer to CCSDS packet. |
void lim_interp_action | ( | unsigned int | value | ) | [static] |
Interpret a LIM action field value.
value | Value to interpret. |
void lim_interp_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM allowed field value.
value | Value to interpret. |
void lim_interp_bias_16 | ( | unsigned int | value | ) | [static] |
Interpret a 16-bit bias voltage value.
value | Value to interpret. |
void lim_interp_bias_acd | ( | unsigned int | value | ) | [static] |
Interpret an ACD bias voltage value.
value | Value to interpret. |
void lim_interp_cmd_state | ( | unsigned int | value | ) | [static] |
Interpret a LIM command state field value.
value | Value to interpret. |
void lim_interp_gbm_rep_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM GBM-repoint-allowed field value.
value | Value to interpret. |
void lim_interp_hv_allowed | ( | unsigned int | value | ) | [static] |
Interpret a LIM high-voltage-allowed field value.
value | Value to interpret. |
void lim_interp_int_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM internal selection field value.
value | Value to interpret. |
void lim_interp_mask_16 | ( | unsigned int | value | ) | [static] |
Interpret a 16-bit mask value.
value | Value to interpret. |
void lim_interp_op_mode | ( | unsigned int | value | ) | [static] |
Interpret an operating mode field value.
value | Value to interpret. |
void lim_interp_pdu_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM PDU selection field value.
value | Value to interpret. |
void lim_interp_pid_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM PID selection field value.
value | Value to interpret. |
void lim_interp_pri_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM primary selection field value.
value | Value to interpret. |
void lim_interp_remaining | ( | unsigned int | value | ) | [static] |
Interpret a time-remaining value.
value | Value to interpret. |
void lim_interp_saa_transit | ( | unsigned int | value | ) | [static] |
Interpret a LIM SAA transit field value.
value | Value to interpret. |
void lim_interp_sec_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM secondary (redundant) selection field value.
value | Value to interpret. |
void lim_interp_select | ( | unsigned int | value | ) | [static] |
Interpret a LIM selection field value.
value | Value to interpret. |
void lim_interp_siu_id | ( | unsigned int | value | ) | [static] |
Interpret a LIM SIU ID field value.
value | Value to interpret. |
void lim_interp_spare | ( | unsigned int | value | ) | [static] |
Interpret a LIM spare field value.
value | Value to interpret. |
void lim_interp_status | ( | unsigned int | value | ) | [static] |
Interpret a LIM status field value.
value | Value to interpret. |
void lim_interp_task_state | ( | unsigned int | value | ) | [static] |
Interpret a LIM task state field value.
value | Value to interpret. |
void lim_interp_valid | ( | unsigned int | value | ) | [static] |
Interpret a LIM valid field value.
value | Value to interpret. |
void lim_interp_virt_mode | ( | unsigned int | value | ) | [static] |
Interpret a virtual mode field value.
value | Value to interpret. |
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. |