42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
67#define TRF_MAP_MIKROBUS( cfg, mikrobus ) \
68 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
69 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX );
76#define TRF_RETVAL uint8_t
79#define TRF_INIT_ERROR 0xFF
86#define DRV_RX_BUFFER_SIZE 500
140 // End constants group
148 // End variable group
#define DRV_RX_BUFFER_SIZE
Definition trf.h:86
#define TRF_RETVAL
Definition trf.h:76
void trf_generic_single_write(trf_t *ctx, char tx_data)
Generic single write function.
void trf_generic_multi_write(trf_t *ctx, char *data_buf, uint8_t len)
Generic multi write function.
TRF_RETVAL trf_init(trf_t *ctx, trf_cfg_t *cfg)
Initialization function.
void trf_generic_multi_read(trf_t *ctx, char *data_buf, uint8_t len)
Generic multi read function.
char trf_generic_single_read(trf_t *ctx)
Generic single read function.
void trf_cfg_setup(trf_cfg_t *cfg)
Config Object Initialization function.
uint8_t byte_ready()
Check for new byte received.
Click configuration structure definition.
Definition trf.h:115
uint32_t baud_rate
Definition trf.h:123
bool uart_blocking
Definition trf.h:124
uart_data_bits_t data_bit
Definition trf.h:125
pin_name_t tx_pin
Definition trf.h:119
pin_name_t rx_pin
Definition trf.h:118
uart_stop_bits_t stop_bit
Definition trf.h:127
uart_parity_t parity_bit
Definition trf.h:126
Click ctx object definition.
Definition trf.h:100
uart_t uart
Definition trf.h:104