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 BINHONOVA_TX_DRV_BUFFER_SIZE 100
75#define BINHONOVA_RX_DRV_BUFFER_SIZE 300
93#define BINHONOVA_MAP_MIKROBUS( cfg, mikrobus ) \
94 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
95 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX );
binhonova_return_value_t
Binho Nova Click return value data.
Definition binhonova.h:139
@ BINHONOVA_OK
Definition binhonova.h:140
@ BINHONOVA_ERROR
Definition binhonova.h:141
#define BINHONOVA_TX_DRV_BUFFER_SIZE
Binho Nova driver buffer size.
Definition binhonova.h:74
#define BINHONOVA_RX_DRV_BUFFER_SIZE
Definition binhonova.h:75
err_t binhonova_init(binhonova_t *ctx, binhonova_cfg_t *cfg)
Binho Nova initialization function.
void binhonova_cfg_setup(binhonova_cfg_t *cfg)
Binho Nova configuration object setup function.
err_t binhonova_generic_read(binhonova_t *ctx, uint8_t *data_out, uint16_t len)
Binho Nova data reading function.
err_t binhonova_generic_write(binhonova_t *ctx, uint8_t *data_in, uint16_t len)
Binho Nova data writing function.
Binho Nova Click configuration object.
Definition binhonova.h:120
uint32_t baud_rate
Definition binhonova.h:126
bool uart_blocking
Definition binhonova.h:127
uart_data_bits_t data_bit
Definition binhonova.h:128
pin_name_t tx_pin
Definition binhonova.h:123
pin_name_t rx_pin
Definition binhonova.h:122
uart_stop_bits_t stop_bit
Definition binhonova.h:130
uart_parity_t parity_bit
Definition binhonova.h:129
Binho Nova Click context object.
Definition binhonova.h:105
uart_t uart
Definition binhonova.h:107