Skip to main content
Open topic with navigation CAPL Functions » MOST » mostSetSpyCtrl, mostSetSpyAsync, mostSetSpyEthPkt

mostSetSpyCtrl, mostSetSpyAsync, mostSetSpyEthPkt

Valid for: CANoe DE

Function Syntax

  • long mostSetSpyCtrl(long channel, long mode);
  • long mostSetSpyAsync(long channel, long mode);
  • MOST150: long mostSetSpyEthPkt(long channel, long mode);

Description

Spy mode is activated (mode = 1) or deactivated (mode = 0) for the Control, Asynchronous or Ethernet transmission channel using these functions.

Parameters

  • channel: Channel of the connected interface
  • mode:
    • 0: Spy inactive
    • 1: Spy active

Return Values

See error codes.
For MOST network interfaces that do not support a Spy mode, the error code kMostWrongHWType is returned.

Example

mostGetChannelmostGetSpyCtrl, mostGetSpyAsync, mostGetSpyEthPkt