Skip to main content

diagSetRespPrimitiveByte

Valid for: CANoe DE

Function Syntax

long diagSetRespPrimitiveByte( diagRequest request, 
 DWORD bytePos, DWORD newValue);

Method Syntax

Method Syntax
diagRequest::SetRespPrimitiveByte( DWORD bytePos, DWORD newValue);

Description

Writes one byte of the response stored for the request.

Parameters

  • request: Request
  • bytePos: Position of the byte in the object.
  • newValue: New value of the accessed byte.

Return Values

  • ≥ 0: Requested value or “no error”
  • < 0: Error code

Example

diagSetPrimitiveBytediagGetPrimitiveBytediagGetRespPrimitiveByte