Skip to main content
Open topic with navigation CAPL Functions » MOST » mostApIsAddressed

mostApIsAddressed

Valid for: CANoe DE

Function Syntax

  • long mostApIsAddressed(long fblockID, long instID); // form 1
  • long mostApIsAddressed(mostAmsMessage * msgCommand); // form 2

Description

mostApIsAddressed checks whether the functional MOST address {fblockID, instID} matches the CAPL node function blocks assigned via mostApRegister() or mostApRegisterEx(). The functional address is permitted to contain wildcard symbols. This function can be used to determine whether an incoming command message is destined for the CAPL node.

Parameters

  • fblockID: Function block identifier of the functional address.
  • instID: Instance identifier of the functional address.
  • msgCommand: Received command message containing the functional address.

Return Values

  • 1: If a MOST application simulated by this CAPL node is addressed.
  • 0: Otherwise
  • <0: See error codes

Example

mostApRegistermostApRegisterExmostPrepareReportmostSendError