GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LRA / V5-2-4 > lra_cli / linux-gcc
#include <LRA/LRA.h>
Typedefs | |
typedef enum _LRA_cli | LRA_cli |
Miscellaneous definitions. | |
Enumerations | |
enum | _LRA_cli { LRA_DOPT_PLAIN = 0x01, LRA_DOPT_NOHDR = 0x02 } |
Miscellaneous definitions. More... | |
Functions | |
unsigned | LRA_ctl (const char *cmpnt, const char *block, int tem, int cc, int rc, int fe, int func) |
Perform a control function. | |
unsigned | LRA_dump (const char *cmpnt, const char *block, int tem, int cc, int rc, int fe, int reg) |
Dump the contents of LAT registers to the SSR. | |
unsigned | LRA_set (long long value, const char *cmpnt, const char *block, int tem, int cc, int rc, int fe, int reg) |
Set the contents of LAT registers. | |
unsigned | LRA_show (const char *cmpnt, const char *block, int tem, int cc, int rc, int fe, int reg, int optns) |
Display the contents of LAT registers. | |
unsigned | LRA_time (const char *cmpnt, const char *block, int tem, int cc, int rc, int fe, int reg, int count) |
Time the reading of LAT registers. |
$Id: LRA_cli.h,v 1.7 2011/03/28 15:57:54 saxton Exp $
enum _LRA_cli |
unsigned LRA_ctl | ( | const char * | cmpnt, | |
const char * | block, | |||
int | tem, | |||
int | cc, | |||
int | rc, | |||
int | fe, | |||
int | func | |||
) |
Perform a control function.
This routine performs the specified control function on the specified LAT component.
cmpnt | The LAT component name or number | |
block | The register block name or number (EBM only) | |
tem | The TEM number for TEM-based components, or LRA_WILD for all TEMs | |
cc | The cable controller number, or LRA_WILD for all cable controllers | |
rc | The readout controller number, or LRA_WILD for all RCs | |
fe | The front end number, or LRA_WILD for all FEs | |
func | The function to perform |
LRA_SUCCESS | The operation was successful | |
LRA_INVCMPT | Invalid component number | |
LRA_INVCNTRL | Invalid control operation | |
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 |
References genRegSpec().
unsigned LRA_dump | ( | const char * | cmpnt, | |
const char * | block, | |||
int | tem, | |||
int | cc, | |||
int | rc, | |||
int | fe, | |||
int | reg | |||
) |
Dump the contents of LAT registers to the SSR.
This routine reads the contents of the specified LAT registers and sends the results to the SSR.
cmpnt | The LAT component name or number | |
block | The register block name or number | |
tem | The TEM number for TEM-based components, LRA_WILD to read all TEMs, or LRA_ACTIVE to read all available TEMs | |
cc | The cable controller number, or LRA_WILD for all cable controllers | |
rc | The readout controller number, or LRA_WILD for all RCs | |
fe | The front end number, or LRA_WILD for all FEs | |
reg | The register number, or LRA_WILD for all registers |
LRA_SUCCESS | The dump was successful | |
LRA_INVCMPNM | Invalid component name | |
LRA_INVCMPT | Invalid component number | |
LRA_INVBLKNM | Invalid register block name | |
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 | |
LRA_INVREG | Invalid register number | |
LCBD_RTOERR | Operation timed out | |
ITC_SENDNID | Destination node not reachable | |
ITC_SENDPRX | Proxy task for destination node not started | |
ITC_SENDQID | Destination queue not available | |
ITC_SENDTID | Destination task (LRA) not started |
References genRegSpec().
unsigned LRA_set | ( | long long | value, | |
const char * | cmpnt, | |||
const char * | block, | |||
int | tem, | |||
int | cc, | |||
int | rc, | |||
int | fe, | |||
int | reg | |||
) |
Set the contents of LAT registers.
This routine sets a value into the specified LAT registers.
value | The value to be set | |
cmpnt | The LAT component name or number | |
block | The register block name or number | |
tem | The TEM number for TEM-based components, or LRA_WILD for all TEMs | |
cc | The cable controller number, or LRA_WILD for all cable controllers | |
rc | The readout controller number, or LRA_WILD for all RCs | |
fe | The front end number, or LRA_WILD for all FEs | |
reg | The register number |
LRA_SUCCESS | Register setting was successful | |
LRA_INVCMPNM | Invalid component name | |
LRA_INVCMPT | Invalid component number | |
LRA_INVBLKNM | Invalid register block name | |
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 | |
LRA_INVREG | Invalid register number | |
ITC_SENDTID | Destination task (LRA) not started | |
LCBD_RTOERR | Operation timed out |
References genRegSpec().
unsigned LRA_show | ( | const char * | cmpnt, | |
const char * | block, | |||
int | tem, | |||
int | cc, | |||
int | rc, | |||
int | fe, | |||
int | reg, | |||
int | optns | |||
) |
Display the contents of LAT registers.
This routine displays the contents of the specified LAT registers.
cmpnt | The LAT component name or number | |
block | The register block name or number | |
tem | The TEM number for TEM-based components, LRA_WILD to read all TEMs, or LRA_ACTIVE to read all available TEMs | |
cc | The cable controller number, or LRA_WILD for all cable controllers | |
rc | The readout controller number, or LRA_WILD for all RCs | |
fe | The front end number, or LRA_WILD for all FEs | |
reg | The register number, or LRA_WILD for all registers | |
optns | Display options |
LRA_SUCCESS | Display was successful | |
LRA_INVCMPNM | Invalid component name | |
LRA_INVCMPT | Invalid component number | |
LRA_INVBLKNM | Invalid register block name | |
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 | |
LRA_INVREG | Invalid register number | |
ITC_SENDTID | Destination task (LRA) not started | |
LCBD_RTOERR | Operation timed out |
References genRegSpec(), getRegBuff(), and LRA_DOPT_NOHDR.
unsigned LRA_time | ( | const char * | cmpnt, | |
const char * | block, | |||
int | tem, | |||
int | cc, | |||
int | rc, | |||
int | fe, | |||
int | reg, | |||
int | count | |||
) |
Time the reading of LAT registers.
This routine reads the contents of the specified LAT registers, and displays the time taken to do so.
cmpnt | The LAT component name or number | |
block | The register block name or number | |
tem | The TEM number for TEM-based components, LRA_WILD to read all TEMs, or LRA_ACTIVE to read all available TEMs | |
cc | The cable controller number, or LRA_WILD to read all cable controllers. | |
rc | The readout controller number, or LRA_WILD to read all RCs. | |
fe | The front end number, or LRA_WILD to read all FEs. | |
reg | The register number, or LRA_WILD to read all registers. | |
count | The number of times to perform the read operation. |
LRA_SUCCESS | Timing was successful | |
LRA_INVCMPNM | Invalid component name | |
LRA_INVCMPT | Invalid component number | |
LRA_INVBLKNM | Invalid register block name | |
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 | |
LRA_INVREG | Invalid register number | |
ITC_SENDTID | Destination task (LRA) not started | |
LCBD_RTOERR | Operation timed out |
References genRegSpec(), and getRegBuff().