Class IoLogOutput

Inheritance Relationships

Base Type

Class Documentation

class IoLogOutput : public LogOutput

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

Public Functions

IoLogOutput()
virtual unsigned int GetModuleId()

Return the ModuleId of the Io 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 input[constants::maxLogOutputDataSize][constants::maxLogOutputIoInputByteSize]

The I/O input data over the number of cycles in the count variable. The first dimension of the array represents the cycle, and the second dimension represents I/O input 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 I/O input data is determined by the SetMemoryLog function.

char output[constants::maxLogOutputDataSize][constants::maxLogOutputIoOutputByteSize]

The I/O output data over the number of cycles in the count variable. The first dimension of the array represents the cycle, and the second dimension represents I/O output 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 I/O output data is determined by the SetMemoryLog function.