GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCS / dev > lcs / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

LTX_adaptSDI.c File Reference

LTX protocol adapter for CPU to SDI communications. More...

#include <string.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_apidefs.h>
#include <ITC/ITC_pubdefs.h>
#include <LCBD/LATP.h>
#include <LCS/LCS_msgs.h>
#include <MSG/MSG_pubdefs.h>
#include <LCS_prvdefs.h>

Functions

unsigned int LTX_protocolSDI (LTX_Engine *txe, unsigned int siz)
 Form the protocol header for one packet of a CPU/SDI transaction.
unsigned int LTX_startSDI2 (LTX_Engine *txe)
 Start a protocol 2 CPU to SDI transaction.

Variables

unsigned short seqSDI [ITC_L_APID_SDI]
 CCSDS sequence counters for science data interface APIDs.


Detailed Description

LTX protocol adapter for CPU to SDI communications.

CVS $Id: LTX_adaptSDI.c,v 1.5 2011/03/28 22:49:57 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int LTX_protocolSDI ( LTX_Engine txe,
unsigned int  siz 
)

Form the protocol header for one packet of a CPU/SDI transaction.

Parameters:
txe (in) LTX transmit engine
siz (in) Size (bytes) of packet payload
Return values:
cel The number of cells (16 byte objects) needed to send the message

References _LCS_ContextSDI::aid, _LCS_ContextSDI::apid, _LTX_Engine::beg, _LCS_ContextSDI::beg, _LCS_HeaderSDI::ctx, _LTX_Engine::end, _LCS_ContextSDI::end, _LTX_Sync::have, _LTX_Engine::hdr, _LTX_Sync::key, LTX_M_SDI_BEG, LTX_M_SDI_END, LTX_M_SDI_SEQ, LTX_sendSync(), _LTX_Sync::next, _LCS_ProtocolSDI::pad, _LCS_HeaderSDI::prt, _LCS_Header::sdi, _LCS_ProtocolSDI::seq, _LCS_ProtocolSDI::siz, _LTX_Engine::snc, _LCS_ProtocolSDI::tim, and _LTX_Sync::want.

unsigned int LTX_startSDI2 ( LTX_Engine txe  ) 


Generated on Mon Mar 28 15:54:27 2011 by  doxygen 1.5.8