GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTS / dev > cts_scp_enet / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

CRX_dispatch.c File Reference

Dispatcher used in CTS receive tasks/callbacks. More...

#include <string.h>
#include <PBS/RW.ih>
#include <MSG/MSG_pubdefs.h>
#include <CCSDS/CCSDS_pkt.h>
#include <ITC/ITC_drvdefs.h>
#include <ITC/ITC_pubdefs.h>
#include <ITC/ITC_msgs.h>
#include <CTS/CTS_msgs.h>

Functions

unsigned int CRX_dispatch (void *prm, unsigned char *pkt)
 Driver level packet dispatch (used in CTDB driver).

Variables

static unsigned int CTX_dispatch_start
 One time CTX_dispatch initialization.


Detailed Description

Dispatcher used in CTS receive tasks/callbacks.

CVS $Id: CRX_dispatch.c,v 1.5 2011/03/28 23:55:13 apw Exp $
Author:
A.P.Waite

Function Documentation

unsigned int CRX_dispatch ( void *  prm,
unsigned char *  pkt 
)

Driver level packet dispatch (used in CTDB driver).

Parameters:
prm (in) User context parameter
pkt (in) CCSDS telecommand (first byte of primary header)
Return values:
CTS_ALOCFAIL Cannot allocate packet to forward the command
CTS_APIDNOQ Command APID does not map to an ITC queue
CTS_SUCCESS Success
Returns:
Failure in ITC_bind() or ITC_send()
Warning:
This dispatcher can only be used on a LAT SIU. It will fail if it's made the dispatcher on an emulated spacecraft.
CRX_dispatch() is the dispatcher operating inside the CTDB command receive task. If dispatches to an application task based on APID.

Referenced by CTS_configure().


Generated on Mon Mar 28 16:58:03 2011 by  doxygen 1.5.8