GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
CTS / V2-1-0
Constituent: cts_lcp_sumt     Tag: mv2304
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"
Include dependency graph for CRX_dispatch.c:
|
Functions |
unsigned int | CRX_dispatch (void *prm, unsigned char *pkt) |
| Driver level packet dispatch (used in CTDB driver).
|
Variables |
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.3 2005/04/05 19:46:30 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_SUCCESS | Success |
CTS_ALOCFAIL | Cannot allocate packet to forward the command |
CTS_APIDRNG | APID invalid as spacecraft command |
CTS_APIDTBL | APID has no associated APID table entry |
CTS_QUEUTBL | APID does not map to a queue table entry |
CTS_GENERROR | Generic error |
- 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. |
Generated on Wed May 11 21:25:31 2005 by
1.3.3