GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-6 > ctdb_link_test_poll / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ctdb_link_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 <time.h>
#include <CTDB/SUMT_rt_poll.h>
#include <CTDB/CTDB_config.h>
#include <CTDB/CO1553_util.h>
#include <PBS/PBS.h>
#include <PBS/MBA.h>
#include <PBS/TASK.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_printProc.h>

Classes

struct  _test_config

Defines

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

Typedefs

typedef struct _test_config test_config

Functions

static void rt_poll (void)
int rt_init (unsigned short rtAddr)
int rt_exit (void)
int rt_start (void)
int rt_stop (void)

Variables

static SUMT_RT_Bus_Config busConfig
static 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.

Referenced by rt_init().

#define RT_POLL_NAME   "uRTPoll"

The name of the RT polling task.

Referenced by rt_start().

#define RT_POLL_PRI   250

The priority of the RT polling task.

Referenced by rt_start().

#define WDOG_RESET

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

Referenced by rt_poll().


Typedef Documentation

The typedef for _test_config.


Function Documentation

int rt_exit ( void   ) 

Stops the test application and releases resources.

Return values:
0 Success.
-1 Failure.

References _test_config::task.

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.

References _test_config::exit, MSG_PRI, _test_config::rt, SUMT_rtPollGet(), SUMT_rtPollInit(), and _test_config::task.

static 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.

References CO1553_MSG_SIZE, _test_config::exit, _test_config::rt, SUMT_rtPollQuery(), and WDOG_RESET.

Referenced by rt_start().

int rt_start ( void   ) 

Starts the remote terminal.

Return values:
0 Success.
-1 Failure.

References _test_config::rt, rt_poll(), RT_POLL_NAME, RT_POLL_PRI, SUMT_rtPollStart(), and _test_config::task.

int rt_stop ( void   ) 

Stops the remote terminal.

Return values:
0 Success.
-1 Failure.

References _test_config::exit, and _test_config::task.


Variable Documentation

busConfig [static]

The RT driver 1553 bus configuration.

Config [static]

The test configuration structure.


Generated on Wed Nov 21 20:02:46 2012 by  doxygen 1.5.8