41#ifdef PREINIT_SUPPORTED
45#ifdef MikroCCoreVersion
46 #if MikroCCoreVersion >= 1
51#include "drv_digital_out.h"
52#include "drv_digital_in.h"
66#define IQRF2_MAP_MIKROBUS( cfg, mikrobus ) \
67 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
68 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX );
75#define IQRF2_RETVAL uint8_t
78#define IQRF2_INIT_ERROR 0xFF
85#define DRV_RX_BUFFER_SIZE 500
#define DRV_RX_BUFFER_SIZE
Definition iqrf2.h:85
#define IQRF2_RETVAL
Definition iqrf2.h:75
int32_t iqrf2_generic_read(iqrf2_t *ctx, char *data_buf, uint16_t max_len)
Generic read function.
void iqrf2_generic_write(iqrf2_t *ctx, char *data_buf, uint16_t len)
Generic write function.
IQRF2_RETVAL iqrf2_init(iqrf2_t *ctx, iqrf2_cfg_t *cfg)
Initialization function.
void iqrf2_cfg_setup(iqrf2_cfg_t *cfg)
Config Object Initialization function.
uint8_t iqrf2_error_t
Error type.
Definition iqrf2.h:131
Click configuration structure definition.
Definition iqrf2.h:112
uint32_t baud_rate
Definition iqrf2.h:120
bool uart_blocking
Definition iqrf2.h:121
uart_data_bits_t data_bit
Definition iqrf2.h:122
pin_name_t tx_pin
Definition iqrf2.h:116
pin_name_t rx_pin
Definition iqrf2.h:115
uart_stop_bits_t stop_bit
Definition iqrf2.h:124
uart_parity_t parity_bit
Definition iqrf2.h:123
Click ctx object definition.
Definition iqrf2.h:98
uart_t uart
Definition iqrf2.h:101