GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LEM / V4-6-0

Constituent: lem_cli     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

cli.h File Reference

Make a single item command list, queue it to the LCB and wait for the value. More...

#include "LEM/syms.h"
#include "LEM/decode_structs.h"

Include dependency graph for cli.h:

This graph shows which files directly or indirectly include this file:


Functions

unsigned TEM_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the common controller block of a TEM.
unsigned TEM_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the common controller block of a TEM.
unsigned TEM_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the common controller block of a TEM.
unsigned TIC_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the TIC block of a TEM.
unsigned TIC_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the TIC block of a TEM.
unsigned TIC_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the TIC block of a TEM.
unsigned TIC_ENV_read (LEM_LATP_ADDR addr, unsigned short *env, unsigned short *chnl, unsigned short *valid)
 Reads a block of 8 16-bit ADC values for environmental quantities.
unsigned CCC_cmd (LEM_LATP_ADDR addr, unsigned ccc, LEM_OPCODE opcode)
 Create a LATp load command targeted at a CCC.
unsigned CCC_load (LEM_LATP_ADDR addr, unsigned ccc, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at a CCC.
unsigned CCC_read (LEM_LATP_ADDR addr, unsigned ccc, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at a CCC.
unsigned CRC_cmd (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at a CRC.
unsigned CRC_load (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at a CRC.
unsigned CRC_read (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at a CRC.
unsigned CFE_cmd (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, unsigned cfe, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at a CFE.
unsigned CFE_load (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, unsigned cfe, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at a CFE.
unsigned CFE_read (LEM_LATP_ADDR addr, unsigned ccc, unsigned crc, unsigned cfe, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at a CFE.
unsigned TCC_cmd (LEM_LATP_ADDR addr, unsigned tcc, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at a TCC.
unsigned TCC_load (LEM_LATP_ADDR addr, unsigned tcc, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at a TCC.
unsigned TCC_read (LEM_LATP_ADDR addr, unsigned tcc, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at a TCC.
unsigned TRC_cmd (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at a TRC.
unsigned TRC_load (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, LEM_REG_ID reg, unsigned upper, unsigned lower)
 Create a LATp load Command targeted at a TRC.
unsigned TRC_read (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, LEM_REG_ID reg, unsigned *upper, unsigned *lower)
 Create a LATp load Command targeted at a TRC.
unsigned TFE_cmd (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, unsigned tfe, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at a TFE.
unsigned TFE_load (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, unsigned tfe, LEM_REG_ID reg, unsigned upper, unsigned lower)
 Create a LATp load Command targeted at a TFE.
unsigned TFE_read (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, unsigned tfe, LEM_REG_ID reg, unsigned *upper, unsigned *lower)
 Create a LATp read Command targeted at a TFE.
unsigned TDC_load (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, unsigned tfe, unsigned upper, unsigned lower)
 Create a LATp load Command targeted at a TFE.
unsigned TDC_read (LEM_LATP_ADDR addr, unsigned tcc, unsigned trc, unsigned tfe, unsigned *upper, unsigned *lower)
 Create a LATp read Command targeted at a TFE.
unsigned AEM_CC_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at the common controller block of the AEM.
unsigned AEM_CC_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at the common controller block of the AEM.
unsigned AEM_CC_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at the common controller block of the AEM.
unsigned AEM_ENV_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at the Environment block of the AEM.
unsigned AEM_ENV_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned upper, unsigned lower)
 Create a LATp load Command targeted at the Environment block of the AEM.
unsigned AEM_ENV_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *upper, unsigned *lower)
 Create a LATp read Command targeted at the Environment block of the AEM.
unsigned ARC_cmd (LEM_LATP_ADDR addr, unsigned arc, LEM_OPCODE opcode)
 Create a LATp load Command targeted at an ARC.
unsigned ARC_load (LEM_LATP_ADDR addr, unsigned arc, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at an ARC.
unsigned ARC_read (LEM_LATP_ADDR addr, unsigned arc, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at an ARC.
unsigned AFE_cmd (LEM_LATP_ADDR addr, unsigned arc, unsigned afe, LEM_OPCODE opcode)
 Create a LATp load Command targeted at an AFE.
unsigned AFE_load (LEM_LATP_ADDR addr, unsigned arc, unsigned afe, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at an AFE.
unsigned AFE_read (LEM_LATP_ADDR addr, unsigned arc, unsigned afe, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at an AFE.
unsigned PDU_CC_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at the common controller of the PDU.
unsigned PDU_CC_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at the common controller of the PDU.
unsigned PDU_CC_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at the common controller of the PDU.
unsigned PDU_ENV_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, PDU_env_rsp *value)
 Create a LATp read command targeted at the environment block of the PDU.
unsigned CRU_cmd (LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the CRU.
unsigned CRU_load (LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the CRU.
unsigned CRU_read (LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the CRU.
unsigned EBM_CC_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the common controller block of the EBM.
unsigned EBM_CC_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the common controller block of the EBM.
unsigned EBM_CC_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the common controller block of the EBM.
unsigned EBM_STAT_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp cmd command targeted at the statistics block of the EBM.
unsigned EBM_STAT_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the statistics block of the EBM.
unsigned EBM_STAT_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp load command targeted at the statistics block of the EBM.
unsigned GEM_CC_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Common Controller.
unsigned GEM_CC_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Common Controller.
unsigned GEM_CC_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Common Controller.
unsigned GEM_WIN_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Window block.
unsigned GEM_WIN_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Window block.
unsigned GEM_WIN_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Window block.
unsigned GEM_STAT_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Statistics block.
unsigned GEM_STAT_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Statistics block.
unsigned GEM_STAT_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Statistics block.
unsigned GEM_TAM_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Trigger Message Generator.
unsigned GEM_TAM_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Trigger Message Generator.
unsigned GEM_TAM_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Trigger Message Generator.
unsigned GEM_SCHD_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Scheduler.
unsigned GEM_SCHD_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Scheduler.
unsigned GEM_SCHD_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Scheduler.
unsigned GEM_IE_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Input Enable block.
unsigned GEM_IE_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Input Enable block.
unsigned GEM_IE_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Input Enable block.
unsigned GEM_ROI_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM Input Enable block.
unsigned GEM_ROI_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM Input Enable block.
unsigned GEM_ROI_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM Input Enable block.
unsigned LookAtMe (LEM_LATP_ADDR addr)
 Send a look-at-me command.
unsigned LookAtMeLCB (LEM_LATP_ADDR addr, unsigned value, unsigned enable_mask)
 Send a look-at-me command to a slave LCB.
void LEM_set_parity (LEM_PARITY_TYPES type, LEM_PARITY_SELECT parity)
 Set one of the available parity types to parity.
LEM_PARITY_SELECT LEM_get_parity (LEM_PARITY_TYPES type)
 Return one of the available parity types.
unsigned LEM_get_time (void)
 Returns the timestamp latched the last time LEM CLI was used to send a command.
void LEM_reset_time (void)
 Sets the static LEM_timestamp to zero.
unsigned TKR_set_split (LEM_LATP_ADDR addr, int low, int high)
 Set all the layers of the specified tower to have splits requested (default would be 11, 12).
unsigned AEM_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at the common controller block of the AEM.
unsigned AEM_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at the common controller block of the AEM.
unsigned AEM_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at the common controller block of the AEM.
unsigned GEM_cmd (LEM_LATP_ADDR addr, LEM_REG_BLK blk, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the GEM.
unsigned GEM_load (LEM_LATP_ADDR addr, LEM_REG_BLK blk, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM.
unsigned GEM_read (LEM_LATP_ADDR addr, LEM_REG_BLK blk, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM.
unsigned EBM_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless command targeted at the common controller block of the EBM.
unsigned EBM_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the common controller block of the EBM.
unsigned EBM_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the common controller block of the EBM.
unsigned PDU_cmd (LEM_LATP_ADDR addr, LEM_OPCODE opcode)
 Create a LATp dataless Command targeted at the common controller of the PDU.
unsigned PDU_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load Command targeted at the common controller of the PDU.
unsigned PDU_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read Command targeted at the common controller of the PDU.

Detailed Description

Make a single item command list, queue it to the LCB and wait for the value.

Author:
James Swain - jswain@slac.stanford.edu

Function Documentation

unsigned AEM_CC_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
opcode One of the LEM_OPCODE

unsigned AEM_CC_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
reg should be the ID of the target register
payload 32 bits of data to send with the load command

unsigned AEM_CC_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned AEM_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
opcode One of the LEM_OPCODE

unsigned AEM_ENV_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at the Environment block of the AEM.

Parameters:
addr Logical LATp address of the AEM
opcode One of the LEM_OPCODE

unsigned AEM_ENV_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  upper,
unsigned  lower
 

Create a LATp load Command targeted at the Environment block of the AEM.

Parameters:
addr Logical LATp address of the AEM
reg should be the ID of the target register
upper 32 Most significant bits of the data to send with the command
lower 32 least significant bits of the data to send with the command

unsigned AEM_ENV_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  upper,
unsigned *  lower
 

Create a LATp read Command targeted at the Environment block of the AEM.

Parameters:
addr Logical LATp address of the AEM
reg should be the ID of the target register
upper 32 Most significant bits of result
lower 32 Least significant bits of result

unsigned AEM_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
reg should be the ID of the target register
payload 32 bits of data to send with the load command

unsigned AEM_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at the common controller block of the AEM.

Parameters:
addr Logical address of the AEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned AFE_cmd LEM_LATP_ADDR  addr,
unsigned  arc,
unsigned  afe,
LEM_OPCODE  opcode
 

Create a LATp load Command targeted at an AFE.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
afe should be the ID of the target AFE, or BCAST to broadcast to all the AFEs
opcode Operation to perform

unsigned AFE_load LEM_LATP_ADDR  addr,
unsigned  arc,
unsigned  afe,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at an AFE.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
afe should be the ID of the target AFE, or BCAST to broadcast to all the AFEs
reg should be the ID of the target register
payload 16 bits of data to send with a load command

unsigned AFE_read LEM_LATP_ADDR  addr,
unsigned  arc,
unsigned  afe,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at an AFE.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
afe should be the ID of the target AFE, or BCAST to broadcast to all the AFEs
reg should be the ID of the target register
value Pointer to location to place the result

unsigned ARC_cmd LEM_LATP_ADDR  addr,
unsigned  arc,
LEM_OPCODE  opcode
 

Create a LATp load Command targeted at an ARC.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
opcode Operation to perform

unsigned ARC_load LEM_LATP_ADDR  addr,
unsigned  arc,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at an ARC.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
reg should be the ID of the target register
payload 16 bits of data to send with a load command

unsigned ARC_read LEM_LATP_ADDR  addr,
unsigned  arc,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at an ARC.

Parameters:
addr Logical LATp address of the AEM
arc should be the ID of the target ARC, or BCAST to broadcast to all the ARCs
reg should be the ID of the target register
value Pointer to the location to place the result

unsigned CCC_cmd LEM_LATP_ADDR  addr,
unsigned  ccc,
LEM_OPCODE  opcode
 

Create a LATp load command targeted at a CCC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
opcode Operation to perform

unsigned CCC_load LEM_LATP_ADDR  addr,
unsigned  ccc,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at a CCC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned CCC_read LEM_LATP_ADDR  addr,
unsigned  ccc,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at a CCC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
reg should be the ID of the target register
value Pointer to location to place the result

unsigned CFE_cmd LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
unsigned  cfe,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at a CFE.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
cfe should be the ID of the target CFE, or BCAST to broadcast to all CFEs
opcode Operation to perform

unsigned CFE_load LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
unsigned  cfe,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at a CFE.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
cfe should be the ID of the target CFE, or BCAST to broadcast to all CFEs
reg should be the ID of the target register
payload 16 bits to send with a load command

unsigned CFE_read LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
unsigned  cfe,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at a CFE.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
cfe should be the ID of the target CFE, or BCAST to broadcast to all CFEs
reg should be the ID of the target register
value Pointer to location to place the result

unsigned CRC_cmd LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at a CRC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
opcode One of the LEM_OPCODE

unsigned CRC_load LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at a CRC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
reg should be the ID of the target register
payload 16 bits to send with a load command

unsigned CRC_read LEM_LATP_ADDR  addr,
unsigned  ccc,
unsigned  crc,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at a CRC.

Parameters:
addr Logical LATp address of the TEM
ccc should be the ID of the target CCC, or BCAST to broadcast to all CCCs
crc should be the ID of the target CRC, or BCAST to broadcast to all CRCs
reg should be the ID of the target register
value Pointer to location to place the result

unsigned CRU_cmd LEM_OPCODE  opcode  ) 
 

Create a LATp dataless command targeted at the CRU.

Parameters:
opcode One of the LEM_OPCODE

unsigned CRU_load LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the CRU.

Parameters:
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned CRU_read LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the CRU.

Parameters:
reg should be the ID of the target register
value Pointer to the location to place the result

unsigned EBM_CC_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
opcode One of the LEM_OPCODE

unsigned EBM_CC_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned EBM_CC_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned EBM_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
opcode One of the LEM_OPCODE

unsigned EBM_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned EBM_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the common controller block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned EBM_STAT_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp cmd command targeted at the statistics block of the EBM.

Parameters:
addr Logical LATp address of the EBM
opcode One of the LEM_OPCODE

unsigned EBM_STAT_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the statistics block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned EBM_STAT_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp load command targeted at the statistics block of the EBM.

Parameters:
addr Logical LATp address of the EBM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_CC_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Common Controller.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_CC_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Common Controller.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_CC_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Common Controller.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_cmd LEM_LATP_ADDR  addr,
LEM_REG_BLK  blk,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM.

Parameters:
addr Logical LATp address of the GEM
blk should be the ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
opcode One of the LEM_OPCODE

unsigned GEM_IE_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_IE_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_IE_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_load LEM_LATP_ADDR  addr,
LEM_REG_BLK  blk,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM.

Parameters:
addr Logical LATp address of the GEM
blk should be the ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_read LEM_LATP_ADDR  addr,
LEM_REG_BLK  blk,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM.

Parameters:
addr Logical LATp address of the GEM
blk should be the ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_ROI_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_ROI_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_ROI_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Input Enable block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_SCHD_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Scheduler.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_SCHD_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Scheduler.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_SCHD_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Scheduler.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_STAT_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Statistics block.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_STAT_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Statistics block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_STAT_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Statistics block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_TAM_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Trigger Message Generator.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_TAM_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Trigger Message Generator.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_TAM_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Trigger Message Generator.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

unsigned GEM_WIN_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the GEM Window block.

Parameters:
addr Logical LATp address of the GEM
opcode One of the LEM_OPCODE

unsigned GEM_WIN_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the GEM Window block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned GEM_WIN_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the GEM Window block.

Parameters:
addr Logical LATp address of the GEM
reg should be the ID of the target register
value Pointer to location to place the result

LEM_PARITY_SELECT LEM_get_parity LEM_PARITY_TYPES  type  ) 
 

Return one of the available parity types.

Parameters:
type Specify the parity type to set
Returns:
LEM_PARITY_EVEN or LEM_PARITY_ODD

unsigned LEM_get_time void   ) 
 

Returns the timestamp latched the last time LEM CLI was used to send a command.

Return values:
The timestamp of the last command issued using the LEM CLI

void LEM_set_parity LEM_PARITY_TYPES  type,
LEM_PARITY_SELECT  parity
 

Set one of the available parity types to parity.

Parameters:
type Specify the parity type to set
parity EVEN or ODD

unsigned LookAtMe LEM_LATP_ADDR  addr  ) 
 

Send a look-at-me command.

Parameters:
addr Address to send the look at me (usually the broadcast address)

unsigned LookAtMeLCB LEM_LATP_ADDR  addr,
unsigned  value,
unsigned  enable_mask
 

Send a look-at-me command to a slave LCB.

Parameters:
addr Address to send the look at me (usually the broadcast address)
value Value to load into the slave LCB LATp CSR register
enable_mask Enable mask for the register write

unsigned PDU_CC_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
opcode One of the LEM_OPCODE

unsigned PDU_CC_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned PDU_CC_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
reg should be the ID of the target register
value Pointer to location to place the result of the read

unsigned PDU_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
opcode One of the LEM_OPCODE

unsigned PDU_ENV_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
PDU_env_rsp value
 

Create a LATp read command targeted at the environment block of the PDU.

Parameters:
addr should be one of unsigned
reg should be the ID of the target register
value Pointer to location to place the result of the read

unsigned PDU_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned PDU_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at the common controller of the PDU.

Parameters:
addr Logical LATp address
reg should be the ID of the target register
value Pointer to location to place the result of the read

unsigned TCC_cmd LEM_LATP_ADDR  addr,
unsigned  tcc,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at a TCC.

Parameters:
addr Logical address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
opcode Operation to perform

unsigned TCC_load LEM_LATP_ADDR  addr,
unsigned  tcc,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load Command targeted at a TCC.

Parameters:
addr Logical address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned TCC_read LEM_LATP_ADDR  addr,
unsigned  tcc,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read Command targeted at a TCC.

Parameters:
addr Logical address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
reg should be the ID of the target register
value Pointer to location to place the result

unsigned TDC_load LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
unsigned  tfe,
unsigned  upper,
unsigned  lower
 

Create a LATp load Command targeted at a TFE.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
tfe should be the ID of the target TFE, or BCAST to broadcast to all TFEs
upper 32 most significant bits of the data to send with the command
lower 32 least significant bits of the data to send with the command

unsigned TDC_read LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
unsigned  tfe,
unsigned *  upper,
unsigned *  lower
 

Create a LATp read Command targeted at a TFE.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
tfe should be the ID of the target TFE, or BCAST to broadcast to all TFEs
upper Pointer to location to place the 32 most significant bits of the result
lower Pointer to location to place the 32 least significant bits of the result

unsigned TEM_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the common controller block of a TEM.

Parameters:
addr Logical LATp address of the TEM
opcode OPCODE of the operation to perform

unsigned TEM_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the common controller block of a TEM.

Parameters:
addr Logical LATp address of the TEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned TEM_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the common controller block of a TEM.

Parameters:
addr Logical LATp address of the TEM
reg should be the ID of the target register
value Pointer to location to place the result of the read

unsigned TFE_cmd LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
unsigned  tfe,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at a TFE.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
tfe should be the ID of the target TFE, or BCAST to broadcast to all TFEs
opcode Operation to perform

unsigned TFE_load LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
unsigned  tfe,
LEM_REG_ID  reg,
unsigned  upper,
unsigned  lower
 

Create a LATp load Command targeted at a TFE.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
tfe should be the ID of the target TFE, or BCAST to broadcast to all TFEs
reg should be the ID of the target register
upper 32 most significant bits of the data to send with the command
lower 32 least significant bits of the data to send with the command

unsigned TFE_read LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
unsigned  tfe,
LEM_REG_ID  reg,
unsigned *  upper,
unsigned *  lower
 

Create a LATp read Command targeted at a TFE.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
tfe should be the ID of the target TFE, or BCAST to broadcast to all TFEs
reg should be the ID of the target register
upper Pointer to location to place the 32 most significant bits of the result
lower Pointer to location to place the 32 least significant bits of the result

unsigned TIC_cmd LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode
 

Create a LATp dataless command targeted at the TIC block of a TEM.

Parameters:
addr Logical LATp address of the TEM
opcode OPCODE of the operation to perform

unsigned TIC_ENV_read LEM_LATP_ADDR  addr,
unsigned short *  env,
unsigned short *  chnl,
unsigned short *  valid
 

Reads a block of 8 16-bit ADC values for environmental quantities.

Parameters:
addr Logical LATp address of the TEM
env Pointer to hold pointer to 8 * 16-bit environmental quantities
chnl Pointer to hold the mux channel number that was acquired.
valid Pointer to hold acquisition valid bit.
Returns:
One of LEM_msgs

unsigned TIC_load LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload
 

Create a LATp load command targeted at the TIC block of a TEM.

Parameters:
addr Logical LATp address of the TEM
reg should be the ID of the target register
payload 32 bits of data to send with a load command

unsigned TIC_read LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value
 

Create a LATp read command targeted at the TIC block of a TEM.

Parameters:
addr Logical LATp address of the TEM
reg should be the ID of the target register
value Pointer to the location to place the result

unsigned TKR_set_split LEM_LATP_ADDR  addr,
int  low,
int  high
 

Set all the layers of the specified tower to have splits requested (default would be 11, 12).

fn unsigned TKR_set_split(LEM_LATP_ADDR addr, int low, int high);

Parameters:
addr Address of the tower whose splits should be set
low ID of the highest low talking TFE -1->23 (-1 indicates no low talkers)
high ID of the lowest high talking TFE 0->24 (24 indicates no hight talkers)
Return values:
LEM_SUCCESS If all goes well

unsigned TRC_cmd LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
LEM_OPCODE  opcode
 

Create a LATp dataless Command targeted at a TRC.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
opcode Operation to perform

unsigned TRC_load LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
LEM_REG_ID  reg,
unsigned  upper,
unsigned  lower
 

Create a LATp load Command targeted at a TRC.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
reg should be the ID of the target register
upper Most significant 32 bits of the payload
lower Least significant 32 bits of the payload

unsigned TRC_read LEM_LATP_ADDR  addr,
unsigned  tcc,
unsigned  trc,
LEM_REG_ID  reg,
unsigned *  upper,
unsigned *  lower
 

Create a LATp load Command targeted at a TRC.

Parameters:
addr Logical LATp address of the TEM
tcc should be the ID of the target TCC, or BCAST to broadcast to all TCCs
trc should be the ID of the target TRC, or BCAST to broadcast to all TRCs
reg should be the ID of the target register
upper Pointer to location to place the 32 most significant bits of the result
lower Pointer to location to place the 32 least significan bits of the result


Generated on Mon Dec 12 20:50:33 2005 by  doxygen 1.4.4