GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ITC / V3-9-1 > itc / linux-gcc
#include <string.h>
#include "PBS/FORK.h"
#include "PBI/TBD_id.h"
#include "PBS/TBD.ih"
#include "ITC/ITC_drvdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "ITC/ITC_msgs.h"
#include "ITC_inline.ih"
#include "ITC_prvdefs.h"
Functions | |
void * | ITC_allocFromQueue (ITC_Queue *queue, unsigned int siz, ITC_cb_Completion **rtn, void **cb0, void **cb1, void **cb2) |
Allocate memory from a queue. | |
FORK_que * | ITC_getForkQueueHandle (ITC_TaskID tid, ITC_QueueID qid) |
Return the fork queue handle for the given task/queue. | |
unsigned int | ITC_getPacketProtocol (const ITC_QueueItem *qitem) |
Return the complete ITC protocol word. | |
ITC_Queue * | ITC_mapApid2Queue (unsigned short APID, ITC_TaskID *tid, ITC_QueueID *qid, unsigned int *scb) |
Return queue handle corresponding to APID. | |
ITC_Queue * | ITC_mapDst2Queue (unsigned int itcp) |
Return queue handle corresponding to destination task/queue IDs. | |
ITC_NodeID | ITC_setPacketSrcNodeID (ITC_QueueItem *qitem, ITC_NodeID nid) |
Set the source node ID for the given queue item. | |
ITC_TaskID | ITC_setPacketSrcTaskID (ITC_QueueItem *qitem, ITC_TaskID tid) |
Set the source task ID for the given queue item. |
CVS $Id: ITC_driver.c,v 1.3 2005/04/12 00:11:18 apw Exp $
void * ITC_allocFromQueue | ( | ITC_Queue * | queue, | |
unsigned int | siz, | |||
ITC_cb_Completion ** | rtn, | |||
void ** | cb0, | |||
void ** | cb1, | |||
void ** | cb2 | |||
) |
Allocate memory from a queue.
queue | (in) Queue handle | |
siz | (in) Bytes to allocate | |
rtn | (out) Memory deallocation callback routine | |
cb0 | (out) Memory deallocation callback routine parameter 0 | |
cb1 | (out) Memory deallocation callback routine parameter 1 | |
cb2 | (out) Memory deallocation callback routine parameter 2 |
NULL | Memory not allocated | |
x | Pointer to allocated memory |
FORK_que * ITC_getForkQueueHandle | ( | ITC_TaskID | tid, | |
ITC_QueueID | qid | |||
) |
Return the fork queue handle for the given task/queue.
tid | (in) Task ID | |
qid | (in) Queue ID |
NULL | Error (no such task, no such queue, task not started) | |
x | The fork queue handle |
unsigned int ITC_getPacketProtocol | ( | const ITC_QueueItem * | qitem | ) |
Return the complete ITC protocol word.
qitem | (in) Queue item |
ITC_Queue * ITC_mapApid2Queue | ( | unsigned short | APID, | |
ITC_TaskID * | tid, | |||
ITC_QueueID * | qid, | |||
unsigned int * | scb | |||
) |
Return queue handle corresponding to APID.
APID | (in) Application ID | |
tid | (out) Task ID | |
qid | (out) Queue ID | |
scb | (out) Is broadcast command (0/1 => not broadcast/broadcast) |
NULL | No mapping possible | |
x | Queue handle |
ITC_Queue * ITC_mapDst2Queue | ( | unsigned int | itcp | ) |
Return queue handle corresponding to destination task/queue IDs.
itcp | (in) ITC protocol word |
NULL | No mapping possible | |
x | Queue handle |
ITC_NodeID ITC_setPacketSrcNodeID | ( | ITC_QueueItem * | qitem, | |
ITC_NodeID | nid | |||
) |
Set the source node ID for the given queue item.
qitem | (in) Queue item pointer | |
nid | (in) ITC node ID |
x | Previous value of node ID (ITC_NID_NONE on error) |
ITC_TaskID ITC_setPacketSrcTaskID | ( | ITC_QueueItem * | qitem, | |
ITC_TaskID | tid | |||
) |
Set the source task ID for the given queue item.
qitem | (in) Queue item pointer | |
tid | (in) ITC task ID |
x | Previous value of task ID (ITC_TID_NONE on error) |