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

Constituent: mem_unit_test     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

mem_test_load.c File Reference

Test of the Memory Load functions. More...

#include <string.h>
#include "CCSDS/CCSDS_msg.h"
#include "MEM/MEM_load.h"
#include "MEM/MEM_map.h"
#include "MEM/MEM_msgs.h"
#include "MSG/MSG_pubdefs.h"
#include "mem_test_load.h"
#include "mem_unit_test.h"

Include dependency graph for mem_test_load.c:

Include dependency graph

Data Structures

struct  _mem_LoadInfo
 Load unit test descriptor. More...


Defines

#define MEM_LOAD_MEM_WRITE_MAX_WORDS   (4096 / 4)
 Maximum number of words that can be loaded with a Memory Write telecommand.


Typedefs

typedef _mem_LoadInfo mem_LoadInfo
 Typedef for _mem_LoadInfo.


Functions

int mem_loadInit_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Start the Memory Load system and verify the results.

int mem_loadGetInfo_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Get and verify information for a load context.

int mem_loadGetContext_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Get and verify a load context.

int mem_loadReleaseContext_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Release and verify a load context.

int mem_loadPkt_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Load and verify data for a load context.

int mem_loadWrite_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Write and verify data for a load context.

int mem_loadMapInit_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Start the Memory Map interface and verify the results.

int mem_loadMapAddEntry_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p)
 Add an entry to the Memory Map and verify the results.

void mem_LoadParam_test (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Test for Memory Load bad parameter handling.

void mem_LoadContext_test (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for Memory Load context operations.

int mem_check_memory_write (test_Test_Descriptor *td_p, mem_LoadInfo *load_p, unsigned int pkt_bytes, unsigned int load_words)
 Verify Memory Write telecommands.

void mem_LoadSize_test (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for Memory Write telecommands.

void mem_LoadMemory_test (test_Test_Descriptor *td_p, const unsigned int bit_mask)
 Unit test for Memory Write telecommands.


Detailed Description

Test of the Memory Load functions.

This is the unit test for the functions that handle Memory Load telecommands and the resulting load operations.

  CVS $Id: mem_test_load.c,v 1.3 2004/07/19 16:28:03 dmay Exp $
  

Define Documentation

#define MEM_LOAD_MEM_WRITE_MAX_WORDS   (4096 / 4)
 

Maximum number of words that can be loaded with a Memory Write telecommand.

Maximum number of words that can be loaded with a Memory Write telecommand. Defined here to avoid including MEMCMD.h.


Function Documentation

int mem_check_memory_write test_Test_Descriptor td_p,
mem_LoadInfo load_p,
unsigned int  pkt_bytes,
unsigned int  load_words
[static]
 

Verify Memory Write telecommands.

Verify the handling of Memory Write telecommands.

Parameters:
td_p Pointer to test descriptor.
load_p Pointer to local load descriptor.
pkt_bytes Value for the Memory Write command 'length' parm.
load_words Value for the Memory Write command 'wordCount' parm.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_LoadContext_test test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for Memory Load context operations.

Verify the handling of Memory Load context 'get', 'release', and 'info' operations.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadGetContext_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Get and verify a load context.

Wrapper for the MEM_loadGetContext() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to load information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadGetInfo_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Get and verify information for a load context.

Wrapper for the MEM_loadGetInfo() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to load information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadInit_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Start the Memory Load system and verify the results.

Wrapper for the MEM_loadInit() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to memory load test information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadMapAddEntry_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Add an entry to the Memory Map and verify the results.

Wrapper for the MEM_mapAddEntry() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to memory load test info.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadMapInit_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Start the Memory Map interface and verify the results.

Wrapper for the MEM_mapInit() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to memory load test info.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_LoadMemory_test test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for Memory Write telecommands.

Verify the handling of Memory Write telecommands.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_LoadParam_test test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Test for Memory Load bad parameter handling.

Verify the handling of bad parameters by the Memory Load functions.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadPkt_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Load and verify data for a load context.

Wrapper for the MEM_loadPkt() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to load information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadReleaseContext_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Release and verify a load context.

Wrapper for the MEM_loadReleaseContext() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to load information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

void mem_LoadSize_test test_Test_Descriptor td_p,
const unsigned int  bit_mask
 

Unit test for Memory Write telecommands.

Verify the handling of Memory Write telecommands with various amounts of data.

Parameters:
td_p Pointer to test descriptor.
bit_mask Bitmask ID for this subtest.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:

int mem_loadWrite_wrap test_Test_Descriptor td_p,
int  id,
mem_LoadInfo info_p
[static]
 

Write and verify data for a load context.

Wrapper for the MEM_loadWrite() function that validates the results.

Parameters:
td_p Pointer to test descriptor.
id ID to use for user messages.
info_p Pointer to load information.
Return values:
0 Success.
-1 Failure.

Here is the call graph for this function:


Generated on Mon Dec 13 07:35:57 2004 by doxygen 1.3.3