diff --git a/fsw/src/mm_filedefs.h b/fsw/src/mm_filedefs.h index 9c19343..9c0270f 100644 --- a/fsw/src/mm_filedefs.h +++ b/fsw/src/mm_filedefs.h @@ -45,7 +45,7 @@ typedef struct MM_SymAddr_t SymAddress; /**< \brief Symbolic load address or fully resolved dump address */ uint32 NumOfBytes; /**< \brief Bytes to load or bytes dumped */ uint32 Crc; /**< \brief CRC value for load or dump data */ - uint8 MemType; /**< \brief Memory type used */ + MM_MemType_t MemType; /**< \brief Memory type used */ uint8 Spare[3]; /**< \brief Structure Padding */ } MM_LoadDumpFileHeader_t; diff --git a/fsw/src/mm_msg.h b/fsw/src/mm_msg.h index fd16c65..dadf705 100644 --- a/fsw/src/mm_msg.h +++ b/fsw/src/mm_msg.h @@ -40,6 +40,19 @@ * Type Definitions ************************************************************************/ +/** + * \brief Memory Types + */ +typedef enum +{ + MM_NOMEMTYPE = 0, /**< \brief Used to indicate that no memtype specified */ + MM_RAM = 1, /**< \brief Normal RAM, no special access required */ + MM_EEPROM = 2, /**< \brief EEPROM, requires special access for writes */ + MM_MEM8 = 3, /**< \brief Optional memory type that is only 8-bit read/write */ + MM_MEM16 = 4, /**< \brief Optional memory type that is only 16-bit read/write */ + MM_MEM32 = 5 /**< \brief Optional memory type that is only 32-bit read/write */ +} MM_MemType_t; + /** * \defgroup cfsmmcmdstructs CFS Memory Manager Command Structures * \{ @@ -75,7 +88,7 @@ typedef struct CFE_MSG_CommandHeader_t CmdHeader; /**< \brief Command header */ uint8 DataSize; /**< \brief Size of the data to be read */ - uint8 MemType; /**< \brief Memory type to peek data from */ + MM_MemType_t MemType; /**< \brief Memory type to peek data from */ uint8 Padding[2]; /**< \brief Structure padding */ MM_SymAddr_t SrcSymAddress; /**< \brief Symbolic source peek address */ } MM_PeekCmd_t; @@ -90,7 +103,7 @@ typedef struct CFE_MSG_CommandHeader_t CmdHeader; /**< \brief Command header */ uint8 DataSize; /**< \brief Size of the data to be written */ - uint8 MemType; /**< \brief Memory type to poke data to */ + MM_MemType_t MemType; /**< \brief Memory type to poke data to */ uint8 Padding[2]; /**< \brief Structure padding */ uint32 Data; /**< \brief Data to be written */ MM_SymAddr_t DestSymAddress; /**< \brief Symbolic destination poke address */ @@ -121,7 +134,7 @@ typedef struct { CFE_MSG_CommandHeader_t CmdHeader; /**< \brief Command header */ - uint8 MemType; /**< \brief Memory dump type */ + MM_MemType_t MemType; /**< \brief Memory dump type */ uint8 NumOfBytes; /**< \brief Number of bytes to be dumped */ uint16 Padding; /**< \brief Structure padding */ MM_SymAddr_t SrcSymAddress; /**< \brief Symbolic source address */ @@ -148,7 +161,7 @@ typedef struct { CFE_MSG_CommandHeader_t CmdHeader; /**< \brief Command header */ - uint8 MemType; /**< \brief Memory dump type */ + MM_MemType_t MemType; /**< \brief Memory dump type */ uint8 Padding[3]; /**< \brief Structure padding */ uint32 NumOfBytes; /**< \brief Number of bytes to be dumped */ MM_SymAddr_t SrcSymAddress; /**< \brief Symbol plus optional offset */ @@ -164,7 +177,7 @@ typedef struct { CFE_MSG_CommandHeader_t CmdHeader; /**< \brief Command header */ - uint8 MemType; /**< \brief Memory type */ + MM_MemType_t MemType; /**< \brief Memory type */ uint8 Padding[3]; /**< \brief Structure padding */ uint32 NumOfBytes; /**< \brief Number of bytes to fill */ uint32 FillPattern; /**< \brief Fill pattern to use */ @@ -233,14 +246,14 @@ typedef struct { CFE_MSG_TelemetryHeader_t TlmHeader; /**< \brief Telemetry header */ - uint8 CmdCounter; /**< \brief MM Application Command Counter */ - uint8 ErrCounter; /**< \brief MM Application Command Error Counter */ - uint8 LastAction; /**< \brief Last command action executed */ - uint8 MemType; /**< \brief Memory type for last command */ - cpuaddr Address; /**< \brief Fully resolved address used for last command */ - uint32 DataValue; /**< \brief Last command data (fill pattern or peek/poke value) */ - uint32 BytesProcessed; /**< \brief Bytes processed for last command */ - char FileName[OS_MAX_PATH_LEN]; /**< \brief Name of the data file used for last command, where applicable */ + uint8 CmdCounter; /**< \brief MM Application Command Counter */ + uint8 ErrCounter; /**< \brief MM Application Command Error Counter */ + uint8 LastAction; /**< \brief Last command action executed */ + MM_MemType_t MemType; /**< \brief Memory type for last command */ + cpuaddr Address; /**< \brief Fully resolved address used for last command */ + uint32 DataValue; /**< \brief Last command data (fill pattern or peek/poke value) */ + uint32 BytesProcessed; /**< \brief Bytes processed for last command */ + char FileName[OS_MAX_PATH_LEN]; /**< \brief Name of the data file used for last command, where applicable */ } MM_HkPacket_t; /**\}*/ diff --git a/fsw/src/mm_msgdefs.h b/fsw/src/mm_msgdefs.h index 9a3c5c9..25ed0cb 100644 --- a/fsw/src/mm_msgdefs.h +++ b/fsw/src/mm_msgdefs.h @@ -42,19 +42,6 @@ #define MM_DWORD_BIT_WIDTH 32 /**< \brief Double word bit width */ /**\}*/ -/** - * \name MM Memory Types - * \{ - */ -#define MM_NOMEMTYPE 0 /**< \brief Used to indicate that no memtype specified */ -#define MM_RAM 1 /**< \brief Normal RAM, no special access required */ -#define MM_EEPROM 2 /**< \brief EEPROM, requires special access for writes */ -#define MM_MEM8 3 /**< \brief Optional memory type that is only 8-bit read/write */ -#define MM_MEM16 4 /**< \brief Optional memory type that is only 16-bit read/write */ -#define MM_MEM32 5 /**< \brief Optional memory type that is only 32-bit read/write */ -#define MM_NUM_MEMTYPES 6 /**< \brief Number of memory types */ -/**\}*/ - /** * \name Misc Initialization Values * \{ diff --git a/fsw/src/mm_utils.c b/fsw/src/mm_utils.c index b43bac1..fe6b710 100644 --- a/fsw/src/mm_utils.c +++ b/fsw/src/mm_utils.c @@ -134,7 +134,7 @@ bool MM_VerifyCmdLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength) /* Verify peek and poke command parameters */ /* */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits) +bool MM_VerifyPeekPokeParams(cpuaddr Address, MM_MemType_t MemType, uint8 SizeInBits) { bool Valid = true; uint8 SizeInBytes; @@ -296,7 +296,7 @@ bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits) /* Verify load/dump memory parameters */ /* */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -bool MM_VerifyLoadDumpParams(cpuaddr Address, uint8 MemType, uint32 SizeInBytes, uint8 VerifyType) +bool MM_VerifyLoadDumpParams(cpuaddr Address, MM_MemType_t MemType, uint32 SizeInBytes, uint8 VerifyType) { bool Valid = true; int32 PSP_Status; diff --git a/fsw/src/mm_utils.h b/fsw/src/mm_utils.h index c1d3add..7a153b2 100644 --- a/fsw/src/mm_utils.h +++ b/fsw/src/mm_utils.h @@ -105,7 +105,7 @@ bool MM_VerifyCmdLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength); * \retval true Validation passed * \retval false Validation failed */ -bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits); +bool MM_VerifyPeekPokeParams(cpuaddr Address, MM_MemType_t MemType, uint8 SizeInBits); /** * \brief Verify memory load and dump parameters @@ -130,7 +130,7 @@ bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits); * \retval true Validation passed * \retval false Validation failed */ -bool MM_VerifyLoadDumpParams(cpuaddr Address, uint8 MemType, uint32 SizeInBytes, uint8 VerifyType); +bool MM_VerifyLoadDumpParams(cpuaddr Address, MM_MemType_t MemType, uint32 SizeInBytes, uint8 VerifyType); /** * \brief Verify 32 bit alignment diff --git a/unit-test/mm_load_tests.c b/unit-test/mm_load_tests.c index 3a0616f..8f26da1 100644 --- a/unit-test/mm_load_tests.c +++ b/unit-test/mm_load_tests.c @@ -120,9 +120,9 @@ int32 UT_MM_LOAD_TEST_CFE_SymbolLookupHook3(void *UserObj, int32 StubRetcode, ui return true; } -int8 UT_MM_CFE_OS_ReadHook1_MemType; -int32 UT_MM_CFE_OS_ReadHook_RunCount; -int32 UT_MM_CFE_OS_ReadHook1(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context) +MM_MemType_t UT_MM_CFE_OS_ReadHook1_MemType; +int32 UT_MM_CFE_OS_ReadHook_RunCount; +int32 UT_MM_CFE_OS_ReadHook1(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context) { void *buffer = *(void **)Context->ArgPtr[1]; diff --git a/unit-test/mm_utils_tests.c b/unit-test/mm_utils_tests.c index c026544..1225d88 100644 --- a/unit-test/mm_utils_tests.c +++ b/unit-test/mm_utils_tests.c @@ -216,10 +216,10 @@ void MM_SegmentBreak_Test_Nominal(void) void MM_VerifyPeekPokeParams_Test_ByteWidthRAM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint8 SizeInBits = 8; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint8 SizeInBits = 8; /* Execute the function being tested */ Result = MM_VerifyPeekPokeParams(Address, MemType, SizeInBits); @@ -239,10 +239,10 @@ void MM_VerifyPeekPokeParams_Test_ByteWidthRAM(void) void MM_VerifyPeekPokeParams_Test_WordWidthMEM16(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint8 SizeInBits = 16; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint8 SizeInBits = 16; /* Execute the function being tested */ Result = MM_VerifyPeekPokeParams(Address, MemType, SizeInBits); @@ -262,10 +262,10 @@ void MM_VerifyPeekPokeParams_Test_WordWidthMEM16(void) void MM_VerifyPeekPokeParams_Test_DWordWidthMEM32(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint8 SizeInBits = 32; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint8 SizeInBits = 32; /* Execute the function being tested */ Result = MM_VerifyPeekPokeParams(Address, MemType, SizeInBits); @@ -285,12 +285,12 @@ void MM_VerifyPeekPokeParams_Test_DWordWidthMEM32(void) void MM_VerifyPeekPokeParams_Test_WordWidthAlignmentError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM16; - uint8 SizeInBits = 16; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM16; + uint8 SizeInBits = 16; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 16 bit aligned: Addr = %%p Size = %%d"); @@ -320,12 +320,12 @@ void MM_VerifyPeekPokeParams_Test_WordWidthAlignmentError(void) void MM_VerifyPeekPokeParams_Test_DWordWidthAlignmentError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM32; - uint8 SizeInBits = 32; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM32; + uint8 SizeInBits = 32; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 32 bit aligned: Addr = %%p Size = %%d"); @@ -355,9 +355,9 @@ void MM_VerifyPeekPokeParams_Test_DWordWidthAlignmentError(void) void MM_VerifyPeekPokeParams_Test_InvalidDataSize(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; /* To reach size error: Peeks and Pokes must be 8 bits wide for this memory type */ uint8 SizeInBits = 16; int32 strCmpResult; @@ -390,10 +390,10 @@ void MM_VerifyPeekPokeParams_Test_InvalidDataSize(void) void MM_VerifyPeekPokeParams_Test_EEPROM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint8 SizeInBits = 8; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint8 SizeInBits = 8; /* Execute the function being tested */ Result = MM_VerifyPeekPokeParams(Address, MemType, SizeInBits); @@ -413,10 +413,10 @@ void MM_VerifyPeekPokeParams_Test_EEPROM(void) void MM_VerifyPeekPokeParams_Test_MEM8(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint8 SizeInBits = 8; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint8 SizeInBits = 8; /* Execute the function being tested */ Result = MM_VerifyPeekPokeParams(Address, MemType, SizeInBits); @@ -436,12 +436,12 @@ void MM_VerifyPeekPokeParams_Test_MEM8(void) void MM_VerifyPeekPokeParams_Test_RAMValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = MEM_RAM"); @@ -474,12 +474,12 @@ void MM_VerifyPeekPokeParams_Test_RAMValidateRangeError(void) void MM_VerifyPeekPokeParams_Test_EEPROMValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = MEM_EEPROM"); @@ -512,12 +512,12 @@ void MM_VerifyPeekPokeParams_Test_EEPROMValidateRangeError(void) void MM_VerifyPeekPokeParams_Test_MEM32ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = MEM32"); @@ -550,12 +550,12 @@ void MM_VerifyPeekPokeParams_Test_MEM32ValidateRangeError(void) void MM_VerifyPeekPokeParams_Test_MEM16ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = MEM16"); @@ -588,12 +588,12 @@ void MM_VerifyPeekPokeParams_Test_MEM16ValidateRangeError(void) void MM_VerifyPeekPokeParams_Test_MEM8ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = MEM8"); @@ -626,12 +626,12 @@ void MM_VerifyPeekPokeParams_Test_MEM8ValidateRangeError(void) void MM_VerifyPeekPokeParams_Test_MEM32InvalidDataSize(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bits invalid: Data Size = %%d"); @@ -660,12 +660,12 @@ void MM_VerifyPeekPokeParams_Test_MEM32InvalidDataSize(void) void MM_VerifyPeekPokeParams_Test_MEM16InvalidDataSize(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bits invalid: Data Size = %%d"); @@ -694,12 +694,12 @@ void MM_VerifyPeekPokeParams_Test_MEM16InvalidDataSize(void) void MM_VerifyPeekPokeParams_Test_MEM8InvalidDataSize(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint8 SizeInBits = 99; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint8 SizeInBits = 99; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bits invalid: Data Size = %%d"); @@ -728,12 +728,12 @@ void MM_VerifyPeekPokeParams_Test_MEM8InvalidDataSize(void) void MM_VerifyPeekPokeParams_Test_InvalidMemType(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = 99; - uint8 SizeInBits = 8; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = 99; + uint8 SizeInBits = 8; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Invalid memory type specified: MemType = %%d"); @@ -767,12 +767,12 @@ void MM_VerifyPeekPokeParams_Test_InvalidMemType(void) /* Loading */ void MM_VerifyLoadDumpParams_Test_LoadRAMValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -804,12 +804,12 @@ void MM_VerifyLoadDumpParams_Test_LoadRAMValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_LoadRAMDataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -838,12 +838,12 @@ void MM_VerifyLoadDumpParams_Test_LoadRAMDataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_LoadRAMDataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_RAM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_RAM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -872,12 +872,12 @@ void MM_VerifyLoadDumpParams_Test_LoadRAMDataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_LoadEEPROMValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -909,12 +909,12 @@ void MM_VerifyLoadDumpParams_Test_LoadEEPROMValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_LoadEEPROMDataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -943,12 +943,12 @@ void MM_VerifyLoadDumpParams_Test_LoadEEPROMDataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_LoadEEPROMDataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_EEPROM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_EEPROM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -977,12 +977,12 @@ void MM_VerifyLoadDumpParams_Test_LoadEEPROMDataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_LoadMEM32ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1014,12 +1014,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM32ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_LoadMEM32DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1048,12 +1048,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM32DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_LoadMEM32DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM32 + 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM32 + 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1082,12 +1082,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM32DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_LoadMEM32AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 32 bit aligned: Addr = %%p Size = %%d"); @@ -1116,12 +1116,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM32AlignmentError(void) void MM_VerifyLoadDumpParams_Test_LoadMEM16ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1153,12 +1153,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM16ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_LoadMEM16DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1187,12 +1187,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM16DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_LoadMEM16DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM16 + 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM16 + 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1221,12 +1221,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM16DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_LoadMEM16AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 16 bit aligned: Addr = %%p Size = %%d"); @@ -1255,12 +1255,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM16AlignmentError(void) void MM_VerifyLoadDumpParams_Test_LoadMEM8ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1292,12 +1292,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM8ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_LoadMEM8DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1326,12 +1326,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM8DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_LoadMEM8DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8 + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8 + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1360,12 +1360,12 @@ void MM_VerifyLoadDumpParams_Test_LoadMEM8DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_LoadInvalidMemTypeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = 99; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8 + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = 99; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8 + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Invalid memory type specified: MemType = %%d"); @@ -1393,10 +1393,10 @@ void MM_VerifyLoadDumpParams_Test_LoadInvalidMemTypeError(void) void MM_VerifyLoadDumpParams_Test_LoadInvalidVerifyTypeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = MM_MAX_LOAD_FILE_DATA_MEM8; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, -1); @@ -1416,10 +1416,10 @@ void MM_VerifyLoadDumpParams_Test_LoadInvalidVerifyTypeError(void) /* Dumping */ void MM_VerifyLoadDumpParams_Test_DumpRAM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_DUMP); @@ -1439,10 +1439,10 @@ void MM_VerifyLoadDumpParams_Test_DumpRAM(void) void MM_VerifyLoadDumpParams_Test_DumpEEPROM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_DUMP); @@ -1462,10 +1462,10 @@ void MM_VerifyLoadDumpParams_Test_DumpEEPROM(void) void MM_VerifyLoadDumpParams_Test_DumpMEM32(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; UT_SetDefaultReturnValue(UT_KEY(CFE_PSP_MemValidateRange), CFE_PSP_SUCCESS); @@ -1487,10 +1487,10 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM32(void) void MM_VerifyLoadDumpParams_Test_DumpMEM16(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; UT_SetDefaultReturnValue(UT_KEY(CFE_PSP_MemValidateRange), CFE_PSP_SUCCESS); @@ -1512,10 +1512,10 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM16(void) void MM_VerifyLoadDumpParams_Test_DumpMEM8(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; UT_SetDefaultReturnValue(UT_KEY(CFE_PSP_MemValidateRange), CFE_PSP_SUCCESS); @@ -1537,12 +1537,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM8(void) void MM_VerifyLoadDumpParams_Test_DumpRAMRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1575,12 +1575,12 @@ void MM_VerifyLoadDumpParams_Test_DumpRAMRangeError(void) void MM_VerifyLoadDumpParams_Test_DumpRAMInvalidSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1610,12 +1610,12 @@ void MM_VerifyLoadDumpParams_Test_DumpRAMInvalidSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpRAMInvalidSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_RAM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_RAM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1645,12 +1645,12 @@ void MM_VerifyLoadDumpParams_Test_DumpRAMInvalidSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpEEPROMRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1683,12 +1683,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEEPROMRangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEEPROMInvalidSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1718,12 +1718,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEEPROMInvalidSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpEEPROMInvalidSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_EEPROM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_EEPROM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1753,12 +1753,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEEPROMInvalidSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpMEM32RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1791,12 +1791,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM32RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpMEM32InvalidSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1826,12 +1826,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM32InvalidSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpMEM32InvalidSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM32 + 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM32 + 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1861,12 +1861,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM32InvalidSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpMEM32AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 3; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 3; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 32 bit aligned: Addr = %%p Size = %%d"); @@ -1896,12 +1896,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM32AlignmentError(void) void MM_VerifyLoadDumpParams_Test_DumpMEM16RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -1934,12 +1934,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM16RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpMEM16InvalidSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -1969,12 +1969,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM16InvalidSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpMEM16InvalidSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM16 + 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM16 + 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2004,12 +2004,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM16InvalidSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpMEM16AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 3; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 3; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 16 bit aligned: Addr = %%p Size = %%d"); @@ -2039,12 +2039,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM16AlignmentError(void) void MM_VerifyLoadDumpParams_Test_DumpMEM8RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2077,12 +2077,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM8RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpMEM8InvalidSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2112,12 +2112,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM8InvalidSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpMEM8InvalidSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM8 + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = MM_MAX_DUMP_FILE_DATA_MEM8 + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2147,12 +2147,12 @@ void MM_VerifyLoadDumpParams_Test_DumpMEM8InvalidSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpInvalidMemoryType(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = 99; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = 99; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Invalid memory type specified: MemType = %%d"); @@ -2186,10 +2186,10 @@ void MM_VerifyLoadDumpParams_Test_DumpInvalidMemoryType(void) void MM_VerifyLoadDumpParams_Test_DumpEventRAM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_EVENT); @@ -2209,10 +2209,10 @@ void MM_VerifyLoadDumpParams_Test_DumpEventRAM(void) void MM_VerifyLoadDumpParams_Test_DumpEventEEPROM(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_EVENT); @@ -2232,10 +2232,10 @@ void MM_VerifyLoadDumpParams_Test_DumpEventEEPROM(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM32(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_EVENT); @@ -2255,10 +2255,10 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM32(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM16(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_EVENT); @@ -2278,10 +2278,10 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM16(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM8(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; /* Execute the function being tested */ Result = MM_VerifyLoadDumpParams(Address, MemType, SizeInBytes, MM_VERIFY_EVENT); @@ -2301,12 +2301,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM8(void) void MM_VerifyLoadDumpParams_Test_DumpEventInvalidDataSizeTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2336,12 +2336,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventInvalidDataSizeTooSmall(void) void MM_VerifyLoadDumpParams_Test_DumpEventInvalidDataSizeTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = MM_MAX_DUMP_INEVENT_BYTES + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = MM_MAX_DUMP_INEVENT_BYTES + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2371,12 +2371,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventInvalidDataSizeTooLarge(void) void MM_VerifyLoadDumpParams_Test_DumpEventRAMRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2409,12 +2409,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventRAMRangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEventEEPROMRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2447,12 +2447,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventEEPROMRangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM32RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2485,12 +2485,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM32RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM32AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 3; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 3; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 32 bit aligned: Addr = %%p Size = %%d"); @@ -2520,12 +2520,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM32AlignmentError(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM16RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2558,12 +2558,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM16RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM16AlignmentError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 3; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 3; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 16 bit aligned: Addr = %%p Size = %%d"); @@ -2593,12 +2593,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM16AlignmentError(void) void MM_VerifyLoadDumpParams_Test_DumpEventMEM8RangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2631,12 +2631,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventMEM8RangeError(void) void MM_VerifyLoadDumpParams_Test_DumpEventInvalidMemType(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = 99; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = 99; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Invalid memory type specified: MemType = %%d"); @@ -2670,12 +2670,12 @@ void MM_VerifyLoadDumpParams_Test_DumpEventInvalidMemType(void) void MM_VerifyLoadDumpParams_Test_FillRAMValidateRangeError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2707,12 +2707,12 @@ void MM_VerifyLoadDumpParams_Test_FillRAMValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_FillRAMDataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2741,12 +2741,12 @@ void MM_VerifyLoadDumpParams_Test_FillRAMDataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_FillRAMDataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_RAM; - uint32 SizeInBytes = MM_MAX_FILL_DATA_RAM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_RAM; + uint32 SizeInBytes = MM_MAX_FILL_DATA_RAM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2775,12 +2775,12 @@ void MM_VerifyLoadDumpParams_Test_FillRAMDataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_FillEEPROMValidateRangeError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2812,12 +2812,12 @@ void MM_VerifyLoadDumpParams_Test_FillEEPROMValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_FillEEPROMDataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2846,12 +2846,12 @@ void MM_VerifyLoadDumpParams_Test_FillEEPROMDataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_FillEEPROMDataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_EEPROM; - uint32 SizeInBytes = MM_MAX_FILL_DATA_EEPROM + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_EEPROM; + uint32 SizeInBytes = MM_MAX_FILL_DATA_EEPROM + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2880,12 +2880,12 @@ void MM_VerifyLoadDumpParams_Test_FillEEPROMDataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_FillMEM32ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -2917,12 +2917,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM32ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_FillMEM32DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2951,12 +2951,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM32DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_FillMEM32DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM32 + 4; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM32 + 4; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -2985,12 +2985,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM32DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_FillMEM32AlignmentError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM32; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM32; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 32 bit aligned: Addr = %%p Size = %%d"); @@ -3019,12 +3019,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM32AlignmentError(void) void MM_VerifyLoadDumpParams_Test_FillMEM16ValidateRangeError(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -3056,12 +3056,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM16ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_FillMEM16DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -3090,12 +3090,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM16DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_FillMEM16DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 0; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM16 + 2; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 0; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM16 + 2; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -3124,12 +3124,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM16DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_FillMEM16AlignmentError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM16; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM16; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data and address not 16 bit aligned: Addr = %%p Size = %%d"); @@ -3158,12 +3158,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM16AlignmentError(void) void MM_VerifyLoadDumpParams_Test_FillMEM8ValidateRangeError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "CFE_PSP_MemValidateRange error received: RC = 0x%%08X Addr = %%p Size = %%d MemType = %%s"); @@ -3195,12 +3195,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM8ValidateRangeError(void) void MM_VerifyLoadDumpParams_Test_FillMEM8DataSizeErrorTooSmall(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = 0; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = 0; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -3229,12 +3229,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM8DataSizeErrorTooSmall(void) void MM_VerifyLoadDumpParams_Test_FillMEM8DataSizeErrorTooLarge(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = MM_MEM8; - uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM8 + 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = MM_MEM8; + uint32 SizeInBytes = MM_MAX_FILL_DATA_MEM8 + 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Data size in bytes invalid or exceeds limits: Data Size = %%d"); @@ -3263,12 +3263,12 @@ void MM_VerifyLoadDumpParams_Test_FillMEM8DataSizeErrorTooLarge(void) void MM_VerifyLoadDumpParams_Test_FillInvalidMemTypeError(void) { - bool Result; - uint32 Address = 1; - uint8 MemType = 99; - uint32 SizeInBytes = 1; - int32 strCmpResult; - char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; + bool Result; + uint32 Address = 1; + MM_MemType_t MemType = 99; + uint32 SizeInBytes = 1; + int32 strCmpResult; + char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH]; snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "Invalid memory type specified: MemType = %%d"); diff --git a/unit-test/stubs/mm_utils_stubs.c b/unit-test/stubs/mm_utils_stubs.c index c435036..583def7 100644 --- a/unit-test/stubs/mm_utils_stubs.c +++ b/unit-test/stubs/mm_utils_stubs.c @@ -55,7 +55,7 @@ bool MM_VerifyCmdLength(const CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength) return UT_DEFAULT_IMPL(MM_VerifyCmdLength); } -bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits) +bool MM_VerifyPeekPokeParams(cpuaddr Address, MM_MemType_t MemType, uint8 SizeInBits) { UT_Stub_RegisterContextGenericArg(UT_KEY(MM_VerifyPeekPokeParams), Address); UT_Stub_RegisterContextGenericArg(UT_KEY(MM_VerifyPeekPokeParams), MemType); @@ -63,7 +63,7 @@ bool MM_VerifyPeekPokeParams(cpuaddr Address, uint8 MemType, uint8 SizeInBits) return UT_DEFAULT_IMPL(MM_VerifyPeekPokeParams); } -bool MM_VerifyLoadDumpParams(cpuaddr Address, uint8 MemType, uint32 SizeInBytes, uint8 VerifyType) +bool MM_VerifyLoadDumpParams(cpuaddr Address, MM_MemType_t MemType, uint32 SizeInBytes, uint8 VerifyType) { UT_Stub_RegisterContextGenericArg(UT_KEY(MM_VerifyLoadDumpParams), Address); UT_Stub_RegisterContextGenericArg(UT_KEY(MM_VerifyLoadDumpParams), MemType);