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

KLine_SendFrame

Valid for: CANoe DE

Function Syntax

long KLine_SendFrame( byte data[], dword count)

Description

Send data on the active K-Line communication channel. The K-Line header is generated automatically due to header settings. Note: In a tester node, you can achieve this functionality by setting the diagnostics request to the byte sequence directly (with DiagResize and DiagSetPrimitiveData).

Parameters

  • data: Data buffer
  • dword count: Length of data buffer

Return Values

On success 0, otherwise a value less than 0.

Example

_Diag_DataRequest( BYTE data[], dword count, long furtherSegments)
{
   long status;
   status = KLine_SendFrame( data, count);
   write( "KLine_SendFrame returns %d for sending %d bytes", status, count);
}