GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > MEM / V5-4-1
Constituent: mem_unit_test     Tag: sun-gcc
#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:
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_loadPktMemory_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p) |
Announce and verify arrival of Memory Write command. | |
int | mem_loadPktPci_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p) |
Announce and verify arrival of Memory PCI Device Header Write command. | |
int | mem_loadPktReg_wrap (test_Test_Descriptor *td_p, int id, mem_LoadInfo *info_p) |
Announce and verify arrival of Memory Processor Register Write command. | |
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. |
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.4 2004/11/29 19:40:36 dmay Exp $
|
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. |
|
Verify Memory Write telecommands. Verify the handling of Memory Write telecommands.
|
Here is the call graph for this function:
|
Unit test for Memory Load context operations. Verify the handling of Memory Load context 'get', 'release', and 'info' operations.
|
Here is the call graph for this function:
|
Get and verify a load context. Wrapper for the MEM_loadGetContext() function that validates the results.
|
Here is the call graph for this function:
|
Get and verify information for a load context. Wrapper for the MEM_loadGetInfo() function that validates the results.
|
Here is the call graph for this function:
|
Start the Memory Load system and verify the results. Wrapper for the MEM_loadInit() function that validates the results.
|
Here is the call graph for this function:
|
Add an entry to the Memory Map and verify the results. Wrapper for the MEM_mapAddEntry() function that validates the results.
|
Here is the call graph for this function:
|
Start the Memory Map interface and verify the results. Wrapper for the MEM_mapInit() function that validates the results.
|
Here is the call graph for this function:
|
Unit test for Memory Write telecommands. Verify the handling of Memory Write telecommands.
|
Here is the call graph for this function:
|
Test for Memory Load bad parameter handling. Verify the handling of bad parameters by the Memory Load functions.
|
Here is the call graph for this function:
|
Announce and verify arrival of Memory Write command. Wrapper for the MEM_loadPktMemory() function that validates the results.
|
Here is the call graph for this function:
|
Announce and verify arrival of Memory PCI Device Header Write command. Wrapper for the MEM_loadPktPci() function that validates the results.
|
Here is the call graph for this function:
|
Announce and verify arrival of Memory Processor Register Write command. Wrapper for the MEM_loadPktReg() function that validates the results.
|
Here is the call graph for this function:
|
Release and verify a load context. Wrapper for the MEM_loadReleaseContext() function that validates the results.
|
Here is the call graph for this function:
|
Unit test for Memory Write telecommands. Verify the handling of Memory Write telecommands with various amounts of data.
|
Here is the call graph for this function:
|
Write and verify data for a load context. Wrapper for the MEM_loadWrite() function that validates the results.
|
Here is the call graph for this function: