GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
CTDB / V5-4-0
Constituent: vsbc_bc_test_sumt     Tag: mv2304
Interface Data Structures File List Data Fields Globals
vsbc_bc_test_sumt.c File Reference
Function definitions for 1553 BC test application using Summit driver.
More...
#include "vxWorks.h"
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#include "CCSDS/CCSDS_pkt.h"
#include "CCSDS/CCSDS_dump.h"
#include "CCSDS/CCSDS_swap.h"
#include "PBS/PBS.h"
#include "PBS/TASK.h"
#include "PBS/TOC.h"
#include "PBS/TOV.h"
#include "PBS/MBA.h"
#include "MSG/MSG_pubdefs.h"
#include "MSG/MSG_printProc.h"
#include "CTDB/vsbc_bc_test_sumt.h"
#include "CTDB/VSBC_bc.h"
#include "CTDB/CTDB_config.h"
#include "CTDB/CO1553_util.h"
#include "ctdb_bc_test_private.h"
Include dependency graph for vsbc_bc_test_sumt.c:
Detailed Description
Function definitions for 1553 BC test application using Summit driver.
- Author:
- D.L. Wood
Define Documentation
#define BC_APID_CMD_RX 10
|
|
|
A fake CCSDS application ID to use for sent telecommand packets. |
#define BC_APID_SC_SYNC 0x702
|
|
|
The fake CCSDS APID used by the BC test application for SC telecommand test packets. |
#define BC_CMD_TX_RECV_NAME "uCmdTx"
|
|
|
The name of the telecommand receive task (VxWorks only). |
#define BC_CMD_TX_RECV_PRI 130
|
|
|
The priority to run the telecommand receive task (VxWorks only). |
|
A fake function code to use for sent telecommand packets. |
#define BC_SIZE_SC_ANC 36
|
|
|
The size in bytes of the test SC ancillary telecommand packets. |
#define BC_SIZE_SC_ATT 52
|
|
|
The size in bytes of the test SC attitude telecommand packets. |
|
The size in bytes of the test SC timetone telecommand packets. |
#define BC_TELEM_RECV_NAME "uTelemRx"
|
|
|
The name of the telemetry receive task (VxWorks only). |
#define BC_TELEM_RECV_PRI 150
|
|
|
The priority to run the telemetry receive task (VxWorks only). |
|
The priority of the MSG output task. |
#define RT_APID_HKP 0x20e
|
|
|
A fake CCSDS application ID to use for sent HKP telemetry packets. |
#define VSBC_BC_TASK_NAME "uBC"
|
|
|
The name of the bus controller service task. |
#define VSBC_BC_TASK_PRI 60
|
|
|
The priority of the bus controller service task. |
#define VSBC_BC_TASK_STACK 0x2000
|
|
|
The size in bytes of the bus controller service task stack. |
Function Documentation
|
Stops the test application and releases resources.
- Return values:
-
|
Here is the call graph for this function:
int bc_init |
( |
void * |
addr, |
|
|
int |
busB, |
|
|
int |
hkpPrint |
|
) |
|
|
|
Initializes the test application. The device specific initialization is handled in bc_init_dev().
- Parameters:
-
addr | Address of remote terminal (1553 RT or IP). |
busB | Use 1553 bus side B as default. |
hkpPrint | 0 = do not display HKP telemetry packets as they are received; 1 = display HKP telemetry packets as they are received |
- Return values:
-
|
Here is the call graph for this function:
unsigned int bc_init_dev |
( |
void * |
bc, |
|
|
void * |
addr, |
|
|
int |
busB |
|
) |
|
|
|
Implementation specific device initialization.
Initializes the BC Summit driver.
- Parameters:
-
bc | The driver handle. |
addr | The RT address. |
busB | 0 = use bus A, 1 = use bus B |
- Returns:
- A CTDB MSG code.
|
Here is the call graph for this function:
int bc_pkt_cmd_rx |
( |
unsigned int |
size |
) |
|
|
|
Sends a test telecommand receive packet from the bus controller.
- Parameters:
-
size | The size in bytes of faked test pattern data in packet. |
- Return values:
-
|
Here is the call graph for this function:
unsigned int bc_pkt_cmd_sync |
( |
VSBC_BC_Subaddr |
subAddr, |
|
|
void * |
buf, |
|
|
void * |
arg |
|
) |
[static] |
|
|
Driver callback for synchronous telecommand packet generation.
- Parameters:
-
subAddr | A value indicating which type of synchronous command is requested. |
buf | The buffer for holding the HKP packet. |
arg | User defined argument. |
- Returns:
- A CTDB MSG code.
|
void bc_pkt_cmd_tx |
( |
void |
|
) |
[static] |
|
|
Listens for and displays telecommand transmit packets arriving at the bus controller. |
Here is the call graph for this function:
void bc_pkt_free |
( |
void * |
pkt, |
|
|
void * |
arg |
|
) |
[static] |
|
|
Packet release callback used by test application.
- Parameters:
-
pkt | A pointer to the packet buffer. |
arg | User defined argument. |
|
void bc_pkt_telem |
( |
void |
|
) |
[static] |
|
|
Listens for and displays telemetry packets arriving at the bus controller. |
Here is the call graph for this function:
void bc_pkt_telem_print |
( |
unsigned char * |
pkt, |
|
|
unsigned char * |
hdr, |
|
|
int |
wordCount |
|
) |
[static] |
|
|
Displays telemetry packet contents.
- Parameters:
-
pkt | A pointer to the packet buffer. |
hdr | A pointer |
wordCount | The number of 16 bit words in the packet. |
|
|
Starts the bus controller and packet receive tasks.
- Return values:
-
|
Here is the call graph for this function:
|
Stops the bus controller and packet receive tasks.
- Return values:
-
|
Variable Documentation
|
The application configuration |
|
The BC driver 1553 bus configuration. |
|
Initial value: The BC driver callback configuration. |
|
Initial value:
"-------------------------------------------------------------------------------\n"
A separator line for displays. |
initMsg = "BC not initialized\n" [static]
|
|
|
Initial value: The BC driver packet configuration. |
|
Initial value: The BC driver task configuration. |
Generated on Sun Jul 17 01:12:42 2005 by
1.3.3