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

Constituent: ctdb_com_test_intr     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ctdb_com_test_intr.c File Reference

Function definitions for 1553 RT communications test application for interrupt mode drivers. More...

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "CTDB/CTDB_rt.h"
#include "CTDB/SUMT_rt.h"
#include "CTDB/CTDB_config.h"
#include "PBS/PBS.h"
#include "PBS/TASK.h"
#include "PBS/MBA.h"
#include "PBS/TOC.h"
#include "PBS/RW.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"
#include "CCSDS/CCSDS_pkt.h"
#include "ctdb_com_test_private.h"

Include dependency graph for ctdb_com_test_intr.c:

Include dependency graph

Data Structures

struct  _test_config

Defines

#define SUMT_RT_TASK_NAME   "uRT"
#define SUMT_RT_TASK_STACK   0x2000
#define SUMT_RT_TASK_PRI   60
#define RT_CMD_RECV_PRI   150
#define RT_CMD_RECV_NAME   "uCmdRx"
#define MSG_PRI   210
#define WDOG_RESET

Typedefs

typedef _test_config test_config

Functions

unsigned int rt_pkt_hkp (void *buf, void *arg)
void rt_pkt_cmd_rx (void)
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)
void rt_pkt_free (void *pkt, void *arg)
int rt_init (void)
int rt_start (void)
int rt_stop (void)
int rt_exit (void)
int rt_diag (void)

Variables

SUMT_RT_Bus_Config busConfig
const SUMT_RT_Pkt_Config pktConfig
const SUMT_RT_Callback_Config cbConfig
const SUMT_RT_Task_Config taskConfig
test_config Config

Detailed Description

Function definitions for 1553 RT communications test application for interrupt mode drivers.

Author:
D.L. Wood

Define Documentation

#define MSG_PRI   210
 

The priority of the MSG output task.

#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 SUMT_RT_TASK_NAME   "uRT"
 

The name of the remote terminal service task.

#define SUMT_RT_TASK_PRI   60
 

The priority of the remote terminal service task.

#define SUMT_RT_TASK_STACK   0x2000
 

The size in bytes of the remote terminal service task stack.

#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_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   ) 
 

Initializes the target side of the test application.

Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void rt_pkt_cmd_rx void   )  [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.

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.

Here is the call graph for this function:

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_free void *  pkt,
void *  arg
[static]
 

Driver callback for telemetry packet completion.

Parameters:
pkt The buffer for holding the packet.
arg User defined argument.
Returns:
A CTDB MSG code.

unsigned int rt_pkt_hkp void *  buf,
void *  arg
[static]
 

Driver callback for HKP telemetry packet generation. If a requested HKP communications test response is outstanding, one HKP telemetry packet is delivered.

Parameters:
buf The buffer for holding the HKP packet.
arg User defined argument.
Returns:
A CTDB MSG code.

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.

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.

Here is the call graph for this function:


Variable Documentation

busConfig [static]
 

The RT driver 1553 bus configuration.

cbConfig [static]
 

Initial value:

 
{
        rt_pkt_hkp, 
        NULL
}
The RT driver callback configuration.

Config [static]
 

The test configuration structure.

pktConfig [static]
 

Initial value:

The RT driver packet configuration.

taskConfig [static]
 

Initial value:

 
{
        {
                SUMT_RT_TASK_NAME,
                SUMT_RT_TASK_PRI,
                0,
                NULL,
                SUMT_RT_TASK_STACK
        },
        
        MSG_LVL_INFORMATION,
}
The RT driver task configuration.


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