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

Constituent: ctdb_com_test_poll     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ctdb_com_test_poll.c File Reference

Function definitions for 1553 RT link test application for polled mode drivers. More...

#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "CTDB/SUMT_rt_poll.h"
#include "CTDB/CO1553_util.h"
#include "CTDB/CO1553_rt.h"
#include "CTDB/CTDB_config.h"
#include "CCSDS/CCSDS_pkt.h"
#include "PBS/PBS.h"
#include "PBS/MBA.h"
#include "PBS/TASK.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"
#include "ctdb_com_test_private.h"

Include dependency graph for ctdb_com_test_poll.c:

Include dependency graph

Data Structures

struct  _test_config

Defines

#define RT_POLL_NAME   "uRTPoll"
#define RT_POLL_PRI   250
#define MSG_PRI   210
#define WDOG_RESET

Typedefs

typedef _test_config test_config

Functions

void rt_poll (void)
void rt_pkt_hkp (void)
void rt_pkt_cmd_rx (unsigned char *cmdPkt)
void rt_pkt_diag (unsigned char *cmdPkt)
void rt_pkt_sc (unsigned char *cmdPkt)
void rt_pkt_fill (unsigned char *pkt, unsigned short patSelect, unsigned short patLength, unsigned short respLength)
int rt_init (unsigned short rtAddr)
int rt_exit (void)
int rt_start (void)
int rt_stop (void)

Variables

SUMT_RT_Bus_Config busConfig
test_config Config

Detailed Description

Function definitions for 1553 RT link test application for polled mode drivers.

Author:
D.L. Wood

Define Documentation

#define MSG_PRI   210
 

The priority of the MSG output task.

#define RT_POLL_NAME   "uRTPoll"
 

The name of the RT polling task.

#define RT_POLL_PRI   250
 

The priority of the RT polling task.

#define WDOG_RESET
 

Resets the watchdog timer on the RAD750; a no-op for other targets.


Typedef Documentation

test_config
 

The typedef for _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 *  cmdPkt  )  [static]
 

Listens for telecommand receive packets arriving at the remote terminal. The SC broadcast telecommands (APID=0x701) are discarded. The communications test diagnostic telecommands (APID=0x646) are parsed and the appropriate telemetry response actions taken. The rececption of any other telecommands is considered an error condition.

Parameters:
cmdPkt A pointer to the telecommand packet buffer.

Here is the call graph for this function:

void rt_pkt_diag unsigned char *  cmdPkt  )  [static]
 

Handles diagnostics communications test telecommands (func code = 0).

Parameters:
cmdPkt A pointer to the telecommand packet buffer.

void rt_pkt_fill unsigned char *  pkt,
unsigned short  patSelect,
unsigned short  patLength,
unsigned short  respLength
[static]
 

Fills in the response data for a communication test telemetry packet.

Parameters:
pkt A pointer to the telmetry packet buffer.
patSelect The pattern select code.
patLength The pattern length value.
respLength The response length value.

void rt_pkt_hkp void   )  [static]
 

Generates HKP telemetry packets. If a requested HKP communications test response is outstanding, one HKP telemetry packet is delivered.

Here is the call graph for this function:

void rt_pkt_sc unsigned char *  cmdPkt  )  [static]
 

Handles diagnostics SC broadcase telecommands.

Parameters:
cmdPkt A pointer to the telecommand packet buffer.

void rt_poll void   )  [static]
 

Test application polling task. Constantly polls the RT for new events. For this test telemetry events are ignored and all telecommand input is discarded.

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:

int rt_stop void   ) 
 

Stops the remote terminal.

Return values:
0 Success.
-1 Failure.


Variable Documentation

busConfig [static]
 

The RT driver 1553 bus configuration.

Config [static]
 

The test configuration structure.


Generated on Sun Jul 17 01:06:56 2005 by doxygen 1.3.3