GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CTDB / V5-5-0

Constituent: vsbc_bc_pmc1553     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

VSBC_bc_pkt.c File Reference

Interface functions for Summit bus controller CCSDS packet queues. More...

#include "CTDB/VSBC_bc.h"
#include "CTDB/CO1553_bc.h"
#include "PBS/TOC.h"
#include "MSG/MSG_pubdefs.h"
#include "VSBC_bc_private.h"

Include dependency graph for VSBC_bc_pkt.c:

Include dependency graph

Functions

unsigned int VSBC_bcPktTelemRecv (VSBC_BC *bc, void **pkt, const TOC *timeout)
 Receive a CCSDS telemetry packet.

unsigned int VSBC_bcPktTelemFree (VSBC_BC *bc, void *pkt)
 Free a CCSDS telemtry packet.

unsigned int VSBC_bcPktCmdTxRecv (VSBC_BC *bc, void **pkt, const TOC *timeout)
 Receive a CCSDS telecommand transmit packet.

unsigned int VSBC_bcPktCmdTxFree (VSBC_BC *bc, void *pkt)
 Free a CCSDS telecommand transmit packet.

unsigned int VSBC_bcPktCmdRxSend (VSBC_BC *bc, void *pkt, VSBC_BC_Pkt_Free *freeHandler, void *freeArg, const TOC *timeout)
 Send a CCSDS telecommand receive packet.


Detailed Description

Interface functions for Summit bus controller CCSDS packet queues.

Author:
D.L. Wood

Function Documentation

unsigned int VSBC_bcPktCmdRxSend VSBC_BC bc,
void *  pkt,
VSBC_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.

Parameters:
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.
Returns:
A CTDB MSG code.

Here is the call graph for this function:

unsigned int VSBC_bcPktCmdTxFree VSBC_BC 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 VSBC_bcPktCmdTxRecv().

Parameters:
bc A device descriptor.
pkt A pointer to the packet buffer to free.
Returns:
A CTDB MSG code.

Here is the call graph for this function:

unsigned int VSBC_bcPktCmdTxRecv VSBC_BC bc,
void **  pkt,
const TOC *  timeout
 

Receive a CCSDS telecommand transmit 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 VSBC_bcPktCmdTxFree().

Parameters:
bc A device descriptor.
pkt Holds a pointer to the telecommand packet.
timeout The time to wait for a packet on the queue.
Returns:
A CTDB MSG code.

Here is the call graph for this function:

unsigned int VSBC_bcPktTelemFree VSBC_BC 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 VSBC_bcPktTelemRecv().

Parameters:
bc A device descriptor.
pkt A pointer to the packet buffer to free.
Returns:
A CTDB MSG code.

Here is the call graph for this function:

unsigned int VSBC_bcPktTelemRecv VSBC_BC 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 if everything is working correctly. The user should return the packet buffer to the driver by calling VSBC_bcPktTelemFree().

Parameters:
bc A device descriptor.
pkt Holds a pointer to the telemetry packet.
timeout The time to wait for a packet on the queue.
Returns:
A CTDB MSG code.

Here is the call graph for this function:


Generated on Wed Sep 7 22:48:43 2005 by doxygen 1.3.3