GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-4-0
Constituent: co1553_bc     Tag: mv2304
#include "stdlib.h"
#include "string.h"
#include "CTDB/CO1553_bc.h"
#include "CTDB/CO1553_util.h"
#include "CCSDS/CCSDS_pkt.h"
#include "PBS/LI.h"
#include "PBS/FPA.h"
#include "PBS/TOC.h"
#include "PBS/MBA.h"
#include "MSG/MSG_pubdefs.h"
Include dependency graph for CO1553_bc_telem.c:
Telemetry Interface Functions | |
unsigned int | CO1553_bcTelemSizeof (void) |
Get the size of a telemetry interface descriptor. | |
unsigned int | CO1553_bcTelemInit (CO1553_BC_Telem *telem, unsigned int msgCount, unsigned int queueSize, unsigned int pktSize) |
Initialize a telemetry interface descriptor. | |
unsigned int | CO1553_bcTelemExit (CO1553_BC_Telem *telem) |
Destroy a telemetry interface descriptor. | |
unsigned int | CO1553_bcTelemMsg (CO1553_BC_Telem *telem, unsigned short **devPtr, CO1553_BC_Mem_Copy *copyFunc) |
Process a 1553 message receive for the telemetry interface. | |
unsigned int | CO1553_bcTelemPktRecv (CO1553_BC_Telem *telem, void **pkt, const TOC *timeout) |
Receive a CCSDS telemetry packet from the 1553 telemetry interface. | |
unsigned int | CO1553_bcTelemPktFree (CO1553_BC_Telem *telem, void *pkt) |
Free a CCSDS telemetry packet buffer. | |
Defines | |
#define | MEM_ALLOC(_size) MBA_alloc((_size)) |
#define | MEM_FREE(_mem) MBA_free((_mem)) |
The functions are for use by a bus controller 1553 controller device driver.
|
Helper macro to call user defined memory allocator.
|
|
Helper macro to call user defined memory allocator.
|
|
Destroy a telemetry interface descriptor. Release resources from a 1553 CCSDS telemetry interface.
|
|
Initialize a telemetry interface descriptor. Initializes a 1553 CCSDS telemetry packet interface. The telemtry packet buffers and state machine are created. The telemetry packet input queue is created.
|
|
Process a 1553 message receive for the telemetry interface. Announces to the 1553 telemetry packet interface the reception of the last 1553 telemety message. This function is called by a 1553 controller driver when the last 1553 telemetry message in a frame has been received by the 1553 device. The telemetry transfer block (GT_PDU) is scanned for CCSDS telemetry packets. Each discovered packet is placed on the telemetry packet input queue.
|
|
Free a CCSDS telemetry packet buffer. Returns a borrowed CCSDS telemety packet buffer to the bus controller telemetry interface.
|
|
Receive a CCSDS telemetry packet from the 1553 telemetry interface. Attempts to get the next available telemetry packet from the bus controller telemetry input queue. The telemetry packet state machine places new packets on this queue as 1553 messages arrive on the bus. The packet buffer memory is loaned to the user. Call CO1553_bcTelemPktFree() to return the packet buffer to the bus controller telemetry interface.
|
|
Get the size of a telemetry interface descriptor.
|