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 CANBUS_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
95 cfg.stb = MIKROBUS( mikrobus, MIKROBUS_AN )
canbus_return_value_t
CAN Bus Click return value data.
Definition canbus.h:153
@ CANBUS_ERROR
Definition canbus.h:155
@ CANBUS_OK
Definition canbus.h:154
#define DRV_BUFFER_SIZE
CAN Bus driver buffer size.
Definition canbus.h:74
void canbus_cfg_setup(canbus_cfg_t *cfg)
CAN Bus configuration object setup function.
err_t canbus_generic_read(canbus_t *ctx, char *data_buf, uint16_t max_len)
CAN Bus data reading function.
err_t canbus_send_data(canbus_t *ctx, char *tx_data)
CAN Bus send data function.
err_t canbus_default_cfg(canbus_t *ctx)
CAN Bus default configuration function.
err_t canbus_set_high_speed_mode(canbus_t *ctx)
CAN Bus high speed mode function.
err_t canbus_init(canbus_t *ctx, canbus_cfg_t *cfg)
CAN Bus initialization function.
err_t canbus_set_low_current_standby_mode(canbus_t *ctx)
CAN Bus low current standby mode function.
err_t canbus_generic_write(canbus_t *ctx, char *data_buf, uint16_t len)
CAN Bus data writing function.
CAN Bus Click configuration object.
Definition canbus.h:126
uint32_t baud_rate
Definition canbus.h:140
bool uart_blocking
Definition canbus.h:141
uart_data_bits_t data_bit
Definition canbus.h:142
pin_name_t tx_pin
Definition canbus.h:130
pin_name_t rx_pin
Definition canbus.h:129
uart_stop_bits_t stop_bit
Definition canbus.h:144
uart_parity_t parity_bit
Definition canbus.h:143
pin_name_t stb
Definition canbus.h:134
CAN Bus Click context object.
Definition canbus.h:105
digital_out_t stb
Definition canbus.h:108
uart_t uart
Definition canbus.h:112