Skip to main content
Open topic with navigation CAPL Functions » K-Line » KLine_Init5BaudEcuParams

KLine_Init5BaudEcuParams

Valid for: CANoe DE

Function Syntax

Description

Initialize K-Line channel for reception of the 5 baud pattern. Note: Must be called in on prestart handler after KLine_CreateECURepresentation.

Parameters

  • 5BaudAddress: The 5 Baud address to accept on the active channel.
  • rate_10thBd: Rate of the address in 1/10 of baud, i.e. a value of 50 should be used here.
  • W1_us, W2_us, W3_us, W4_us, W4Min_us, W4Max_us: Timing parameters in milliseconds used for the initialization pattern. A detailed description of the parameters is available on the Vector K-Line Protocol Reference Chart e.g. available at vector.com.
  • addressNot: The inverted address to be sent by the ECU simulation. A value of 0 will use the default, i.e. the inverted 5 baud address.

Return Values

On success 0, otherwise a value less than 0.

Example