GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EBC / dev > ebc_epu / mv2304
#include <string.h>
#include <time.h>
#include <EBC/EBC_msgs.h>
#include <IMM/FPM_pubdefs.h>
#include <IMM/RBM_pubdefs.h>
#include <ITC/ITC_pubdefs.h>
#include <PBS/FORK.h>
#include <PBS/INT.ih>
#include <PBS/MBA.h>
#include <PBS/PTS.h>
#include <PBS/WCT.h>
#include <PBS/WUT.h>
#include <EBC_prvdefs.h>
Classes | |
struct | _timetone |
Local structure definition for a timetone command message. More... | |
Functions | |
static unsigned int | fakeLsmInitialize (EBC_Control *ecb) |
Create an emulation of the LSM task. | |
unsigned int | EBC_fakeLsmInitialize (ITC_TaskID tid) |
Initialize the ECB control block. | |
unsigned int | EBC_fakeLsmStart () |
Start the fake LSM task. | |
unsigned int | EBC_ignore (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Command handler to turn command into a no-op. | |
unsigned int | EBC_timetone (void *prm, const struct _ITC_QueueItem *qitem, void *pay, unsigned int len) |
Command handler for timetone messages. | |
unsigned int | MON_get_loading () |
Fake up the "MON_get_loading" entry point (always fails). | |
WCT_time | THS_gemAbsTimeEvent (int gemStrobeIn, int gemClk) |
Dummy routine. | |
unsigned int | THS_simulatedPPS () |
Fake up the "simulated pulse-per-second" logical (always true). | |
unsigned int | THS_simulatedTT () |
Fake up the "simulated timetone" logical (always true). | |
Variables | |
EBC_Control * | EBC_ecb |
Control block for EBC facility. | |
ITC_CommandItem | EBC_Apid701Item [3] |
Command dispatch table for APID 0x701. | |
ITC_CommandList | EBC_Apid701List |
Command dispatch control block for APID 0x701. | |
ITC_ApidDef | EBC_Apid701 |
Apid control block for APID 0x701. | |
TASK_attr | attr_mLSM = { "mLSM", 55, 0, NULL, 0 } |
Compiled in task defaults for the "mLSM" task. | |
TASK_attr | attr_sLSM = { "sLSM", 55, 0, NULL, 0 } |
Compiled in task defaults for the "sLSM" task. |
CVS $Id: EBC_lsm.c,v 1.3 2011/03/30 01:32:56 apw Exp $
unsigned int EBC_fakeLsmInitialize | ( | ITC_TaskID | tid | ) |
Initialize the ECB control block.
tid | (in) Task ID for the LSM task to be faked |
References EBC_CTL_BROKEN, EBC_CTL_INITIALIZED, EBC_CTL_UNINITIALIZED, fakeLsmInitialize(), _EBC_Control::mtx, _EBC_Control::rwi, _EBC_Control::state, and _EBC_Control::tid.
Referenced by SBC_init().
unsigned int EBC_fakeLsmStart | ( | void | ) |
Start the fake LSM task.
EBC_fakeLsmStart() starts the LSM task simulation.
References EBC_CTL_BROKEN, EBC_CTL_INITIALIZED, _EBC_Control::itc, _EBC_Control::mtx, _EBC_Control::state, and _EBC_Control::tid.
Referenced by SBC_init().
unsigned int EBC_ignore | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Command handler to turn command into a no-op.
prm | (in) Context parameter | |
qitem | (in) Queue item | |
pay | (in) Command payload | |
len | (in) Length of payload (bytes) |
EBC_SUCCESS | Always |
unsigned int EBC_timetone | ( | void * | prm, | |
const struct _ITC_QueueItem * | qitem, | |||
void * | pay, | |||
unsigned int | len | |||
) |
Command handler for timetone messages.
prm | (in) Context parameter | |
qitem | (in) Queue item | |
pay | (in) Command payload | |
len | (in) Length of payload (bytes) |
EBC_SUCCESS | Always |
References _timetone::sec.
static unsigned int fakeLsmInitialize | ( | EBC_Control * | ecb | ) | [static] |
Create an emulation of the LSM task.
ecb | (in) The EBC control block |
References _EBC_Control::itc, _EBC_Control::pcb, _EBC_Control::rcb, and _EBC_Control::tid.
Referenced by EBC_fakeLsmInitialize().
unsigned int MON_get_loading | ( | ) |
Fake up the "MON_get_loading" entry point (always fails).
1 | Always |
WCT_time THS_gemAbsTimeEvent | ( | int | gemStrobeIn, | |
int | gemClk | |||
) |
Dummy routine.
gemStrobeIn | (none) Ignored | |
gemClk | (none) Ignored |
0LL | Always |
unsigned int THS_simulatedPPS | ( | ) |
Fake up the "simulated pulse-per-second" logical (always true).
1 | Always |
unsigned int THS_simulatedTT | ( | ) |
Fake up the "simulated timetone" logical (always true).
1 | Always |
ITC_ApidDef EBC_Apid701 |
ITC_CommandItem EBC_Apid701Item[3] |
Initial value:
{ { 1 , 60, &EBC_ignore }, { 2 , 44, &EBC_ignore }, { 3 , 14, &EBC_timetone }, }
ITC_CommandList EBC_Apid701List |