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
GetBusAlarmBOOLTRUEif a bus alarm is pending.Input
hDriverCAA.HANDLEhandle of CAN interface
peErrorPOINTER TO ERROR
optional pointer to error enum