GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-2-2

Constituent: ctdb_rt_test_sim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ctdb_rt_test_common.c File Reference

Function definitions for 1553 RT test application common to all implementations. More...

#include "stdio.h"
#include "stdlib.h"
#include "CTDB/CTDB_rt.h"
#include "CTDB/CO1553_util.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_dump.h"
#include "CCSDS/CCSDS_swap.h"
#include "PBS/PBS.h"
#include "PBS/TASK.h"
#include "PBS/TOC.h"
#include "PBS/TOV.h"
#include "PBS/MBA.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"
#include "CLI/CLI_pubdefs.h"
#include "ctdb_rt_test_private.h"

Include dependency graph for ctdb_rt_test_common.c:

Include dependency graph

Defines

#define RT_CMD_RECV_PRI   150
#define RT_CMD_RECV_NAME   "uCmdRx"
#define MSG_PRI   210
#define RT_APID_TELEM   0x260
#define RT_APID_CMD_TX   0x600
#define RT_FUNC_CMD_TX   0

Functions

void rt_pkt_free (void *pkt, void *arg)
void rt_pkt_cmd_rx (void)
int rt_init (void *addr)
int rt_start (void)
int rt_stop (void)
int rt_exit (void)
int rt_diag (void)
int rt_clear (void)
int rt_pkt_telem (unsigned int size, int priority)
int rt_pkt_cmd_tx (unsigned int size)
unsigned int rt_pkt_telem_parse (CLI_Control *cli, rt_test_config *config)
unsigned int rt_pkt_cmd_tx_parse (CLI_Control *cli, rt_test_config *config)
unsigned int rt_start_parse (CLI_Control *cli, rt_test_config *config)
unsigned int rt_stop_parse (CLI_Control *cli, rt_test_config *config)
unsigned int exit_parse (CLI_Control *cli, rt_test_config *config)
int main (int argc, char **argv)

Variables

rt_test_config rtTestConfig
const char * dumpLine
const char * initMsg = "RT not initialized\n"

Detailed Description

Function definitions for 1553 RT test application common to all implementations.

Author:
D.L. Wood

Define Documentation

#define MSG_PRI   210
 

The priority of the MSG output task.

#define RT_APID_CMD_TX   0x600
 

A fake CCSDS application ID to use for sent telecommand packets.

#define RT_APID_TELEM   0x260
 

A fake CCSDS application ID to use for sent telemetry packets.

#define RT_CMD_RECV_NAME   "uCmdRx"
 

The name of the telecommand receive task (VxWorks only).

#define RT_CMD_RECV_PRI   150
 

The priority to run the telecommand receive task (VxWorks only).

#define RT_FUNC_CMD_TX   0
 

A fake function code to use for sent telecommand packets.


Function Documentation

unsigned int exit_parse CLI_Control *  cli,
rt_test_config config
[static]
 

CLI callback for "exit" command.

Parameters:
cli CLI control handle.
config Application configuration.
Returns:
CLI_ENDOFCMD

int main int  argc,
char **  argv
 

UNIX entry point for test application.

Parameters:
argc The number of command line args.
argv Pointers to the command line args.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int rt_clear void   ) 
 

Resets remote terminal diagnostics.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int rt_diag void   ) 
 

Displays remote terminal diagnostics.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int rt_exit void   ) 
 

Stops the test application and releases resources.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int rt_init void *  addr  ) 
 

Initializes the test application. The device specific initialization is handled in rt_init_dev().

Parameters:
addr The remote terminal address (1553 RT or IP).
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void rt_pkt_cmd_rx void   )  [static]
 

Listens for and displays telecommand receive packets arriving at the remote terminal.

Here is the call graph for this function:

int rt_pkt_cmd_tx unsigned int  size  ) 
 

Sends a test telecommand transmit packet from the remote terminal.

Parameters:
size The size in bytes of faked test pattern data in packet.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

unsigned int rt_pkt_cmd_tx_parse CLI_Control *  cli,
rt_test_config config
[static]
 

CLI callback for "rt_pkt_cmd_tx" command.

Parameters:
cli CLI control handle.
config Application configuration.
Returns:
CLI_SUCCESS

Here is the call graph for this function:

void rt_pkt_free void *  pkt,
void *  arg
[static]
 

Packet release callback used by test application.

Parameters:
pkt A pointer to the packet buffer.
arg User defined argument.

int rt_pkt_telem unsigned int  size,
int  priority
 

Sends a test telemetry packet from the remote terminal.

Parameters:
size The size in bytes of faked test pattern data in packet.
priority The packet send priority: CTDB_RT_PRIORITY_HIGH or CTDB_RT_PRIORITY_LOW.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

unsigned int rt_pkt_telem_parse CLI_Control *  cli,
rt_test_config config
[static]
 

CLI callback for "rt_pkt_telem" command.

Parameters:
cli CLI control handle.
config Application configuration.
Returns:
CLI_SUCCESS

Here is the call graph for this function:

int rt_start void   ) 
 

Starts the remote terminal and packet receive tasks.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

unsigned int rt_start_parse CLI_Control *  cli,
rt_test_config config
[static]
 

CLI callback for "rt_start" command.

Parameters:
cli CLI control handle.
config Application configuration.
Returns:
CLI_SUCCESS

Here is the call graph for this function:

int rt_stop void   ) 
 

Stops the remote terminal and packet receive tasks.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

unsigned int rt_stop_parse CLI_Control *  cli,
rt_test_config config
[static]
 

CLI callback for "rt_stop" command.

Parameters:
cli CLI control handle.
config Application configuration.
Returns:
CLI_SUCCESS

Here is the call graph for this function:


Variable Documentation

dumpLine [static]
 

Initial value:

 
                "-------------------------------------------------------------------------------\n"
A separator line for displays.

initMsg = "RT not initialized\n" [static]
 

An error message.

rt_test_config rtTestConfig
 

The global instance of the test application descriptor.


Generated on Thu May 5 21:37:06 2005 by doxygen 1.3.3