GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V3-1-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 "SIB/SIB.h"
#include "Memmap.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_control.h"

Include dependency graph for MEM_control.c:

Include dependency graph

Functions

ITC_NodeID my_node_ID (void)
 Return the ID of the node on which we are running.

void * mem_fake_read (void *dest_p, const void *offset, const size_t nbytes, void *context_p, size_t *bytes_read_p)
 Memory dump callback to read from simulated RAM.

void * mem_fake_write (void *offset, const void *src_p, const size_t nbytes, void *context_p, size_t *bytes_written_p)
 Memory dump callback to write from simulated RAM.

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.


Variables

MEM_Controlmem
 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.3 2004/11/19 21:38:02 dmay Exp $
    

Control functions for the application-level portion of the MEM package. These functions are used within the context of the LCM task, so they do not actually start and configure a task of their own.


Function Documentation

void * mem_fake_read void *  dest_p,
const void *  offset,
const size_t  nbytes,
void *  context_p,
size_t *  bytes_read_p
 

Memory dump callback to read from simulated RAM.

This is a callback function for reading values from a simulated RAM buffer.

Parameters:
dest_p Pointer to destination of the buffer read.
offset Offset from start of simulated RAM to begin reading.
nbytes Number of bytes to read.
context_p Pointer to generic context (unused).
bytes_read_p Pointer to location to return number of bytes read.
Returns:
dest_p if no error occurred, NULL if an error occurred.

void * mem_fake_write void *  offset,
const void *  src_p,
const size_t  nbytes,
void *  context_p,
size_t *  bytes_written_p
 

Memory dump callback to write from simulated RAM.

This is a callback function for writing values to a simulated RAM buffer.

Parameters:
offset Offset from start of sim RAM to begin writing.
src_p Pointer to source of the buffer write.
nbytes Number of bytes to write.
context_p Pointer to generic context (unused).
bytes_written_p Pointer to location to return num bytes written.
Returns:
offset if no error occurred, NULL if an error occurred.

unsigned int MEM_initialize ITC_Task *  task_p,
ITC_TaskID  tid
 

Initialize the MEM application-level functions.

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   ) 
 

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.

ITC_NodeID my_node_ID void   )  [static]
 

Return the ID of the node on which we are running.

Returns:
MSG code.


Variable Documentation

MEM_Control * mem
 

Control block for MEM.

Pointer to the control block (state) for the MEM application-level functions. The actual control block buffer is allocated during MEM_initialize().

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 Dec 13 07:31:24 2004 by doxygen 1.3.3