Skip to main content

diagCheckObjectMatch

Valid for: CANoe DE

Function Syntax

long diagCheckObjectMatch( diagRequest request, diagResponse response);

Method Syntax

Method Syntax
long diagRequest::CheckObjectMatch( diagResponse response);

Description

Checks if the response service id is a valid (positive or negative) response for the request.

Parameters

  • request: Diagnostics request
  • response: Diagnostics response

Return Values

  • 1: Objects match.
  • 0: Objects do not match.
Error code

Example

DiagRequest AirbaContr_Read req;
DiagResponse AirbaContr_Read resp;

if( 1 == diagCheckObjectMatch( req, resp))
    write( "Request and response match!");