GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
CTDB / V5-5-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:
Detailed Description
Function definitions for 1553 RT communications test application for interrupt mode drivers.
- Author:
- D.L. Wood
Define Documentation
|
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. |
|
Resets the watchdog timer on the RAD750; a no-op for other targets. |
Typedef Documentation
Function Documentation
|
Displays remote terminal diagnostics.
- Return values:
-
|
Here is the call graph for this function:
|
Stops the test application and releases resources.
- Return values:
-
|
Here is the call graph for this function:
|
Initializes the target side of the test application.
- Return values:
-
|
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. |
|
|
Starts the remote terminal.
- Return values:
-
|
Here is the call graph for this function:
|
Stops the remote terminal.
- Return values:
-
|
Here is the call graph for this function:
Variable Documentation
|
The RT driver 1553 bus configuration. |
|
Initial value: The RT driver callback configuration. |
|
The test configuration structure. |
|
Initial value: The RT driver packet configuration. |
|
Initial value: The RT driver task configuration. |
Generated on Wed Sep 7 22:36:21 2005 by
1.3.3