GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MEM / V5-8-1 > mem / mv2304
#include <ITC/ITC_pubdefs.h>
Classes | |
struct | _MEM_Info |
Information about the state of the MEM system. More... | |
Typedefs | |
typedef struct _MEM_Info | MEM_Info |
Typedef for # _MEM_Info. | |
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_getInfo (MEM_Info *info_p) |
Get current state of the MEM application-level functions. | |
void * | MEM_readSurom (void *dst_p, const void *src_p, const unsigned int num_bytes) |
Read RAD750 SUROM. |
CVS $Id: MEM_pubdefs.h,v 1.7 2011/03/29 01:58:52 apw Exp $
unsigned int MEM_getInfo | ( | MEM_Info * | info_p | ) |
Get current state of the MEM application-level functions.
info_p | Pointer to location to return state information. |
References _MEM_Control::info, mem_lock_access(), MEM_STATE_INITIALIZED, mem_unlock_access(), and _MEM_Control::state.
unsigned int MEM_init | ( | void | ) |
Initialize the MEM application-level functions using CDM.
This function is a wrapper for MEM_initialize() that uses CDM to determine its parameters.
A MSG code if an error occurs.
References MEM_initialize().
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 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.
task_p | Pointer to controlling task's description block. | |
tid | ID of the controlling task. |
An error MSG code if the MEM package has already been initialized or an error occurs.
References _MEM_Control::dump_active, _MEM_Control::dump_dest_nid, _MEM_Control::dump_fcode, _MEM_Control::dump_handle, _MEM_Control::dump_tran_id, _MEM_Control::load_handle, _MEM_Control::max_dump_pkts, MEM_Apid644, mem_change_state(), mem_create_control_block(), MEM_dumpGetContext(), MEM_dumpInit(), MEM_loadGetContext(), MEM_loadInit(), mem_map_init(), mem_pool_init(), MEM_STATE_INIT_FAIL, MEM_STATE_INITIALIZED, MEM_STATE_INITIALIZING, MEM_STATE_UNINITIALIZED, MEM_updateStats(), _MEM_Control::my_nid, _MEM_Control::my_tid, _MEM_Control::num_dump_pkts, _MEM_Control::pkt_buf_p, _MEM_Control::pkt_fcb_p, _MEM_Control::pkt_in_use, _MEM_Control::poll_enabled, _MEM_Control::poll_usecs, _MEM_Control::retries, _MEM_Control::retry_qitem_p, _MEM_Control::state, _MEM_Control::task_p, and _MEM_Control::wut_handle.
Referenced by MEM_init().
void* MEM_readSurom | ( | void * | dst_p, | |
const void * | src_p, | |||
const unsigned int | num_bytes | |||
) |
Read RAD750 SUROM.
dst_p | Pointer to destination of the memory read. | |
src_p | Pointer to source of the memory read. | |
num_bytes | Number of bytes to read. |
References mem_surom_read().
unsigned int MEM_shutdown | ( | void | ) |
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.
An error MSG code if the MEM package is in an invalid state or an error occurs.
References _MEM_Control::dump_handle, _MEM_Control::load_handle, MEM_Apid644, mem_change_state(), MEM_dumpReleaseContext(), MEM_loadReleaseContext(), mem_pool_free(), MEM_STATE_INIT_FAIL, MEM_STATE_INITIALIZED, MEM_STATE_SHUTDOWN, MEM_STATE_SHUTDOWN_FAIL, MEM_STATE_UNINITIALIZED, MEM_updateStats(), _MEM_Control::pkt_buf_p, _MEM_Control::pkt_fcb_p, _MEM_Control::pkt_in_use, _MEM_Control::state, _MEM_Control::task_p, and _MEM_Control::wut_handle.