39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
73#define CANFD7_STANDBY_ON 0x01
74#define CANFD7_STANDBY_OFF 0x00
81#define CANFD7_TX_DRV_BUFFER_SIZE 100
82#define CANFD7_RX_DRV_BUFFER_SIZE 300
100#define CANFD7_MAP_MIKROBUS( cfg, mikrobus ) \
101 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
102 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
103 cfg.stb = MIKROBUS( mikrobus, MIKROBUS_RST )
canfd7_return_value_t
CAN FD 7 Click return value data.
Definition canfd7.h:153
@ CANFD7_OK
Definition canfd7.h:154
@ CANFD7_ERROR
Definition canfd7.h:155
#define CANFD7_TX_DRV_BUFFER_SIZE
CAN FD 7 driver buffer size.
Definition canfd7.h:81
#define CANFD7_RX_DRV_BUFFER_SIZE
Definition canfd7.h:82
void canfd7_cfg_setup(canfd7_cfg_t *cfg)
CAN FD 7 configuration object setup function.
err_t canfd7_generic_write(canfd7_t *ctx, uint8_t *data_in, uint16_t len)
CAN FD 7 data writing function.
void canfd7_set_stb_pin(canfd7_t *ctx, uint8_t pin_state)
CAN FD 7 set STB pin function.
err_t canfd7_generic_read(canfd7_t *ctx, uint8_t *data_out, uint16_t len)
CAN FD 7 data reading function.
void canfd7_default_cfg(canfd7_t *ctx)
CAN FD 7 default configuration function.
err_t canfd7_init(canfd7_t *ctx, canfd7_cfg_t *cfg)
CAN FD 7 initialization function.
CAN FD 7 Click configuration object.
Definition canfd7.h:131
uint32_t baud_rate
Definition canfd7.h:140
bool uart_blocking
Definition canfd7.h:141
uart_data_bits_t data_bit
Definition canfd7.h:142
pin_name_t tx_pin
Definition canfd7.h:134
pin_name_t rx_pin
Definition canfd7.h:133
uart_stop_bits_t stop_bit
Definition canfd7.h:144
uart_parity_t parity_bit
Definition canfd7.h:143
pin_name_t stb
Definition canfd7.h:137
CAN FD 7 Click context object.
Definition canfd7.h:113
digital_out_t stb
Definition canfd7.h:115
uart_t uart
Definition canfd7.h:118