GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCS / V1-5-6 > lcs / rhel6-64
#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. |
CVS $Id: LTX_adaptSDI.c,v 1.5 2011/03/28 22:49:57 apw Exp $
unsigned int LTX_protocolSDI | ( | LTX_Engine * | txe, | |
unsigned int | siz | |||
) |
Form the protocol header for one packet of a CPU/SDI transaction.
txe | (in) LTX transmit engine | |
siz | (in) Size (bytes) of packet payload |
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 | ) |
Start a protocol 2 CPU to SDI transaction.
txe | (in) LTX transmit engine |
LCS_SUCCESS | Success |
References _LCS_ContextSDI::aid, _LCS_ContextSDI::apid, _LCS_ContextSDI::beg, _LCS_HeaderSDI::ctx, _LCS_ContextSDI::end, _LTX_Engine::hdr, LTX_M_SDI_BEG, LTX_M_SDI_END, LTX_sendFirst(), _LTX_Engine::pid, _LTX_Engine::pnid, _LCS_HeaderSDI::prt, _LTX_Engine::qilen, _LTX_Engine::qipay, _LCS_Header::sdi, and _LCS_ProtocolSDI::seq.