ftdi 2.1.0.0
ftdi.h File Reference

This file contains API for FTDI Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"

Go to the source code of this file.

Data Structures

struct  ftdi_t
 FTDI Click context object. More...
 
struct  ftdi_cfg_t
 FTDI Click configuration object. More...
 

Macros

#define FTDI_TX_DRV_BUFFER_SIZE   100
 FTDI driver buffer size.
 
#define FTDI_RX_DRV_BUFFER_SIZE   300
 
#define FTDI_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  ftdi_return_value_t { FTDI_OK = 0 , FTDI_ERROR = -1 }
 FTDI Click return value data. More...
 

Functions

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.
 
err_t ftdi_generic_read (ftdi_t *ctx, uint8_t *data_out, uint16_t len)
 FTDI data reading function.
 

Detailed Description

This file contains API for FTDI Click Driver.

Enumeration Type Documentation

◆ ftdi_return_value_t

FTDI Click return value data.

Predefined enum values for driver return values.

Enumerator
FTDI_OK 
FTDI_ERROR