GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-4-0
Constituent: ctdb_unit_test     Tag: mv2304
#include "CTDB/CTDB_msg.h"
#include "PBS/RW.h"
#include "PBS/TOC.h"
#include "PBS/LI.h"
#include "PBS/L.h"
#include "PBS/FPA.h"
Include dependency graph for CO1553_rt.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _CO1553_RT_Cmd_Rx |
struct | _CO1553_RT_Cmd_Tx |
struct | _CO1553_RT_Diag |
struct | _CO1553_RT_Pkt_Desc |
struct | _CO1553_RT_Telem |
Telemtry Interface Functions | |
unsigned int | CO1553_rtTelemSizeof (void) |
Get the size of a telemetry interface descriptor. | |
unsigned int | CO1553_rtTelemInit (CO1553_RT_Telem *telem, unsigned int msgCount, unsigned int queueSizeHigh, unsigned int queueSizeLow, unsigned int telemPktSize, unsigned int hkpPktSize, CO1553_RT_Hkp_Handler *hkpHandler, void *hkpArg) |
Initialize a telemetry interface descriptor. | |
unsigned int | CO1553_rtTelemExit (CO1553_RT_Telem *telem) |
Destroy a telemetry interface descriptor. | |
unsigned int | CO1553_rtTelemMsg (CO1553_RT_Telem *telem, unsigned int *devPtr, CO1553_RT_Mem_Copy *copyFunc, unsigned int wordSize, CO1553_RT_Diag *diag, RW_ctl *lock) |
Process a 1553 message transmit for the telemetry interface. | |
unsigned int | CO1553_rtTelemPktSend (CO1553_RT_Telem *telem, void *pkt, CO1553_RT_Pkt_Free *freeHandler, void *freeArg, CO1553_RT_Priority priority, const TOC *timeout) |
Send a CCSDS telmetry packet to the 1553 telemtry interface. | |
unsigned int | CO1553_rtTelemHkpSet (CO1553_RT_Telem *telem, CO1553_RT_Hkp_Handler *hkpHandler, void *hkpArg) |
Change the HKP application callback. | |
unsigned int | CO1553_rtTelemHkpGet (CO1553_RT_Telem *telem, CO1553_RT_Hkp_Handler **hkpHandler, void **hkpArg) |
Get current HKP application callback information. | |
Command Receive Interface Functions | |
unsigned int | CO1553_rtCmdRxSizeof (void) |
Get the size of a command receive interface descriptor. | |
unsigned int | CO1553_rtCmdRxInit (CO1553_RT_Cmd_Rx *cmd, unsigned int queueSize, unsigned int pktSize, unsigned int usrSize) |
Initialize a command receive interface descriptor. | |
unsigned int | CO1553_rtCmdRxExit (CO1553_RT_Cmd_Rx *cmd) |
Destroy a command receive interface descriptor. | |
unsigned int | CO1553_rtCmdRxMsg (CO1553_RT_Cmd_Rx *cmd, unsigned int devPtr, CO1553_RT_Mem_Copy *copyFunc, CO1553_RT_Diag *diag, RW_ctl *lock) |
Process a 1553 message receive for the command receive interface. | |
unsigned int | CO1553_rtCmdRxPktRecv (CO1553_RT_Cmd_Rx *cmd, void **pkt, const TOC *timeout) |
Receive a CCSDS command packet from the 1553 command receive interface. | |
unsigned int | CO1553_rtCmdRxPktFree (CO1553_RT_Cmd_Rx *cmd, void *pkt) |
Free a CCSDS command receive packet buffer. | |
Command Transmit Interface Functions | |
unsigned int | CO1553_rtCmdTxSizeof (void) |
Get the size of a command transmit interface descriptor. | |
unsigned int | CO1553_rtCmdTxInit (CO1553_RT_Cmd_Tx *cmd, unsigned int queueSize, unsigned int pktSize) |
Initialize a command transmit interface descriptor. | |
unsigned int | CO1553_rtCmdTxExit (CO1553_RT_Cmd_Tx *cmd) |
Destroy a command transmit interface descriptor. | |
unsigned int | CO1553_rtCmdTxMsg (CO1553_RT_Cmd_Tx *cmd, unsigned int devPtr, CO1553_RT_Mem_Copy *copyFunc, int wordSize, CO1553_RT_Diag *diag, RW_ctl *lock) |
Process a 1553 message transmit for the command transmit interface. | |
unsigned int | CO1553_rtCmdTxPktSend (CO1553_RT_Cmd_Tx *cmd, void *pkt, CO1553_RT_Pkt_Free *freeHandler, void *freeArg, const TOC *timeout) |
Send a CCSDS command packet to the the 1553 command transmit interface. | |
Typedefs | |
typedef enum _CO1553_RT_Priority | CO1553_RT_Priority |
typedef _CO1553_RT_Diag | CO1553_RT_Diag |
typedef void | CO1553_RT_Pkt_Free (void *pkt, void *arg) |
typedef void | CO1553_RT_Mem_Copy (void *dest, void *src, unsigned int numWords) |
typedef unsigned int | CO1553_RT_Hkp_Handler (void *buf, void *arg) |
typedef _CO1553_RT_Pkt_Desc | CO1553_RT_Pkt_Desc |
typedef _CO1553_RT_Telem | CO1553_RT_Telem |
typedef _CO1553_RT_Cmd_Rx | CO1553_RT_Cmd_Rx |
typedef _CO1553_RT_Cmd_Tx | CO1553_RT_Cmd_Tx |
Enumerations | |
enum | _CO1553_RT_Priority { CO1553_RT_PRIORITY_LOW = 0, CO1553_RT_PRIORITY_HIGH = 1 } |
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 functions in this library are meant to be called by a 1553 device controller driver. Each subaddress state machine needs to be notified when the frame sync message occurs and when a data transfer message for that subaddress occurs. The controller driver provides pointers to device memory that the packet state machines use to copy 1553 messages in and out of the packet buffers.
|
A command receive interface descriptor. The command interface functions will take a pointer to an instance of this structure as a parameter. |
|
A command transmit interface descriptor. The command interface functions will take a pointer to an instance of this structure as a parameter. |
|
The typedef for _CO1553_RT_Diag. |
|
The format of the real-time housekeeping remote terminal callback. The user provides this function so that the HKP data packet may be inserted into the 1553 frame. The user should copy the HKP packet, with properly formatted CCSDS header, into the buf memory.
unsigned int CO1553_RT_Hkp_Handler(void *buf, void *arg)
|
|
A device dependent message copy function. For efficiency, the packet state machines try to move packet fragments directly in and out of the 1553 device shared memory message buffers. This function is provided by the controller driver to access the device shared memory.
void CO1553_RT_Mem_Copy(void *dest, void *src, unsigned int numWords)
|
|
The typedef for _CO1553_RT_Pkt_Desc. |
|
The definition of a packet buffer memory free callback function. These callbacks are employeed when users are sending packets on a transmit queue. The packet memory is borrowed while the packet is on the queue. When the packet contents have been transmitted, the free handler is called with a user supplied argument.
void CO1553_RT_Pkt_Free(void *pkt, void *arg)
|
|
The typedef for _CO1553_RT_Priority. |
|
A telemtry interface descriptor. The telemtery interface functions will take a pointer to an instance of this structure as a parameter. |
|
Priority values for telemetry packets. |