Skip to main content

coTfsSDOAbortCodeOccurred (Level 2)

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE Note The extended SDO abort handling feature is not supported on using the following functions: The functions maintain SDO abort codes by themselves and execute the function coTfsSDOResetAccAbortList independently. If you configured any SDO abort code lists before, you have to create them again after using one of the listed functions.

Function Syntax

long coTfsSDOAbortCodeOccurred( dword resetAbortList );

Description

This function checks if a previously executed coTfsSDO… command can be finished with a received and accepted SDO abort code.

Parameters

  • resetAbortList: !=0: resets the list with received and accepted SDO abort codes (see coTfsSDOResetAbortList)

Return Values

Error code

Example

/* clear list with received SDO abort codes first */
coTfsSDOResetAbortList();

/* Try to read a non-existing object. The DUT will answer with an SDO abort code */
coTfsSdoUpload(0x999,0);

/* perform other SDO accesses ... */
/* did any SDO abort code occur ? */
if (coTfsSDOAbortCodeOccurred(1) != 1)
{
  /*
   * no SDO abort code occurred
   * object exists or device is not connected ?
  */
} /* if */