GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LRA / V5-2-0 > lra / rad750
#include "MSG/MSG_pubdefs.h"
#include "LEM/defs.h"
#include "LEM/encode.h"
#include "LEM/decode.h"
#include "LEM/list.h"
#include "LEM/list_macros.h"
#include "LRA_p.h"
#include "LRA/LRA_msgs.h"
Functions | |
unsigned | LRA_load (const LRA_regSpec *rSpec, long long *value) |
Perform a register load operation. | |
unsigned | LRA_doLoad (LEM_micr *crl, const LRA_regSpec *rSpec, const long long *value) |
Internal routine to handle a register load request. |
$Id: LRA_load.c,v 1.11 2009/07/31 22:06:39 saxton Exp $
unsigned LRA_doLoad | ( | LEM_micr * | crl, | |
const LRA_regSpec * | rSpec, | |||
const long long * | value | |||
) |
Internal routine to handle a register load request.
This routine loads the specified value into one or more instances of the specified register.
crl | The address of a multi-item command/response list to be used in the register operations. | |
rSpec | The register specifier, specifying which register (or set of registers) is (are) to be loaded. This contains the device, the register block, the TEM number, cable controller number, readout controller number, front-end number, and register number. The four parameters tem, cc, rc and fe may be set individually to the value LRA_WILD to cause the value to be loaded in all places. | |
value | The address of the value to be loaded into the specified instances of the register. |
LRA_SUCCESS | Load was successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVREG | Invalid register number | |
LRA_INVBLOCK | Invalid register block number | |
LRA_INVTEM | Invalid TEM number | |
LRA_INVCC | Invalid cable controller number | |
LRA_INVRC | Invalid readout controller number | |
LRA_INVFE | Invalid front-end number | |
LCBD_RTOERR | Operation timed out |
unsigned LRA_load | ( | const LRA_regSpec * | rSpec, | |
long long * | value | |||
) |
Perform a register load operation.
The internal routine is called to load the specified value into one or more instances of the specified register.
rSpec | The register specifier, specifying which register (or set of registers) is (are) to be loaded. This contains the device, the register block, the TEM number, cable controller number, readout controller number, front-end number, and register number. The four parameters tem, cc, rc and fe may be set individually to the value LRA_WILD to cause the value to be loaded in all places. | |
value | The address of the value to be loaded into the specified instances of the register. |
LRA_SUCCESS | Load was successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVREG | Invalid register number | |
LRA_INVBLOCK | Invalid register block number | |
LRA_INVTEM | Invalid TEM number | |
LRA_INVCC | Invalid cable controller number | |
LRA_INVRC | Invalid readout controller number | |
LRA_INVFE | Invalid front-end number | |
ITC_SENDTID | Destination task (LRA) not started | |
LCBD_RTOERR | Operation timed out |