GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ADCSIM / dev

Constituent: adcsim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

ADCSIM.c File Reference

Routines to provide simulation of hardware ADC values. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "PBS/BSWP.h"
#include "PBI/Endianness.h"
#include "LCBD/LCBD_cr.h"
#include "LCBD/LCBC.h"
#include "LCBD/LCBR.h"
#include "LEM/defs.h"
#include "LEM/encode_structs.h"
#include "FBS/FBS_pubrtos.h"
#include "ADCSIM_prvdefs.h"
#include "ADCSIM/ADCSIM_pubdefs.h"
#include "CLI/CLI_pubdefs.h"

Include dependency graph for ADCSIM.c:


Functions

unsigned int LCBD_submit (LCBD_xcb *xcb)
 Simulate execution of command list.
unsigned int ADCSIM_setTemEnvData (unsigned short tem, unsigned short mux, unsigned short adc, unsigned short val)
 Sets a value in the simulated TEM environmental register block.
unsigned int ADCSIM_setPduEnvData (unsigned short grp, unsigned short bank, unsigned short adc, unsigned int val)
 Sets a value in the simulated PDU environmental register block.
unsigned int ADCSIM_setAemEnvData (unsigned short free, unsigned short adc, unsigned short val)
 Sets a value in the simulated AEM environmental register block.
unsigned int ADCSIM_setPduPwrData (unsigned short reg, unsigned short val)
 Sets a value in the simulated PDU power status register block.
unsigned int ADCSIM_setAemPwrData (unsigned int val)
 Sets a value in the simulated AEM power status register.
unsigned int ADCSIM_setTemBusyData (unsigned short tem, unsigned short val0, unsigned short val1)
 Sets a value in the simulated TEM busy/dead time register block.
unsigned int ADCSIM_setGemLrsData (unsigned short reg, unsigned short val0, unsigned short val1)
 Sets a value in the simulated GEM low-rate science register block.
static unsigned int ADCSIM_setTemEnvData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setPduEnvData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setAemEnvData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setPduPwrData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setAemPwrData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setTemBusyData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setGemLrsData_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
static unsigned int ADCSIM_setSibPath_cli (CLI_Control *cli, void *prm)
 Handle the verb/call.
unsigned int ADCSIM_addSyntaxLCP (CLI_Syntax *syntax)
 Contribute commands to the CLI syntax.

Variables

static unsigned short pdu_grp
 PDU environmental group register.
static unsigned short tem_mux [16]
 TEM mux registers.
static unsigned short free_board
 AEM free board register.
const char * d_0 = "$0"
 The string "$0".

Detailed Description

Routines to provide simulation of hardware ADC values.


Function Documentation

unsigned int ADCSIM_addSyntaxLCP CLI_Syntax *  syntax  ) 
 

Contribute commands to the CLI syntax.

Parameters:
syntax Syntax handle
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setAemEnvData unsigned short  free,
unsigned short  adc,
unsigned short  val
 

Sets a value in the simulated AEM environmental register block.

Parameters:
free FREE board ID
adc Adc number
val Register value

static unsigned int ADCSIM_setAemEnvData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setAemPwrData unsigned int  val  ) 
 

Sets a value in the simulated AEM power status register.

Parameters:
val Register value

static unsigned int ADCSIM_setAemPwrData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setGemLrsData unsigned short  reg,
unsigned short  val0,
unsigned short  val1
 

Sets a value in the simulated GEM low-rate science register block.

Parameters:
reg register number: 0 - 3
val0 register value
val1 register value

static unsigned int ADCSIM_setGemLrsData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setPduEnvData unsigned short  grp,
unsigned short  bank,
unsigned short  adc,
unsigned int  val
 

Sets a value in the simulated PDU environmental register block.

Parameters:
grp PDU group number
bank Environmental register bank 0 - 2
adc Adc number
val Register value

static unsigned int ADCSIM_setPduEnvData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setPduPwrData unsigned short  reg,
unsigned short  val
 

Sets a value in the simulated PDU power status register block.

Parameters:
reg PDU power register number: 0 - 2
val Register value

static unsigned int ADCSIM_setPduPwrData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

static unsigned int ADCSIM_setSibPath_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setTemBusyData unsigned short  tem,
unsigned short  val0,
unsigned short  val1
 

Sets a value in the simulated TEM busy/dead time register block.

Parameters:
tem TEM ID
val0 LSB 16 bits of register value
val1 MSB 16 bits of register value

static unsigned int ADCSIM_setTemBusyData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int ADCSIM_setTemEnvData unsigned short  tem,
unsigned short  mux,
unsigned short  adc,
unsigned short  val
 

Sets a value in the simulated TEM environmental register block.

Parameters:
tem TEM ID
mux Mux channel number
adc Adc number
val Register value

static unsigned int ADCSIM_setTemEnvData_cli CLI_Control *  cli,
void *  prm
[static]
 

Handle the verb/call.

Parameters:
cli Opaque control pointer
prm User context parameter (unused)
Return values:
CLI_SUCCESS 

unsigned int LCBD_submit LCBD_xcb *  xcb  ) 
 

Simulate execution of command list.

Parameters:
xcb - LCB transaction ctl blk


Generated on Fri Nov 18 03:44:46 2005 by  doxygen 1.4.4