canbus 2.0.0.0
|
CAN Bus Click is a compact add-on board that provides a link between the CAN protocol controller and the physical wires of the bus lines in a control area network (CAN). This board features the MAX13054, an industry-standard, high-speed CAN transceiver with extended ±80V fault protection from Maxim Integrated.
We provide a library for the CanBus Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for CanBus Click driver.
canbus_cfg_setup
Config Object Initialization function. canbus_init
Initialization function. canbus_default_cfg
Click Default Configuration function. canbus_send_data
CAN Bus send data function. canbus_set_high_speed_mode
CAN Bus high speed mode function. canbus_set_low_current_standby_mode
CAN Bus low current standby mode function. This library contains API for CAN Bus click boardâ„¢. This example transmits/receives and processes data from CAN Bus click. The library initializes and defines the UART bus drivers to transmit or receive data.
The demo application is composed of two sections :
Initializes driver, wake-up module, and set high-speed operation mode.
Transmitter/Receiver task depends on uncommented code. Receiver logging each received byte to the UART for data logging, while transmitted send messages every 2 seconds.
canbus_clear_app_buf
Function clears memory of app_buf. canbus_process
The general process of collecting presponce that a module sends. The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all Mikroelektronika compilers.