Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litesom:devicetree:can [2017/06/09 22:02]
filug [SocketCAN API]
litesom:devicetree:can [2017/06/09 22:14]
filug [C/C++ API]
Line 213: Line 213:
 </code> </code>
  
-===== SocketCAN API =====+===== C/C++ API =====
  
 In case when you want to develop your own application to access CAN bus via ''SocketCAN'' please check [[https://www.kernel.org/doc/Documentation/networking/can.txt|Section 4 in SocketCAN readme]] file. In case when you want to develop your own application to access CAN bus via ''SocketCAN'' please check [[https://www.kernel.org/doc/Documentation/networking/can.txt|Section 4 in SocketCAN readme]] file.
Line 255: Line 255:
 write(s, &frame, sizeof(frame)); write(s, &frame, sizeof(frame));
 </code> </code>
 +
 +===== Python API =====
 +
 +Via [[https://buildroot.org|Buildroot]] ''BR2_PACKAGE_PYTHON_CAN'' option located in
 +<code>
 +-> Target packages
 +  -> Interpreter languages and scripting
 +    -> External python modules
 +      -> python-can
 +</code>
 +you can build ''python-can'' Python3 package.
 +
 +Please read [[https://python-can.readthedocs.io/en/stable/|python-can documentation]] to check how to access CAN from python based application.
  • litesom/devicetree/can.txt
  • Last modified: 2021/05/12 10:08
  • by kateryna.kozakova