Sample Programs

Basic usage and frequently used techniques are provided as sample programs with source code.
The sample program has been created as simple as possible, so please use it when programming.

 

Folder structure

The sample program folder is configured as follows in the location where API-CAN(LNX) is installed.

User Directory/contec/ccan
      |
      |________samples
                 |
                 |_______jp
                         |_______inc                                Include files for each language
                         |
                         |_______gcc                               gcc version
                         |       |_______console                 Console samples
                         |
                         |_______python                          python version
                                 |_______console                 Console samples

 

List of sample programs

In the console folder of each language, sample programs are stored with the following configuration

Development Language : gcc, python

Function Category

Project Name

Sample Name

CAN communication sample

can_communication

CAN Communication Sample

can_communication_callback

CAN Communication Callback Sample