GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-2-1

Constituent: ctdb_unit_test     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

CO1553_bc_sim.h File Reference

1553 Bus Controller Simulator. More...

#include "CTDB/CTDB_msg.h"

Include dependency graph for CO1553_bc_sim.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  _CO1553_BC_Sim_Config

Simulator Control Functions

unsigned int CO1553_bcSimSizeof (void)
 Get the size of a bus controller simulator descriptor.

CO1553_BC_SimCO1553_bcSimGet (void)
 Get a pointer to the bus controller simulator static descriptor.

unsigned int CO1553_bcSimInit (CO1553_BC_Sim *bc, const CO1553_BC_Sim_Config *simConfig, const char *rtAddr)
 Intialize a 1553 bus controller simulator.

unsigned int CO1553_bcSimExit (CO1553_BC_Sim *bc)
 Shutdown a 1553 bus controller simulator.

unsigned int CO1553_bcSimStart (CO1553_BC_Sim *bc)
 Start the bus controller simulator sending 1553 bus commands.

unsigned int CO1553_bcSimStop (CO1553_BC_Sim *bc)
 Stop the bus controller simulator sending 1553 bus commands.


Packet Queue Functions

unsigned int CO1553_bcSimPktTelemRecv (CO1553_BC_Sim *bc, void **pkt)
 Receive a CCSDS telemetry packet.

unsigned int CO1553_bcSimPktTelemFree (CO1553_BC_Sim *bc, void *pkt)
 Free a CCSDS telemetry packet buffer.

unsigned int CO1553_bcSimPktCmdTxRecv (CO1553_BC_Sim *bc, void **pkt)
 Receive a CCSDS telecommand transmit packet.

unsigned int CO1553_bcSimPktCmdTxFree (CO1553_BC_Sim *bc, void *pkt)
 Free a CCSDS telecommand transmit packet buffer.

unsigned int CO1553_bcSimPktCmdRxSend (CO1553_BC_Sim *bc, void *pkt)
 Send a CCSDS telecommand receive packet.


Typedefs

typedef _CO1553_BC_Sim CO1553_BC_Sim
typedef _CO1553_BC_Sim_Config CO1553_BC_Sim_Config

Detailed Description

1553 Bus Controller Simulator.

Author:
D.L. Wood
This simulator provides a UNIX compatable environment for command and telemetry. TCP/IP sockets are used to simulate the various 1553 subaddress types.

The recognized subaddress types are shown below,

Subaddress Direction Description
Command Receive (CmdRx) Receive (BC->RT) Telecommand input
Command Transmit(CmdTx) Transmit (RT->BC) Telecommand output
Telemetry (Telem) Transmit (RT->BC) Low rate telemetry

The remote terminal simulator acts as the TCP servers. Once started, it waits for connections from the bus controller simulator, which acts as a TCP client. Only one bus controller simulator may connect to the remote terminal simulator at a given time.


Typedef Documentation

CO1553_BC_Sim
 

The bus controller simulator descriptor.

CO1553_BC_Sim_Config
 

The typedef for _CO1553_BC_Sim_Config.


Generated on Tue Mar 22 20:43:17 2005 by doxygen 1.3.3