ft 2.0.0.0
|
This file contains API for FT 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 | ft_t |
Click ctx object definition. More... | |
struct | ft_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | FT_MAP_MIKROBUS(cfg, mikrobus) |
#define | FT_OK 0 |
#define | FT_ERROR -1 |
#define | FT_DRV_HEADER_DATA 0x40 |
#define | FT_DRV_HEADER_LEN 5 |
#define | FT_DRV_DATA_CRC_LEN 2 |
#define | FT_DRV_NEW_DATA_AVAILABLE 1 |
#define | FT_DRV_CONFIRMED_PACKAGE 1 |
#define | FT_DRV_CHECK_HEADER_DATA_1 0 |
#define | FT_DRV_CHECK_HEADER_DATA_2 1 |
#define | FT_DRV_CHECK_LEN_DATA_LSB 2 |
#define | FT_DRV_CHECK_LEN_DATA_MSB 3 |
#define | FT_NEW_DATA_AVAILABLE 1 |
#define | FT_NEW_DATA_NOT_AVAILABLE 0 |
#define | FT_DRV_BUFFER_SIZE ( FT_MAX_DATA_BUFFER + FT_DRV_HEADER_LEN + FT_DRV_DATA_CRC_LEN ) |
#define | FT_MAX_DATA_BUFFER 256 |
Functions | |
void | ft_cfg_setup (ft_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | ft_init (ft_t *ctx, ft_cfg_t *cfg) |
Initialization function. | |
void | ft_generic_write (ft_t *ctx, uint8_t *data_buf, uint16_t len) |
Generic write function. | |
int32_t | ft_generic_read (ft_t *ctx, uint8_t *data_buf, uint16_t max_len) |
Generic read function. | |
void | ft_set_rst_pin (ft_t *ctx, uint8_t state) |
Set RST pin state. | |
void | ft_send_package (ft_t *ctx, uint8_t *data_buf, uint16_t len, uint8_t queue) |
Sends full package to other module. | |
uint8_t | ft_get_data_status (ft_t *ctx) |
Gets current status of data. | |
uint16_t | ft_get_data (ft_t *ctx, uint8_t *data_buf) |
Gets new received data. | |
void | ft_isr_parser (ft_t *ctx, uint8_t rsp_data) |
Collecting and preserving data received via uart interrupt routine. | |
This file contains API for FT Click driver.