Skip to main content
Open topic with navigation CAPL Function Overview » MOST » mostSetRetryParameter, mostGetRetryParameter

mostSetRetryParameter, mostGetRetryParameter

Valid for: CANoe DE

Function Syntax

  • long mostSetRetryParameter(long channel, long id, long value);
  • long mostGetRetryParameter(long channel, long id);

Description

The functions provide access to the transceiver chip parameters for message transmission. The number of low-level transmission attempts and delay between attempts can be set and retrieved.

Parameters

  • channel: Channel of the connected interface.
  • id: Parameter identification (see table below).
    • ID 0: Transmission attempts on the control channel.
      • VN26x0 (MOST25): 1..255
      • VN2640 (MOST150): 1..16
      • OptoLyzer G2 3150o (MOST150): 1..16
    • ID 1: Time between send retries on the control channel.
      • VN26x0 (MOST25): 3..255
      • VN2640 (MOST150): 3..31
      • OptoLyzer G2 3150o (MOST150): 3..15
    • ID 2: Transmission attempts on the asynchronous channel.
      • VN2640 (MOST150): 1..16
      • OptoLyzer G2 3150o (MOST150): 1..16
    • ID 3: Time between send retries on the asynchronous channel.
      • VN2640 (MOST150): 0..255
      • OptoLyzer G2 3150o (MOST150): 0..255
  • value: Value to be set.

Return Values

  • mostSetRetryParameter: See error codes.
  • mostGetRetryParameter:

Example

// configure MOST transceiver for 5 low-level transmission attempts on Control channel
mostSetRetryParameter(1, 0, 5);
mostGetChanneloutputmostReadRegOnMostReg