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 RS4853V3_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
95 cfg.rw = MIKROBUS( mikrobus, MIKROBUS_PWM )
#define DRV_BUFFER_SIZE
RS485 3V3 driver buffer size.
Definition rs4853v3.h:74
err_t rs4853v3_init(rs4853v3_t *ctx, rs4853v3_cfg_t *cfg)
RS485 3V3 initialization function.
void rs4853v3_cfg_setup(rs4853v3_cfg_t *cfg)
RS485 3V3 configuration object setup function.
void rs4853v3_send_command(rs4853v3_t *ctx, char *command)
Send command.
void rs4853v3_generic_write(rs4853v3_t *ctx, char *data_buf, uint16_t len)
RS485 3V3 data writing function.
err_t rs4853v3_generic_read(rs4853v3_t *ctx, char *data_buf, uint16_t max_len)
RS485 3V3 data reading function.
rs4853v3_return_value_t
RS485 3V3 Click return value data.
Definition rs4853v3.h:151
@ RS4853V3_OK
Definition rs4853v3.h:152
@ RS4853V3_ERROR
Definition rs4853v3.h:153
RS485 3V3 Click configuration object.
Definition rs4853v3.h:126
uint32_t baud_rate
Definition rs4853v3.h:138
bool uart_blocking
Definition rs4853v3.h:139
uart_data_bits_t data_bit
Definition rs4853v3.h:140
pin_name_t tx_pin
Definition rs4853v3.h:130
pin_name_t rx_pin
Definition rs4853v3.h:129
uart_stop_bits_t stop_bit
Definition rs4853v3.h:142
uart_parity_t parity_bit
Definition rs4853v3.h:141
pin_name_t rw
Definition rs4853v3.h:134
RS485 3V3 Click context object.
Definition rs4853v3.h:105
uart_t uart
Definition rs4853v3.h:112
digital_out_t rw
Definition rs4853v3.h:108