CANbus (FB) ¶ FUNCTION_BLOCK CANbus Note Do not instantiate this function block! An implicit instance will be created for each CANbus in the device tree. Properties: AutoRecovery Baudrate BusAlarm BusState NetId Methods: ResetBusAlarm Structure: AutoRecovery (Property) Baudrate (Property) BusAlarm (Property) BusState (Property) NetId (Property) ResetBusAlarm (Method)
CANbus.AutoRecovery (PROP) ¶ PROPERTY AutoRecovery : BOOL If AutoRecovery is enabled CANbus.ResetBusAlarm is automatically called when CANbus.BusAlarm is TRUE . If AutoRecovery is disabled CANbus.ResetBusAlarm has to be called by application. Default value: TRUE
CANbus.Baudrate (PROP) ¶ PROPERTY FINAL Baudrate : UINT Returns the currently used Baudrate. Baudrate can be changed with CANbus_Diag.SetBaudrate if device diagnosis is activated (needs Reconfigure !).
CANbus.BusAlarm (PROP) ¶ PROPERTY BusAlarm : BOOL Returns TRUE if CAN driver signals a BusAlarm (e.g. Bus Off). Call CANbus.ResetBusAlarm to reset the alarm or enable CANbus.AutoRecovery .
CANbus.BusState (PROP) ¶ PROPERTY BusState : CL2.BUSSTATE Returns the current CANbus state. Only valid if at least one enabled CAN based stack is attached to this CANbus.
CANbus.NetId (PROP) ¶ PROPERTY FINAL NetId : USINT Returns the currently used Network ID. Network ID can be changed with CANbus_Diag.SetNetId if device diagnosis is activated (needs Reconfigure !).
CANbus.ResetBusAlarm (METH) ¶ METHOD ResetBusAlarm : BOOL Resets a bus alarm and returns TRUE in case of success. Note: Method is only working if there is at least one active CAN based stack below this CANbus. Resetting bus alarm will be done asynchronously in the attached CAN based stack. InOut: Scope Name Type Return ResetBusAlarm BOOL
CANbus_Diag (FB) ¶ FUNCTION_BLOCK CANbus_Diag EXTENDS CANbus IMPLEMENTS DED.IBus, DED.IReconfigureProvider Note Do not instantiate this function block! An implicit instance will be created for each CANbus in the device tree. Properties: AutoRecovery , inherited from CANbus Baudrate , inherited from CANbus BusAlarm , inherited from CANbus BusState , inherited from CANbus ChildNodeCount Connector Enable FirstChildNode Index IsRootNode NetId , inherited from CANbus NextSiblingNode ParentNode SiblingNodeCount Methods: SetBaudrate SetNetId GetBusInfo GetBusState GetQoS ResetBusAlarm , inherited from CANbus Structure: IBus GetBusInfo (Method) GetBusState (Method) GetQoS (Method) INode ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) SetBaudrate (Method) SetNetId (Method)
IBus ¶ Functions for getting bus information. GetBusInfo (Method) GetBusState (Method) GetQoS (Method)
INode ¶ Methods for traversing the device tree. ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)