GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-6 > co1553_bc_sim / rhel6-64
#include <CTDB/CTDB_bc.h>
#include <CTDB/CO1553_bc_sim.h>
#include <PBS/TOC.h>
#include <MSG/MSG_pubdefs.h>
Functions | |
unsigned int | CTDB_bcSizeof (void) |
Get the size of a bus controller interface descriptor. | |
void * | CTDB_bcGet (void) |
Get a pointer to the bus controller interface static descriptor. | |
unsigned int | CTDB_bcExit (void *bc) |
Shutdown a 1553 bus controller interface. | |
unsigned int | CTDB_bcStart (void *bc) |
Start the bus controller listening for 1553 bus commands. | |
unsigned int | CTDB_bcStop (void *bc) |
Stop the bus controller listening for 1553 bus commands. | |
unsigned int | CTDB_bcPktTelemRecv (void *bc, void **pkt, const TOC *timeout) |
Receive a CCSDS telemetry packet. | |
unsigned int | CTDB_bcPktTelemFree (void *bc, void *pkt) |
Free a CCSDS telemtry packet. | |
unsigned int | CTDB_bcPktCmdTxRecv (void *bc, void **pkt, const TOC *timeout) |
Receive a CCSDS telecommand transmit packet. | |
unsigned int | CTDB_bcPktCmdTxFree (void *bc, void *pkt) |
Free a CCSDS telecommand transmit packet. | |
unsigned int | CTDB_bcPktCmdRxSend (void *bc, void *pkt, CTDB_BC_Pkt_Free *freeHandler, void *freeArg, const TOC *timeout) |
Send a CCSDS telecommand receive packet. |
unsigned int CTDB_bcExit | ( | void * | bc | ) |
Shutdown a 1553 bus controller interface.
Disconnects the bus controller and releases system resources.
bc | A device descriptor. |
References CO1553_bcSimExit().
void* CTDB_bcGet | ( | void | ) |
Get a pointer to the bus controller interface static descriptor.
Returns a pointer to a static instance of the interface descriptor. This pointer may be passed in as the first paramter to all of the other interface functions. The device-specific intialization function must be called before use.
References CO1553_bcSimGet().
unsigned int CTDB_bcPktCmdRxSend | ( | void * | bc, | |
void * | pkt, | |||
CTDB_BC_Pkt_Free * | freeHandler, | |||
void * | freeArg, | |||
const TOC * | timeout | |||
) |
Send a CCSDS telecommand receive packet.
Places a CCSDS telecommand receive packet on the bus controller output queue. The packet will be sent when bandwidth becomes available.
bc | A device descriptor. | |
pkt | A pointer to the packet to send. The packet buffer should start with a properly formatted CCSDS packet header. | |
freeHandler | The function to be called after the packet has been sent. | |
freeArg | A user argument to be passed to the freeHandler function. | |
timeout | The time to wait for a packet on the queue. This value is ignored by the simulator implementation. |
References CO1553_bcSimPktCmdRxSend().
unsigned int CTDB_bcPktCmdTxFree | ( | void * | bc, | |
void * | pkt | |||
) |
Free a CCSDS telecommand transmit packet.
Returns a CCSDS telecommand transmit packet buffer to the driver. This function should be called for every telecommand packet received from the function CTDB_bcPktCmdTxRecv().
bc | A device descriptor. | |
pkt | A pointer to the packet buffer to free. |
References CO1553_bcSimPktCmdTxFree().
unsigned int CTDB_bcPktCmdTxRecv | ( | void * | bc, | |
void ** | pkt, | |||
const TOC * | timeout | |||
) |
Receive a CCSDS telecommand transmit packet.
Receive a CCSDS telecommand receive packet.
Waits for a new CCSDS telecommand transmit packet on the bus controller input queue. The function will place a pointer to the new packet buffer in pkt. The user should return the packet buffer to the driver by calling CTDB_bcPktCmdTxFree().
bc | A device descriptor. | |
pkt | Holds a pointer to the telecommand packet. | |
timeout | The time to wait for a packet on the queue. This value is ignored by the simulator implementation. |
References CO1553_bcSimPktCmdTxRecv().
unsigned int CTDB_bcPktTelemFree | ( | void * | bc, | |
void * | pkt | |||
) |
Free a CCSDS telemtry packet.
Returns a CCSDS telemetry packet buffer to the driver. This function should be called for every telemetry packet received from the function CTDB_bcPktTelemRecv().
bc | A device descriptor. | |
pkt | A pointer to the packet buffer to free. |
References CO1553_bcSimPktTelemFree().
unsigned int CTDB_bcPktTelemRecv | ( | void * | bc, | |
void ** | pkt, | |||
const TOC * | timeout | |||
) |
Receive a CCSDS telemetry packet.
Waits for a new CCSDS telemetry packet on the bus controller input queue. The function will place a pointer to the new packet buffer in pkt. The user should return the packet buffer to the driver by calling CTDB_bcPktTelemFree().
bc | A device descriptor. | |
pkt | Holds a pointer to the telemetry packet. | |
timeout | The time to wait for a packet on the queue. This value is ignored by the simulator implementation. |
References CO1553_bcSimPktTelemRecv().
unsigned int CTDB_bcSizeof | ( | void | ) |
Get the size of a bus controller interface descriptor.
Returns the size of a bus controller descriptor.
This function is obsolete. Use CTDB_bcGet() to provide an instance of the simulator descriptor instead.
References CO1553_bcSimSizeof().
unsigned int CTDB_bcStart | ( | void * | bc | ) |
Start the bus controller listening for 1553 bus commands.
Starts the bus controller processing bus commands to send to the remote terminal.
bc | A device descriptor. |
References CO1553_bcSimStart().
unsigned int CTDB_bcStop | ( | void * | bc | ) |
Stop the bus controller listening for 1553 bus commands.
Stops the bus controller from sending 1553 bus commands..
bc | A device descriptor. |
References CO1553_bcSimStop().