Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Before the application have access to the CAN bus, the CAN controller must be configured with the needed communication parameters.


Panel
borderWidth0
titleFigure - Enabling the CAN bus

Image Added


  1. The function CanBusEnable() is called with an application specific CAN bus configuration parameter structure (see documentation of structure CANBUS_PARA).
  2. The bus node in the configuration parameter structure selects the object in the CAN bus table.
  3. The given CAN configuration parameter structure is checked to contain plausible data and function pointers to the lowlevel device drivers. If this check was successful, the structure is linked to the CAN bus object.
  4. The function pointers to the lowlevel device drivers are used to access the CAN controller. This function uses Init(), Open() and IoCtl() to initialize the CAN controller. In case that the baudrate is configured to 0 then the CAN controller will not be set to active state.

...