GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-5 > ctdb_unit_test / mv2304
#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_Sim * | CO1553_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. |
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.
The bus controller simulator descriptor.
The typedef for _CO1553_BC_Sim_Config.