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
| bitrate |
Represents the communication speed. |
-
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)
-
bitrate
-
Represents the communication speed.
- type
int (default: 500000)