GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-4-1
Constituent: mem     Tag: sun-gcc
#include <string.h>
#include "CDM/CDM_pubdefs.h"
#include "ITC/ITC_pubdefs.h"
#include "LCBD/LCBD.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/FPA.h"
#include "PBS/INT.ih"
#include "PBS/MBA.h"
#include "PBS/MTX.h"
#include "PBS/WUT.h"
#include "MEM/MEM_cmdxtrn.h"
#include "MEM/MEM_dump.h"
#include "MEM/MEM_load.h"
#include "MEM/MEM_map.h"
#include "MEM/MEM_msgs.h"
#include "MEM/MEM_pubdefs.h"
#include "MEM_DB/MEM_DB_schema.h"
#include "MEM_control.h"
#include "Memmap.h"
Include dependency graph for MEM_control.c:
Defines | |
#define | INT_FAKE_OK |
Acknowledges that we realize interrupts can't be disabled on host machines. | |
Functions | |
unsigned int | mem_map_init (MEM_Control *ctl_p) |
Init the memory map for dumps and loads. | |
unsigned int | mem_pool_init (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p, unsigned int num_pkt, unsigned int pkt_bytes) |
Initialize an FPA pool. | |
unsigned int | mem_pool_free (FPA_fcb **fcb_pp, void **buf_pp, int *in_use_p) |
Free an FPA pool. | |
unsigned int | mem_create_control_block (void) |
Allocate and adopt a MEM control information block. | |
unsigned int | mem_lock_access (MEM_Control *ctl_p) |
Lock access to a MEM control block. | |
unsigned int | mem_unlock_access (MEM_Control *ctl_p, unsigned int status) |
Unlock access to a MEM control block. | |
unsigned int | mem_change_state (MEM_Control *ctl_p, unsigned int valid_states, MEM_Control_State new_state) |
Change the state of the MEM functions. | |
unsigned int | MEM_initialize (ITC_Task *task_p, ITC_TaskID tid) |
Initialize the MEM application-level functions. | |
unsigned int | MEM_init (void) |
Initialize the MEM application-level functions using CDM. | |
unsigned int | MEM_shutdown (void) |
Shutdown the MEM functions. | |
unsigned int | MEM_updateStats (MEM_Control *ctl_p, unsigned int msg_status, unsigned int fcode) |
Common routine to update MEM command statistics. | |
unsigned int | MEM_getInfo (MEM_Info *info_p) |
Get current state of the MEM application-level functions. | |
Variables | |
MEM_Control * | Mem_control_p = NULL |
Pointer to the MEM control information block. | |
unsigned char | mem_sim_ram_buf [1024] |
Buffer of simulated RAM buffer for memory dumps and loads. |
** CVS $Id: MEM_control.c,v 1.20 2005/08/12 15:56:34 dmay Exp $ **
Control functions for the application-level portion of the MEM package. These functions are used within the context of another task, so they do not actually start and configure a task of their own.
|
Change the state of the MEM functions.
|
Here is the call graph for this function:
|
Allocate and adopt a MEM control information block.
|
|
Get current state of the MEM application-level functions.
|
Here is the call graph for this function:
|
Initialize the MEM application-level functions using CDM. This function is a wrapper for MEM_initialize() that uses CDM to determine its parameters.
|
Here is the call graph for this function:
|
Initialize the MEM application-level functions. This function initializes the application-level portion of the MEM package and transitions it to the INITIALIZED state. It should be the first MEM function called when using the MEM package. At the application level, there is no MEM task. Instead, the handlers for the MEM telecommands are attached to another task. If a valid value is provided for either the task_p or the tid parameter, then this function will attach the MEM command handlers to the corresponding task. If neither parameter is specified (by setting task_p to NULL and tid to -1), then it is assumed that the controlling task will attach the MEM command handlers.
|
Here is the call graph for this function:
|
Lock access to a MEM control block.
|
|
Init the memory map for dumps and loads.
|
Here is the call graph for this function:
|
Free an FPA pool.
|
|
Initialize an FPA pool.
|
|
Shutdown the MEM functions. This function shuts down the MEM package and transitions it back to the UNINITIALIZED state. It can be called only if the current MEM state is INITIALIZED, INIT_FAIL, or SHUTDOWN_FAIL.
|
Here is the call graph for this function:
|
Unlock access to a MEM control block.
|
|
Common routine to update MEM command statistics.
|
Here is the call graph for this function:
|
Pointer to the MEM control information block. Pointer to the control block (state) for the MEM application-level functions. |
|
Initial value: { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 } This buffer simulates the RAD750 RAM in a non-RAD750 environment. |