Skip to main content

AvbGetLastError

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

dword AvbGetLastError();

Description

This function can be used to check whether the last called function of AVB IL has been successfully executed. The call of this function does not reset the saved error. In the event of an error, a detailed error description can be read out using the AvbGetLastErrorText function.

Parameters

Return Values

  • 0: The last called function was successfully executed.
  • >0: Error code

Example

dword retVal;
dword listenerHandle;

// open a listener
listenerHandle = AvbOpenListener();

// check if last function was successfully executed
if ((retVal = AvbGetLastError()) != 0)
{
  write("AVB IL error occurred: Error code: %d", retVal);
}
See Also
  • AvbAccept
  • AvbCloseListener
  • AvbCloseTalker
  • AvbConnect
  • AvbGetLastError
  • AvbGetLastErrorText
  • AvbGetMediaType
  • AvbGetProtocol
  • AvbGetStreamId
  • AvbGetStreamSourceAddress
  • AvbGetStreamUniqueId
  • AvbILControlInit
  • AvbILControlResume
  • AvbILControlStart
  • AvbILControlStop
  • AvbILControlWait
  • AvbListen
  • AvbOpenListener
  • AvbOpenTalker
  • AvbReceive
  • AvbSend
  • AvbSetMediaType
  • AvbSetProperty
  • AvbSetProtocol
  • AvbSetVerbosity
  • OnAvbConnect
  • OnAvbListen
  • OnAvbReceive
  • OnAvbSend
  • OnAvbSendPrepare
  • OnPtpSendPrepare
  • PtpSetProperty
  • PtpSimulationTimespanFromPtpTimespan
  • PtpTimeFromSimulationTime
  • PtpTimeNow