42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
66#define RS4853_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
68 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX )
75#define RS4853_RETVAL uint8_t
78#define RS4853_INIT_ERROR 0xFF
85#define DRV_RX_BUFFER_SIZE 500
#define DRV_RX_BUFFER_SIZE
Definition rs4853.h:85
#define RS4853_RETVAL
Definition rs4853.h:75
int32_t rs4853_generic_read(rs4853_t *ctx, char *data_buf, uint16_t max_len)
Generic read function.
RS4853_RETVAL rs4853_init(rs4853_t *ctx, rs4853_cfg_t *cfg)
Initialization function.
void rs4853_generic_write(rs4853_t *ctx, char *data_buf, uint16_t len)
Generic write function.
void rs4853_cfg_setup(rs4853_cfg_t *cfg)
Config Object Initialization function.
uint8_t rs4853_error_t
Error type.
Definition rs4853.h:131
Click configuration structure definition.
Definition rs4853.h:112
uint32_t baud_rate
Definition rs4853.h:120
bool uart_blocking
Definition rs4853.h:121
uart_data_bits_t data_bit
Definition rs4853.h:122
pin_name_t tx_pin
Definition rs4853.h:116
pin_name_t rx_pin
Definition rs4853.h:115
uart_stop_bits_t stop_bit
Definition rs4853.h:124
uart_parity_t parity_bit
Definition rs4853.h:123
Click ctx object definition.
Definition rs4853.h:98
uart_t uart
Definition rs4853.h:101