GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LEM / dev > lem_cli / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

cli.h File Reference

Routines for accessing registers from the command line. More...

#include <LEM/syms.h>
#include <LEM/decode_structs.h>

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)
 Read 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 dataless 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 DAC.
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 DAC.
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 ROI block.
unsigned GEM_ROI_load (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned payload)
 Create a LATp load command targeted at the GEM ROI block.
unsigned GEM_ROI_read (LEM_LATP_ADDR addr, LEM_REG_ID reg, unsigned *value)
 Create a LATp read command targeted at the GEM ROI 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)
 Return the timestamp latched the last time LEM CLI was used to send a command.
void LEM_reset_time (void)
 Set 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 the 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

Routines for accessing registers from the command line.

Author:
James Swain & Owen Saxton
$Id: cli.h,v 1.18 2011/03/25 18:51:52 apw Exp $

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

References LEM_DO_CMD, and LEM_parity.

Referenced by AEM_cmd().

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 The ID of the target register
payload 32 bits of data to send with the load command

References LEM_DO_LOAD, and LEM_parity.

Referenced by AEM_load().

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by AEM_read().

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

References AEM_CC_cmd().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
upper 32 Most significant bits of the data to send
lower 32 least significant bits of the data to send

References LEM_DO_LOAD_LL, and LEM_parity.

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 The ID of the target register
upper 32 Most significant bits of result
lower 32 Least significant bits of result

References AEM_env_rsp::bf, LEM_DO_READ, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with the load command

References AEM_CC_load().

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 The ID of the target register
value Pointer to location to place the result

References AEM_CC_read().

Referenced by AEM_CC_show().

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
afe The ID of the target AFE, or BCAST to broadcast to all the AFEs
opcode Operation to perform

References LEM_DO_ACD_CMD, and LEM_parity.

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
afe The ID of the target AFE, or BCAST to broadcast to all the AFEs
reg The ID of the target register
payload 16 bits of data to send with a load command

References LEM_DO_ACD_LOAD, and LEM_parity.

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
afe The ID of the target AFE, or BCAST to broadcast to all the AFEs
reg The ID of the target register
value Pointer to location to place the result

References ACD_rsp::bf, LEM_DO_ACD_READ, and LEM_parity.

Referenced by AFE_show().

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
opcode Operation to perform

References LEM_DO_ACD_CMD, and LEM_parity.

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
reg The ID of the target register
payload 16 bits of data to send with a load command

References LEM_DO_ACD_LOAD, and LEM_parity.

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 The ID of the target ARC, or BCAST to broadcast to all the ARCs
reg The ID of the target register
value Pointer to the location to place the result

References ACD_rsp::bf, LEM_DO_ACD_READ, and LEM_parity.

Referenced by ARC_show().

unsigned CCC_cmd ( LEM_LATP_ADDR  addr,
unsigned  ccc,
LEM_OPCODE  opcode 
)

Create a LATp dataless command targeted at a CCC.

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
reg The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
reg The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by CCC_show().

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
cfe The ID of the target CFE, or BCAST to broadcast to all CFEs
opcode Operation to perform

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
cfe The ID of the target CFE, or BCAST to broadcast to all CFEs
reg The ID of the target register
payload 16 bits to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
cfe The ID of the target CFE, or BCAST to broadcast to all CFEs
reg The ID of the target register
value Pointer to location to place the result

References CAL_rsp::bf, LEM_DO_READ, and LEM_parity.

Referenced by CFE_show().

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
opcode One of the LEM_OPCODE

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
reg The ID of the target register
payload 16 bits to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target CCC, or BCAST to broadcast to all CCCs
crc The ID of the target CRC, or BCAST to broadcast to all CRCs
reg The ID of the target register
value Pointer to location to place the result

References CAL_rsp::bf, LEM_DO_READ, and LEM_parity.

Referenced by CRC_show().

unsigned CRU_cmd ( LEM_OPCODE  opcode  ) 

Create a LATp dataless command targeted at the CRU.

Parameters:
opcode One of the LEM_OPCODE

References LEM_DO_CMD, and LEM_parity.

unsigned CRU_load ( LEM_REG_ID  reg,
unsigned  payload 
)

Create a LATp load command targeted at the CRU.

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

References LEM_DO_LOAD, and LEM_parity.

unsigned CRU_read ( LEM_REG_ID  reg,
unsigned *  value 
)

Create a LATp read command targeted at the CRU.

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

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by CRU_show().

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

References LEM_DO_CMD, and LEM_parity.

