GetBusAlarm (FUN)ΒΆ
FUNCTION GetBusAlarm : BOOL
This function returns if the CAN chip is in Bus Alarm state. In this state sending and receiving messages is not possible. A Bus Alarm can be reset by ResetBusAlarm which leads to a re-initialization of the CAN chip. Diagnostic Information can be also read by GetDiagnosis.
- InOut:
Scope
Name
Type
Comment
Return
GetBusAlarm
BOOL
TRUE
if a bus alarm is pending.Input
hDriver
CAA.HANDLE
handle of CAN interface
peError
POINTER TO ERROR
optional pointer to error enum