GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LEM / V4-7-1
Constituent: lem_cli     Tag: sun-gcc
#include "LEM/cli.h"
#include "LEM/cli_macros.h"
#include "LEM/encode.h"
#include "LEM/decode.h"
#include "LEM/encode_structs.h"
#include "LEM/parity.h"
#include "LEM/LEM_msgs.h"
#include "LCBD/LCBD.h"
#include "MSG/MSG_pubdefs.h"
#include <string.h>
Include dependency graph for cli.c:
Defines | |
#define | CHECK_CALL(FUNC) |
Call a function and check the return value (assumes a variable status exists). | |
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 | 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 | 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 | 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. | |
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. | |
Variables | |
static unsigned | LEM_parity = 0 |
Permanent storage to indicate whether to invert the parity bits. | |
static unsigned | LEM_timestamp = 0 |
Timestamp from the result item of the last command. |
|
Value: { \ unsigned status = FUNC;\ if(_msg_failure(status)) return status;\ }
|
|
Create a LATp dataless Command targeted at the common controller block of the AEM.
|
|
Create a LATp load Command targeted at the common controller block of the AEM.
|
|
Create a LATp read Command targeted at the common controller block of the AEM.
|
|
Create a LATp dataless Command targeted at the common controller block of the AEM.
|
|
Create a LATp dataless Command targeted at the Environment block of the AEM.
|
|
Create a LATp load Command targeted at the Environment block of the AEM.
|
|
Create a LATp read Command targeted at the Environment block of the AEM.
|
|
Create a LATp load Command targeted at the common controller block of the AEM.
|
|
Create a LATp read Command targeted at the common controller block of the AEM.
|
|
Create a LATp load Command targeted at an AFE.
|
|
Create a LATp load Command targeted at an AFE.
|
|
Create a LATp read Command targeted at an AFE.
|
|
Create a LATp load Command targeted at an ARC.
|
|
Create a LATp load Command targeted at an ARC.
|
|
Create a LATp read Command targeted at an ARC.
|
|
Create a LATp load command targeted at a CCC.
|
|
Create a LATp load command targeted at a CCC.
|
|
Create a LATp read command targeted at a CCC.
|
|
Create a LATp dataless command targeted at a CFE.
|
|
Create a LATp load command targeted at a CFE.
|
|
Create a LATp read command targeted at a CFE.
|
|
Create a LATp dataless Command targeted at a CRC.
|
|
Create a LATp load Command targeted at a CRC.
|
|
Create a LATp read Command targeted at a CRC.
|
|
Create a LATp dataless command targeted at the CRU.
|
|
Create a LATp load command targeted at the CRU.
|
|
Create a LATp read command targeted at the CRU.
|
|
Create a LATp dataless command targeted at the common controller block of the EBM.
|
|
Create a LATp load command targeted at the common controller block of the EBM.
|
|
Create a LATp read command targeted at the common controller block of the EBM.
|
|
Create a LATp dataless command targeted at the common controller block of the EBM.
|
|
Create a LATp load command targeted at the common controller block of the EBM.
|
|
Create a LATp read command targeted at the common controller block of the EBM.
|
|
Create a LATp cmd command targeted at the statistics block of the EBM.
|
|
Create a LATp load command targeted at the statistics block of the EBM.
|
|
Create a LATp load command targeted at the statistics block of the EBM.
|
|
Create a LATp dataless command targeted at the GEM Common Controller.
|
|
Create a LATp load command targeted at the GEM Common Controller.
|
|
Create a LATp read command targeted at the GEM Common Controller.
|
|
Create a LATp dataless command targeted at the GEM.
|
|
Create a LATp dataless command targeted at the GEM Input Enable block.
|
|
Create a LATp load command targeted at the GEM Input Enable block.
|
|
Create a LATp read command targeted at the GEM Input Enable block.
|
|
Create a LATp load command targeted at the GEM.
|
|
Create a LATp read command targeted at the GEM.
|
|
Create a LATp dataless command targeted at the GEM Input Enable block.
|
|
Create a LATp load command targeted at the GEM Input Enable block.
|
|
Create a LATp read command targeted at the GEM Input Enable block.
|
|
Create a LATp dataless command targeted at the GEM Scheduler.
|
|
Create a LATp load command targeted at the GEM Scheduler.
|
|
Create a LATp read command targeted at the GEM Scheduler.
|
|
Create a LATp dataless command targeted at the GEM Statistics block.
|
|
Create a LATp load command targeted at the GEM Statistics block.
|
|
Create a LATp read command targeted at the GEM Statistics block.
|
|
Create a LATp dataless command targeted at the GEM Trigger Message Generator.
|
|
Create a LATp load command targeted at the GEM Trigger Message Generator.
|
|
Create a LATp read command targeted at the GEM Trigger Message Generator.
|
|
Create a LATp dataless command targeted at the GEM Window block.
|
|
Create a LATp load command targeted at the GEM Window block.
|
|
Create a LATp read command targeted at the GEM Window block.
|
|
Return one of the available parity types.
|
|
Returns the timestamp latched the last time LEM CLI was used to send a command.
|
|
Set one of the available parity types to parity.
|
|
Send a look-at-me command.
|
|
Send a look-at-me command to a slave LCB.
|
|
Create a LATp dataless Command targeted at the common controller of the PDU.
|
|
Create a LATp load Command targeted at the common controller of the PDU.
|
|
Create a LATp read Command targeted at the common controller of the PDU.
|
|
Create a LATp dataless Command targeted at the common controller of the PDU.
|
|
Create a LATp read command targeted at the environment block of the PDU.
|
|
Create a LATp load Command targeted at the common controller of the PDU.
|
|
Create a LATp read Command targeted at the common controller of the PDU.
|
|
Create a LATp dataless Command targeted at a TCC.
|
|
Create a LATp load Command targeted at a TCC.
|
|
Create a LATp read Command targeted at a TCC.
|
|
Create a LATp load Command targeted at a TFE.
|
|
Create a LATp read Command targeted at a TFE.
|
|
Create a LATp dataless command targeted at the common controller block of a TEM.
|
|
Create a LATp load command targeted at the common controller block of a TEM.
|
|
Create a LATp read command targeted at the common controller block of a TEM.
|
|
Create a LATp dataless Command targeted at a TFE.
|
|
Create a LATp load Command targeted at a TFE.
|
|
Create a LATp read Command targeted at a TFE.
|
|
Create a LATp dataless command targeted at the TIC block of a TEM.
|
|
Reads a block of 8 16-bit ADC values for environmental quantities.
|
|
Create a LATp load command targeted at the TIC block of a TEM.
|
|
Create a LATp read command targeted at the TIC block of a TEM.
|
|
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);
|
|
Create a LATp dataless Command targeted at a TRC.
|
|
Create a LATp load Command targeted at a TRC.
|
|
Create a LATp load Command targeted at a TRC.
|