GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / dev > ctdb_bc_test_sim / rad750


Interface   Data Structures   File List   Data Fields   Globals  

CO1553_bc_sim.h File Reference

1553 Bus Controller Simulator. More...

#include <CTDB/CTDB_msg.h>

Classes

struct  _CO1553_BC_Sim_Config

Typedefs

typedef struct _CO1553_BC_Sim CO1553_BC_Sim
typedef struct
_CO1553_BC_Sim_Config 
CO1553_BC_Sim_Config

Functions

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.


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

The bus controller simulator descriptor.

The typedef for _CO1553_BC_Sim_Config.


Generated on Tue Sep 27 16:35:59 2011 by  doxygen 1.5.8