Machine Expert > V2.1 > Software > Librerie, Modellis e Esempi > Librerie > CODESYS Libraries > CAA Can Low Level Extern Library Documentation > CAN Low Level > Functions > Diagnostic Information > GetBusState (FUN)

GetBusState (FUN)

FUNCTION GetBusState : BUSSTATE

This function return the current state of the bus. Diagnostic Information can be also read by GetDiagnosis.

InOut:

Scope

Name

Type

Comment

Return

GetBusState

BUSSTATE

current bus state

Input

hDriver

CAA.HANDLE

handle of CAN interface

peError

POINTER TO ERROR

optional pointer to error enum