GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
CTS / V2-2-1
Constituent: cts_scp_enet     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.4 2005/08/05 01:27:28 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. |
Generated on Thu Aug 4 20:25:06 2005 by
1.3.3