GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCS / V1-4-1

Constituent: lcs     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LTX_adaptCPU.c File Reference

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

#include "PBI/TBD_id.h"
#include "PBS/FFS.ih"
#include "PBS/FORK.h"
#include "PBS/TBD.ih"
#include "MSG/MSG_pubdefs.h"
#include "ITC/ITC_drvdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCS/LCS_drvdefs.h"
#include "LCS/LCS_msgs.h"
#include "LCS_prvdefs.h"

Include dependency graph for LTX_adaptCPU.c:


Functions

static FORK_cb_status LTX_allocSync (LTX_Engine *txe)
 Allocation request synchronized, move to next step.
FORK_cb_status LTX_allocReply (FORK_cb_prm *prm, FORK_msg_hdr *msg)
 Process a reply to an allocation request.
unsigned int LTX_protocolCPU (LTX_Engine *txe, unsigned int siz)
 Form the protocol header for one packet of a CPU/CPU transaction.
FORK_cb_status LTX_sendReply (FORK_cb_prm *prm, FORK_msg_hdr *msg)
 Process a reply to the last packet of a message.
unsigned int LTX_startCPU2 (LTX_Engine *txe)
 Start a protocol 2 CPU to CPU transaction.
unsigned int LTX_startCPU3 (LTX_Engine *txe)
 Start a protocol 3 CPU to CPU transaction.

Detailed Description

LTX protocol adapter for CPU to CPU communications.

CVS $Id: LTX_adaptCPU.c,v 1.2 2006/04/27 21:41:11 apw Exp $
Author:
A.P.Waite

Function Documentation

FORK_cb_status LTX_allocReply FORK_cb_prm *  prm,
FORK_msg_hdr *  msg
 

Process a reply to an allocation request.

Parameters:
prm (in) User context parameter (unused)
msg (in) Fork message
Return values:
FORK_C_CONTINUE Always
LTX_allocReply() is the fork routine to process a memory allocation response.

static FORK_cb_status LTX_allocSync LTX_Engine txe  )  [static]
 

Allocation request synchronized, move to next step.

Parameters:
txe (in) Transmit engine handle
Return values:
FORK_C_CONTINUE Continue fork
~FORK_C_CONTINUE Shut down fork
LTX_allocSync() continues the processing once a memory allocation request has been synchronized.

unsigned int LTX_protocolCPU LTX_Engine txe,
unsigned int  siz
 

Form the protocol header for one packet of a CPU/CPU 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

FORK_cb_status LTX_sendReply FORK_cb_prm *  prm,
FORK_msg_hdr *  msg
 

Process a reply to the last packet of a message.

Parameters:
prm (in) User context parameter (unused)
msg (in) Fork message
Return values:
FORK_C_CONTINUE Always
LTX_sendReply() is the fork routine to process a last packet response.

unsigned int LTX_startCPU2 LTX_Engine txe  ) 
 

Start a protocol 2 CPU to CPU transaction.

Parameters:
txe (in) LTX transmit engine
Return values:
LCS_SUCCESS Success
LCS_TXNGNSIZ Protocol 2 message size exceeds maximum

unsigned int LTX_startCPU3 LTX_Engine txe  ) 
 

Start a protocol 3 CPU to CPU transaction.

Parameters:
txe (in) LTX transmit engine
Return values:
LCS_SUCCESS Success


Generated on Thu Apr 27 21:28:55 2006 by  doxygen 1.4.4