GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ADCSIM / V0-0-1 > adcsim / rad750
#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"
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". | |
| unsigned int ADCSIM_addSyntaxLCP | ( | CLI_Syntax * | syntax | ) |
Contribute commands to the CLI syntax.
| syntax | Syntax handle |
| CLI_SUCCESS |
References ADCSIM_setAemEnvData_cli(), ADCSIM_setAemPwrData_cli(), ADCSIM_setGemLrsData_cli(), ADCSIM_setPduEnvData_cli(), ADCSIM_setPduPwrData_cli(), ADCSIM_setSibPath_cli(), ADCSIM_setTemBusyData_cli(), and ADCSIM_setTemEnvData_cli().
| unsigned int ADCSIM_setAemEnvData | ( | unsigned short | free, | |
| unsigned short | adc, | |||
| unsigned short | val | |||
| ) |
Sets a value in the simulated AEM environmental register block.
| free | FREE board ID | |
| adc | Adc number | |
| val | Register value |
References ADCSIM_AemEnvData.
Referenced by ADCSIM_setAemEnvData_cli().
| static unsigned int ADCSIM_setAemEnvData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setAemEnvData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| unsigned int ADCSIM_setAemPwrData | ( | unsigned int | val | ) |
Sets a value in the simulated AEM power status register.
| val | Register value |
References ADCSIM_AemPwrData.
Referenced by ADCSIM_setAemPwrData_cli().
| static unsigned int ADCSIM_setAemPwrData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setAemPwrData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| 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.
| reg | register number: 0 - 3 | |
| val0 | register value | |
| val1 | register value |
References ADCSIM_GemLrsData.
Referenced by ADCSIM_setGemLrsData_cli().
| static unsigned int ADCSIM_setGemLrsData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setGemLrsData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| 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.
| grp | PDU group number | |
| bank | Environmental register bank 0 - 2 | |
| adc | Adc number | |
| val | Register value |
References ADCSIM_PduEnvData.
Referenced by ADCSIM_setPduEnvData_cli().
| static unsigned int ADCSIM_setPduEnvData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setPduEnvData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| unsigned int ADCSIM_setPduPwrData | ( | unsigned short | reg, | |
| unsigned short | val | |||
| ) |
Sets a value in the simulated PDU power status register block.
| reg | PDU power register number: 0 - 2 | |
| val | Register value |
References ADCSIM_PduPwrData.
Referenced by ADCSIM_setPduPwrData_cli().
| static unsigned int ADCSIM_setPduPwrData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setPduPwrData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| static unsigned int ADCSIM_setSibPath_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
Referenced by ADCSIM_addSyntaxLCP().
| 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.
| tem | TEM ID | |
| val0 | LSB 16 bits of register value | |
| val1 | MSB 16 bits of register value |
References ADCSIM_TemBusyData.
Referenced by ADCSIM_setTemBusyData_cli().
| static unsigned int ADCSIM_setTemBusyData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setTemBusyData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| 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.
| tem | TEM ID | |
| mux | Mux channel number | |
| adc | Adc number | |
| val | Register value |
References ADCSIM_TemEnvData.
Referenced by ADCSIM_setTemEnvData_cli().
| static unsigned int ADCSIM_setTemEnvData_cli | ( | CLI_Control * | cli, | |
| void * | prm | |||
| ) | [static] |
Handle the verb/call.
| cli | Opaque control pointer | |
| prm | User context parameter (unused) |
| CLI_SUCCESS |
References ADCSIM_setTemEnvData(), and d_0.
Referenced by ADCSIM_addSyntaxLCP().
| unsigned int LCBD_submit | ( | LCBD_xcb * | xcb | ) |
Simulate execution of command list.
| xcb | - LCB transaction ctl blk |
References ADCSIM_AemEnvData, ADCSIM_GemLrsData, ADCSIM_PduEnvData, ADCSIM_PduPwrData, ADCSIM_TemBusyData, ADCSIM_TemEnvData, free_board, pdu_grp, and tem_mux.
1.5.8