Skip to main content
Open topic with navigation CAPL Functions » LIN » linStartDisturbance

linStartDisturbance

Valid for: CANoe DE

Function Syntax

long linStartDisturbance(dword length, dword level);

Description

Starts a disturbance on the bus. Note that disturbances shorter than 64 bit times:
  • Cannot be stopped with linStopDisturbance().
  • May fail, if the hardware simultaneously transmits on this channel.

Parameters

  • length: Length of the disturbance in bit times.
    • -1: permanent disturbance
  • level: The level of the disturbance.
    • 0: dominant disturbance (inverts recessive bits)
    • 1: recessive disturbance (inverts dominant bits - requires mag-Cab/Piggyback and external power supply)

Return Values

On success a value unequal to zero, otherwise zero.

Example

linStopDisturbancelinSetRespDisturbance