42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
65#define CANISOLATOR_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
67 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX )
74#define CANISOLATOR_RETVAL uint8_t
76#define CANISOLATOR_OK 0x00
77#define CANISOLATOR_INIT_ERROR 0xFF
84#define DRV_RX_BUFFER_SIZE 500
138 // End constants group
146 // End variable group
#define DRV_RX_BUFFER_SIZE
Definition canisolator.h:84
#define CANISOLATOR_RETVAL
Definition canisolator.h:74
void canisolator_generic_multi_read(canisolator_t *ctx, char *data_buf, uint8_t len)
Generic multi read function.
void canisolator_generic_single_write(canisolator_t *ctx, char tx_data)
Generic single write function.
void canisolator_generic_multi_write(canisolator_t *ctx, char *data_buf, uint8_t len)
Generic multi write function.
CANISOLATOR_RETVAL canisolator_init(canisolator_t *ctx, canisolator_cfg_t *cfg)
Initialization function.
char canisolator_generic_single_read(canisolator_t *ctx)
Generic single read function.
void canisolator_cfg_setup(canisolator_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition canisolator.h:113
uint32_t baud_rate
Definition canisolator.h:121
bool uart_blocking
Definition canisolator.h:122
uart_data_bits_t data_bit
Definition canisolator.h:123
pin_name_t tx_pin
Definition canisolator.h:117
pin_name_t rx_pin
Definition canisolator.h:116
uart_stop_bits_t stop_bit
Definition canisolator.h:125
uart_parity_t parity_bit
Definition canisolator.h:124
Click ctx object definition.
Definition canisolator.h:99
uart_t uart
Definition canisolator.h:102