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

Constituent: sumt_rt_poll_test     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

sumt_rt_poll_test.c File Reference

Function definitions for 1553 RT test application using Summit polled mode driver. More...

#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "time.h"
#include "CTDB/sumt_rt_poll_test.h"
#include "CTDB/SUMT_rt_poll.h"
#include "CTDB/CO1553_util.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_dump.h"
#include "PBS/PBS.h"
#include "PBS/MBA.h"
#include "PBS/TASK.h"
#include "PBS/WCT.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"

Include dependency graph for sumt_rt_poll_test.c:

Include dependency graph

Data Structures

struct  _rt_test_config

Defines

#define RT_POLL_NAME   "uRTPoll"
#define RT_POLL_PRI   200
#define MSG_PRI   210
#define RT_APID_HKP   0x200
#define RT_SIZE_HKP   116

Typedefs

typedef _rt_test_config rt_test_config

Functions

void rt_poll (void)
void rt_pkt_cmd_rx (unsigned char *pkt)
void rt_pkt_telem (void)
int rt_init (unsigned short rtAddr)
int rt_exit (void)
int rt_start (void)

Variables

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

Detailed Description

Function definitions for 1553 RT test application using Summit polled mode driver.

Author:
D.L. Wood

Define Documentation

#define MSG_PRI   210
 

The priority of the MSG output task.

#define RT_APID_HKP   0x200
 

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

#define RT_POLL_NAME   "uRTPoll"
 

The name of the RT polling task.

#define RT_POLL_PRI   200
 

The priority of the RT polling task.

#define RT_SIZE_HKP   116
 

The size in bytes of the test HKP telemetry packets.


Typedef Documentation

rt_test_config
 

The typedef for _rt_test_config.


Function Documentation

int rt_exit void   ) 
 

Stops the test application and releases resources.

Return values:
0 Success.
-1 Failure.

int rt_init unsigned short  addr  ) 
 

Initializes the test application. The driver is initialized and a the RT polling task is started.

Parameters:
addr The remote terminal address.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void rt_pkt_cmd_rx unsigned char *  pkt  )  [static]
 

Displays telecommand receive packets arriving at the remote terminal.

Parameters:
pkt A pointer to the telecommand packet buffer.

void rt_pkt_telem void   )  [static]
 

Generates a new HKP telemetry packet with test pattern application data.

Here is the call graph for this function:

void rt_poll void   )  [static]
 

Test application polling task. Constantly polls the RT for new events.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int rt_start void   ) 
 

Starts the remote terminal.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:


Variable Documentation

busConfig [static]
 

The RT driver 1553 bus configuration.

dumpLine [static]
 

Initial value:

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

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

An error message.

rtTestConfig [static]
 

The application configuration.


Generated on Thu May 5 21:45:38 2005 by doxygen 1.3.3