39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
74#define DRV_BUFFER_SIZE 200
92#define CANISOLATOR2_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX );
canisolator2_return_value_t
CAN Isolator 2 Click return value data.
Definition canisolator2.h:142
@ CANISOLATOR2_ERROR
Definition canisolator2.h:144
@ CANISOLATOR2_OK
Definition canisolator2.h:143
#define DRV_BUFFER_SIZE
CAN Isolator 2 driver buffer size.
Definition canisolator2.h:74
err_t canisolator2_generic_write(canisolator2_t *ctx, char *data_buf, uint16_t len)
CAN Isolator 2 data writing function.
err_t canisolator2_send_data(canisolator2_t *ctx, char *tx_data)
CAN Isolator 2 send data function.
err_t canisolator2_init(canisolator2_t *ctx, canisolator2_cfg_t *cfg)
CAN Isolator 2 initialization function.
err_t canisolator2_generic_read(canisolator2_t *ctx, char *data_buf, uint16_t max_len)
CAN Isolator 2 data reading function.
void canisolator2_cfg_setup(canisolator2_cfg_t *cfg)
CAN Isolator 2 configuration object setup function.
CAN Isolator 2 Click configuration object.
Definition canisolator2.h:121
uint32_t baud_rate
Definition canisolator2.h:129
bool uart_blocking
Definition canisolator2.h:130
uart_data_bits_t data_bit
Definition canisolator2.h:131
pin_name_t tx_pin
Definition canisolator2.h:125
pin_name_t rx_pin
Definition canisolator2.h:124
uart_stop_bits_t stop_bit
Definition canisolator2.h:133
uart_parity_t parity_bit
Definition canisolator2.h:132
CAN Isolator 2 Click context object.
Definition canisolator2.h:104
uart_t uart
Definition canisolator2.h:107