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 FTDI_TX_DRV_BUFFER_SIZE 100
75#define FTDI_RX_DRV_BUFFER_SIZE 300
93#define FTDI_MAP_MIKROBUS( cfg, mikrobus ) \
94 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
95 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX );
ftdi_return_value_t
FTDI Click return value data.
Definition ftdi.h:139
@ FTDI_ERROR
Definition ftdi.h:141
@ FTDI_OK
Definition ftdi.h:140
#define FTDI_TX_DRV_BUFFER_SIZE
FTDI driver buffer size.
Definition ftdi.h:74
#define FTDI_RX_DRV_BUFFER_SIZE
Definition ftdi.h:75
err_t ftdi_generic_read(ftdi_t *ctx, uint8_t *data_out, uint16_t len)
FTDI data reading function.
void ftdi_cfg_setup(ftdi_cfg_t *cfg)
FTDI configuration object setup function.
err_t ftdi_init(ftdi_t *ctx, ftdi_cfg_t *cfg)
FTDI initialization function.
err_t ftdi_generic_write(ftdi_t *ctx, uint8_t *data_in, uint16_t len)
FTDI data writing function.
FTDI Click configuration object.
Definition ftdi.h:120
uint32_t baud_rate
Definition ftdi.h:126
bool uart_blocking
Definition ftdi.h:127
uart_data_bits_t data_bit
Definition ftdi.h:128
pin_name_t tx_pin
Definition ftdi.h:123
pin_name_t rx_pin
Definition ftdi.h:122
uart_stop_bits_t stop_bit
Definition ftdi.h:130
uart_parity_t parity_bit
Definition ftdi.h:129
FTDI Click context object.
Definition ftdi.h:105
uart_t uart
Definition ftdi.h:107