GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-0-0

Constituent: mem     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

MEM_control.c File Reference

MEM application-level control functions. More...

#include <string.h>
#include "ITC/ITC_pubdefs.h"
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/RW.ih"
#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_control.h"
#include "Memmap.h"

Include dependency graph for MEM_control.c:

Include dependency graph

Functions

unsigned int mem_map_init (void)
 Init the memory map for dumps and loads.

unsigned int MEM_initialize (ITC_Task *task_p, ITC_TaskID tid)
 Initialize the MEM application-level functions.

unsigned int MEM_shutdown (void)
 Shut down the MEM application-level functions.

unsigned int MEM_updateStats (MEM_Control *mem_p, unsigned int 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_ControlMem_p = NULL
 Control block for MEM.

unsigned char mem_sim_ram_buf [1024]
 Buffer of simulated RAM buffer for memory dumps and loads.


Detailed Description

MEM application-level control functions.

    CVS $Id: MEM_control.c,v 1.13 2005/02/28 21:23:30 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.


Function Documentation

unsigned int MEM_getInfo MEM_Info info_p  ) 
 

Get current state of the MEM application-level functions.

Parameters:
info_p Pointer to location to return state information.
Returns:
MSG code.

unsigned int MEM_initialize ITC_Task *  task_p,
ITC_TaskID  tid
 

Initialize the MEM application-level functions.

This function initializes the application-level portion of 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 is responsible for attaching the MEM command handlers.

Parameters:
task_p Pointer to controlling task's description block.
tid ID of the controlling task.
Returns:
MSG code.

Here is the call graph for this function:

unsigned int mem_map_init void   )  [static]
 

Init the memory map for dumps and loads.

Returns:
MSG code.

Here is the call graph for this function:

unsigned int MEM_shutdown void   ) 
 

Shut down the MEM application-level functions.

Returns:
MSG code.

unsigned int MEM_updateStats MEM_Control mem_p,
unsigned int  status,
unsigned int  fcode
 

Common routine to update MEM command statistics.

Parameters:
mem_p Pointer to MEM control block.
status Status MSG code for the command.
fcode Function code for the command.
Returns:
MSG code.

Here is the call graph for this function:


Variable Documentation

MEM_Control * Mem_p = NULL
 

Control block for MEM.

Pointer to the control block (state) for the MEM application-level functions.

unsigned char mem_sim_ram_buf
 

Initial value:

    {
        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
    }
Buffer of simulated RAM buffer for memory dumps and loads.

This buffer simulates the RAD750 RAM in a non-RAD750 environment.


Generated on Mon Feb 28 20:38:32 2005 by doxygen 1.3.3