GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-15
Constituent: pbs     Tag: mv2304
#include <intLib.h>
#include "PBS/TBD.ih"
Include dependency graph for TBD.ih.vx-xxx-xxx:
Functions | |
TBD__EXP_FNC void ** | TBD__glocate (void) |
Locates the block of task data. | |
TBD__EXP_FNC void ** | TBD__locate (void) |
Locates the block of task data. | |
TBD__EXP_FNC void * | TBD__get (void **tbd, int index) |
Returns the value task global data at the specified index. | |
TBD__EXP_FNC void | TBD__put (void **tbd, int index, void *value) |
Puts the data value into the task global data at the specified index. |
CVS $Id: TBD.ih.vx-xxx-xxx,v 1.3 2004/12/07 16:13:08 russell Exp $
|
Returns the value task global data at the specified index.
|
|
Locates the block of task data.
See TBD__locate() for a usage example. |
|
Locates the block of task data.
The implementation of this function is very efficient of the VXWORKS platform, requiring approximately 2 instructions. It is highly recommended that the inline form of this function be used.
------- void **tbd = TBD__locate (); / * Check for NULL * / if (tbd != NULL) { int org_1 = TBD__get (tbd, DATA_IDX_1); int org_2 = TBD__get (tbd, DATA_IDX_2]; TBD__put (tbd, DATA_IDX_1, 0xdeadbeef); TBD__put (tbd, DATA_IDX_2, 0xabadcafe); } |
|
Puts the data value into the task global data at the specified index.
|