Skip to main content

TestMostRegGetData

Valid for: CANoe DE

Function Syntax

long TestMostRegGetData(BYTE aBuffer[], long aBufferSize);

Description

The TestMostRegGetData() function is used together with the TestMostReadReg and TestMostWriteReg functions. After initiating one of these two functions, the resulting register value can be copied into a byte buffer. Ensure that the buffer size is as specified. A maximum of 16 bytes are transported with the MostReg result. Note that the register values are only held ready for call-up until the next wait condition in the test program.

Parameters

  • aBuffer[]: Data buffer in which the register values are written
  • aBufferSize: Size of the given data buffer (max. 16 bytes)

Return Values

  • -2: Resume based on Constraint Violation
  • -1: General error e.g. the functionality is not available
  • 0: Resume based on Timeout
  • 1: Resume based on occurred event

Example

TestMostReadRegTestMostWriteReg