CANopenDevice_Diag.GetBusState (METH)ΒΆ
METHOD GetBusState : DED.BUS_STATE
Returns the bus state of the associated CANBus.
Following table defines the mapping between CAA Device Diagnosis DED.BUS_STATE and CL2.BUSSTATE.
| CAA Device Diagnosis | CANbus state | 
| 
 | CL2.BUSSTATE.ERR_FREE,CL2.BUSSTATE.ACTIVE,CL2.BUSSTATE.WARNING | 
| 
 | no driver found, CL2.BUSSTATE.BUSOFF,CL2.BUSSTATE.PASSIVE | 
| 
 | 
 | 
- InOut:
- Scope - Name - Type - Comment - Return - GetBusState- DED.BUS_STATE- current bus state. - Output - xDiagnosisInfoAvailable- BOOL- TRUE, if red exclamation mark in device tree- eError- DED.ERROR- DED.ERROR.NO_ERRORif bus state was retrieved wihout error.