Skip to main content
Open topic with navigation

CAPL Functions » Diagnostics » diagIsNegativeResponse

Function Syntax

long diagIsNegativeResponse(diagResponse obj);

Method Syntax

Method Syntax
diagResponse::IsNegativeResponse();

Description

Returns value <> 0 if the object is a negative response to a request.

Parameters

  • obj: Diagnostics object

Return Values

0 or <> 0

Example

on diagResponse *
{
  // Handle the ambiguity of neg responses by treating them as '*'
  if( diagIsNegativeResponse ( this ) )
  {
    write( "Received negative response for service 0x%x, code 0x%x",
    (long) diagGetParameter( this, "SIDRQ_NR" ),
    (long) diagGetParameter( this, "NRC" ) );
  }
}
  • Technical References are only available in English
  • © Vector Informatik GmbH