GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCI / V6-0-0 > lci / rad750
#include "LCI/LCI_msgs.h"
#include "collect_p.h"
#include "enums_p.h"
#include "LSEC/enums.h"
#include "LEM/list.h"
#include "LEM/defs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/WCT.h"
#include "EDS/EBF_siv.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_edw.h"
#include "macros_p.h"
#include <string.h>
#include <stdio.h>
Functions | |
| void | LCI_collClearCounts (LCI_collection *cll) |
| Clear collection counters. | |
| void | LCI_collCounts (LCI_collection *cll, unsigned int *nWait, unsigned int *nSignal, unsigned int *nTimeout) |
| Get collection counters. | |
| LCI_collection * | LCI_collCreate (unsigned cap) |
| Allocate and initialise an LCI_collection structure. | |
| void | LCI_collDelete (LCI_collection *cll) |
| Free a structure previously allocated using LCI_collCreate. | |
| unsigned | LCI_collect (LCI_collection *cll, unsigned nev, unsigned period) |
| Initiate the calibration triggers and wait for the events to be collected and constructed. | |
| unsigned | LCI_collected (LCI_collection *cll) |
| Get the number of events collected. | |
| unsigned int | LCI_collEventCB (void *prm, unsigned int edw, LCBD_evt *pkt) |
| LCI event handler. | |
| EBF_dir * | LCI_collGet (LCI_collection *cll) |
| Return the directory of the next event (or NULL) and advance the read counter. | |
| void | LCI_collRestart (LCI_collection *cll) |
| Reset the read counter to 0. | |
| void | LCI_collSetCom (LCI_collection *cll, void *lcbd, void *cr) |
| Set the communications pointers of the collection structure. | |
| void | LCI_collTime (LCI_collection *cll, int clear, long long *ctime) |
| Return accumulated collection time. | |
| void LCI_collClearCounts | ( | LCI_collection * | cll | ) |
Clear collection counters.
This routine calls through to the cue counter clear routine.
| cll | Pointer to an allocated and initialised collection structure that has been used to collect events |
| void LCI_collCounts | ( | LCI_collection * | cll, | |
| unsigned int * | nWait, | |||
| unsigned int * | nSignal, | |||
| unsigned int * | nTimeout | |||
| ) |
Get collection counters.
This routine calls through to the cue counters get routine, returning the counts accumulated since the last clear.
| cll | Pointer to a collection structure. | |
| nWait | Address of an integer to receive the number of wait calls, or NULL if not needed. | |
| nSignal | Address of an integer to receive the number of signal calls, or NULL if not needed. | |
| nTimeout | Address of an integer to receive the number of timeouts, or NULL if not needed. |
| LCI_collection* LCI_collCreate | ( | unsigned | cap | ) |
Allocate and initialise an LCI_collection structure.
| cap | Capacity, the maximum number of events that can be collected |
| void LCI_collDelete | ( | LCI_collection * | cll | ) |
Free a structure previously allocated using LCI_collCreate.
| cll | Pointer to an allocated and initialised LCI_collection structure |
| unsigned LCI_collect | ( | LCI_collection * | cll, | |
| unsigned | nev, | |||
| unsigned | period | |||
| ) |
Initiate the calibration triggers and wait for the events to be collected and constructed.
| cll | Pointer to an intialised event collection structure | |
| nev | Number of events to be collected | |
| period | The period (in 50 ns ticks) between triggers |
| LCI_SUCCESS | If all the expected events were successfully collected | |
| LCI_LOSTEVT | If some of the events were not collected |
| unsigned LCI_collected | ( | LCI_collection * | cll | ) |
Get the number of events collected.
| cll | Pointer to an allocated and initialised collection structure that has been used to collect events |
| unsigned int LCI_collEventCB | ( | void * | prm, | |
| unsigned int | edw, | |||
| LCBD_evt * | pkt | |||
| ) |
LCI event handler.
Copy the packet into the storage area, update the state information vector and compose the directory - on the last packet of the event construct the event
| prm | Pointer to the LCI_collection structure, passed through the LCBD event handler | |
| edw | Description of the event (a thirty-two bit number that indicates, among other things, errors in the event transmission) | |
| pkt | Pointer to the event packet |
| 0 | Indicates that the packet should be freed by the LCB driver |
| EBF_dir* LCI_collGet | ( | LCI_collection * | cll | ) |
Return the directory of the next event (or NULL) and advance the read counter.
| cll | Pointer to an allocated and initialised collection |
| void LCI_collRestart | ( | LCI_collection * | cll | ) |
Reset the read counter to 0.
| cll | Pointer to a collection structure |
| void LCI_collSetCom | ( | LCI_collection * | cll, | |
| void * | lcbd, | |||
| void * | cr | |||
| ) |
Set the communications pointers of the collection structure.
The lcbd and cr pointers are void to avoid dragging in LCBD and LEM dependancies
| cll | Pointer to a collection structure. | |
| lcbd | Pointer to the LCB control block, | |
| cr | Pointer to a multi-item command-response list. |
| void LCI_collTime | ( | LCI_collection * | cll, | |
| int | clear, | |||
| long long * | ctime | |||
| ) |
Return accumulated collection time.
| cll | Pointer to a collection structure. | |
| clear | If TRUE, clear the time after copying it. | |
| ctime | Address of a variable to receive the accumulated time taken to do collections, or NULL if no time wanted. |
1.5.3