GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > DDT / V1-0-0
Constituent: ddt_scp     Tag: sun-gcc
#include <stdlib.h>
#include "MSG/MSG_pubdefs.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_swap.h"
#include "DDT/DDT_scpside.h"
#include "FBS/FBS_pubrtos.h"
#include "ITC/ITC_dump.h"
#include "ITC/ITC_pubdefs.h"
#include "DDT/DDT_msgs.h"
#include "PBS/BSWP.h"
#include "PBS/MBA.h"
#include "CLI/CLI_pubdefs.h"
Include dependency graph for DDT_scp.c:
Data Structures | |
struct | _Ddt_Field |
Description of a command packet field. More... | |
struct | _Ddt_Parm |
Description of a command parameter. More... | |
Defines | |
#define | DDT_APID_WRITE_FILE (1602) |
#define | DDT_FC_WRITE_FILE (0) |
Typedefs | |
typedef void(* | DDT_DumpCB )(char *pkt) |
DDT command dump callback pointer. | |
typedef _Ddt_Field | Ddt_Field |
Typedef for _Ddt_Field. | |
typedef _Ddt_Parm | Ddt_Parm |
Typedef for _Ddt_Parm. | |
Functions | |
static void | ddt_dump_boilerplate (char *pkt_name) |
Display some boilerplate header information. | |
static void | ddt_interp_file_id (unsigned int value) |
Interpret a file ID field value. | |
static void | ddt_interp_unit (unsigned int value) |
Interpret a LAT unit field value. | |
static void | ddt_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 packet. | |
static unsigned int | ddt_dump_fields (Ddt_Field *field_p, unsigned int num_fields, unsigned char *pkt_p, unsigned int start_byte) |
Dump packet fields. | |
static void | ddt_dumpWriteFile (char *pkt) |
Dump the Write-FIle command. | |
static void | ddt_free_cb (ITC_QueueItem *qitem_p, unsigned int status, void *parm_0, void *parm_1, void *parm_2, unsigned int tx) |
ITC callback to free command packet memory. | |
static unsigned int | ddt_send_command (unsigned int num_parms, unsigned int *parm_bytes, unsigned int *parm_values, unsigned int apid, unsigned int func_code, DDT_DumpCB dump_func_p) |
Send a DDT command. | |
unsigned int | DDT_sendWriteFile (unsigned int lat_unit, unsigned int device, unsigned int dir, unsigned int file) |
Send the Write-File command. | |
static unsigned int | ddt_get_parms (CLI_Control *cli, Ddt_Parm *parm_p, unsigned int num_parms, char *usage) |
Get command-line parameters. | |
static unsigned int | ddt_sendWriteFile_cli (CLI_Control *cli, void *prm) |
CLI callback for the "DDT_sendWriteFile" command. | |
unsigned int | DDT_addSyntaxSCP (CLI_Syntax *syntax) |
Add DDT commands to the command-line syntax. |
** CVS $Id: DDT_scp.c,v 1.1.1.1 2005/11/23 19:49:18 dmay Exp $ **
These functions use standard ITC functions to send DDT telecommands to an SIU.
|
Add DDT commands to the command-line syntax.
|
|
Display some boilerplate header information.
|
|
Dump packet fields.
|
|
Dump the Write-FIle command.
|
|
ITC callback to free command packet memory.
|
|
Get command-line parameters.
|
|
Interpret a file ID field value.
|
|
Interpret a LAT unit field value.
|
|
Send a DDT command.
|
|
Send the Write-File command.
|
|
CLI callback for the "DDT_sendWriteFile" command.
|
|
Show a field from a packet.
|