canisolator 2.0.0.0
|
CAN Isolator click provides isolated CAN communication. It carries the ADM3053 signal and power isolated CAN transceiver with an integrated isolated DC-to-DC converter.
We provide a library for the CanIsolator 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for CanIsolator Click driver.
- Initialization function.void canisolator_cfg_setup ( canisolator_cfg_t *cfg );
CANISOLATOR_RETVAL canisolator_init ( canisolator_t *ctx, canisolator_cfg_t *cfg );
void canisolator_default_cfg ( canisolator_t *ctx );
- Generic multi read function.void canisolator_generic_multi_write ( canisolator_t *ctx, canisolator_data_t *data_buf, uart_length_t len );
void canisolator_generic_multi_read ( canisolator_t *ctx, canisolator_data_t *data_buf, uart_length_t len );
canisolator_data_t canisolator_generic_single_read ( canisolator_t *ctx );
void canisolator_generic_single_write ( canisolator_t *ctx, canisolator_data_t tx_data );
This is a example which demonstrates the use of Can Isolator Click board.
The demo application is composed of two sections :
Configuring clicks and log objects.
Checks if new data byte has received in RX buffer ( ready for reading ) and if ready than reads one byte from RX buffer. In the second case, the application task writes message data via UART. Results are being sent to the Usart Terminal where you can track their changes.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.