Disabling the CAN Bus
To stop or reconfigure the CAN bus communication, the CAN controller must be stopped with the corresponding bus identifier.
Figure - Disabling the CAN bus
- The function
CanBusDisable()
is called with the unique CAN bus identifier which selects the object in the CAN bus table - After checking, that the CAN bus object is in use, the lowlevel device driver functions
IoCtl()
andClose()
are used to set the bus in passive mode and free the device lock. - The object link to the configuration parameter structure is removed.