Module CAN

The class that's used to create and manage a CAN bus connection.

Info:

  • Copyright: Debaru Kft. 2017
  • Release:
  • License: GNU
  • Author: Debaru Kft

Functions

CAN () Creates a CAN instance.
open () Opens the CAN bus communication.
close () Closes the CAN bus communication.
read (data) Reads the specified data.
write (can_id, data) Writes the specified data to the device with the specified can_id.

Fields

bitrate Represents the communication speed.


Functions

CAN ()
Creates a CAN instance.
open ()
Opens the CAN bus communication.
close ()
Closes the CAN bus communication.
read (data)
Reads the specified data.

Parameters:

Returns:

    int (-1: error, 0:timeout, >0: CANID)
write (can_id, data)
Writes the specified data to the device with the specified can_id.

Parameters:

Returns:

    int (-1: error)

Fields

bitrate
Represents the communication speed.
  • type int (default: 500000)
generated by LDoc 1.4.6 Last updated 2023-09-25 09:31:08