Referenced by EBM_cmd().

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

Referenced by EBM_load().

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by EBM_read().

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

References EBM_CC_cmd().

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 The ID of the target register
payload 32 bits of data to send with a load command

References EBM_CC_load().

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 The ID of the target register
value Pointer to location to place the result

References EBM_CC_read().

Referenced by EBM_CC_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by EBM_STAT_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_CC_show().

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 The ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
opcode One of the LEM_OPCODE

References LEM_DO_CMD, and LEM_parity.

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_IE_show().

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 The ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
reg The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the register block (one of the GEM_BLK_X from LEM_REG_BLK)
reg The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

unsigned GEM_ROI_cmd ( LEM_LATP_ADDR  addr,
LEM_OPCODE  opcode 
)

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

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

References LEM_DO_CMD, and LEM_parity.

unsigned GEM_ROI_load ( LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned  payload 
)

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

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

References LEM_DO_LOAD, and LEM_parity.

unsigned GEM_ROI_read ( LEM_LATP_ADDR  addr,
LEM_REG_ID  reg,
unsigned *  value 
)

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

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

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_ROI_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_SCHD_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_STAT_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_TAM_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by GEM_WIN_show().

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

References LEM_parity.

unsigned LEM_get_time ( void   ) 

Return 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

References LEM_timestamp.

void LEM_reset_time ( void   ) 

Set the static LEM_timestamp to zero.

References LEM_timestamp.

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

References LEM_parity, and LEM_PARITY_EVEN.

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)

References LEM_ALLOCATE_CMD.

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

References LEM_ALLOCATE_CMD.

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

References LEM_DO_CMD, and LEM_parity.

Referenced by PDU_cmd().

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

Referenced by PDU_load().

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 The ID of the target register
value Pointer to location to place the result of the read

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by PDU_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

References PDU_CC_cmd().

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 The ID of the target register
value Pointer to location to place the result of the read

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References PDU_CC_load().

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 The ID of the target register
value Pointer to location to place the result of the read

References PDU_CC_read().

Referenced by PDU_CC_show().

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
opcode Operation to perform

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
reg The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
reg The ID of the target register
value Pointer to location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by TCC_show().

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 DAC.

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

References LEM_DO_LOAD_LL, and LEM_parity.

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 DAC.

Parameters:
addr Logical LATp address of the TEM
tcc The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
tfe 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

References TKR_flags::bf, TKR_rsp::flags, LEM_DO_READ, LEM_parity, and TKR_rsp::value.

Referenced by TDC_show().

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

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to location to place the result of the read

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by TEM_show().

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
tfe The ID of the target TFE, or BCAST to broadcast to all TFEs
opcode Operation to perform

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
tfe The ID of the target TFE, or BCAST to broadcast to all TFEs
reg The ID of the target register
upper 32 most significant bits of the data to send
lower 32 least significant bits of the data to send

References LEM_DO_LOAD_LL, and LEM_parity.

Referenced by TKR_set_split().

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
tfe The ID of the target TFE, or BCAST to broadcast to all TFEs
reg 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

References TKR_flags::bf, TKR_rsp::flags, LEM_DO_READ, LEM_parity, and TKR_rsp::value.

Referenced by TFE_show().

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

References LEM_DO_CMD, and LEM_parity.

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

Read 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

References TIC_env_rsp::chnl, TIC_env_rsp::env, LEM_DO_READ, LEM_parity, and TIC_env_rsp::valid.

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 The ID of the target register
payload 32 bits of data to send with a load command

References LEM_DO_LOAD, and LEM_parity.

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 The ID of the target register
value Pointer to the location to place the result

References LEM_DO_DECODE, LEM_DO_READ, and LEM_parity.

Referenced by TIC_show().

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

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

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

References CHECK_CALL, TFE_load(), and TRC_load().

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
opcode Operation to perform

References LEM_DO_CMD, and LEM_parity.

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
reg The ID of the target register
upper Most significant 32 bits of the payload
lower Least significant 32 bits of the payload

References LEM_DO_LOAD_LL, and LEM_parity.

Referenced by TKR_set_split().

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 The ID of the target TCC, or BCAST to broadcast to all TCCs
trc The ID of the target TRC, or BCAST to broadcast to all TRCs
reg 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

References TKR_flags::bf, TKR_rsp::flags, LEM_DO_READ, LEM_parity, and TKR_rsp::value.

Referenced by TRC_show().


Generated on Fri Mar 25 12:02:01 2011 by  doxygen 1.5.8