Class UserMemoryLogOutput

Inheritance Relationships

Base Type

Class Documentation

class UserMemoryLogOutput : public LogOutput

This class contains data of the UserMemory module that has been logged using the memory log operation. This class contains data over multiple cycles.

Public Functions

UserMemoryLogOutput()
virtual unsigned int GetModuleId()

Return the ModuleId of the UserMemory module.

virtual WMX3APIFUNC SetOutputData(int moduleId, unsigned char *cfgData, unsigned int cfgDataSize, unsigned char *data, unsigned int dataSize, unsigned int dataIndex, unsigned int storeIndex)

Reads the two binary representations of the input as the settings of the log data to be retrieved and the values of the member variables contained in the derived class of this class. Assign the value of the read member variable to each member variable of the derived class that called this function, according to the setting that was read.

Reads the two binary representations of the input as the settings of the log data to be retrieved and the values of the member variables contained in the derived class of this class. Assign the value of the read member variable to each member variable of the derived class that called this function, according to the setting that was read.

Parameters:
  • moduleId[in] ID number of the module that defines how to read the binary representation.

  • cfgData[in] A pointer to the buffer that the settings of the log data to be retrieved are contained as a binary representation.

  • cfgDataSize[in] The size of the buffer that the settings of the log data to be retrieved are contained as a binary representation. The units are bytes.

  • data[in] A pointer to the buffer that the values of the member variables are contained as a binary representation.

  • dataSize[in] The size of the buffer that the values of the member variables are contained as a binary representation. The units are bytes.

  • dataIndex[in] The index of the buffer that the values of the member variables are contained as a binary representation.

  • storeIndex[in] The index to store the value of the member variable that read.

Public Members

char data[constants::maxLogOutputDataSize][constants::maxLogOutputMDataByteSize]

The user memory data over the number of cycles in the count variable. The first dimension of the array represents the cycle, and the second dimension represents user memory bytes. Of the elements of the first dimension of the array, it contains the data of the number of count variable values from the top. The layout of the user memory data is determined by the SetMemoryLog function.