binhonova 2.1.0.0
binhonova.h File Reference

This file contains API for Binho Nova 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  binhonova_t
 Binho Nova Click context object. More...
 
struct  binhonova_cfg_t
 Binho Nova Click configuration object. More...
 

Macros

#define BINHONOVA_TX_DRV_BUFFER_SIZE   100
 Binho Nova driver buffer size.
 
#define BINHONOVA_RX_DRV_BUFFER_SIZE   300
 
#define BINHONOVA_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  binhonova_return_value_t { BINHONOVA_OK = 0 , BINHONOVA_ERROR = -1 }
 Binho Nova Click return value data. More...
 

Functions

void binhonova_cfg_setup (binhonova_cfg_t *cfg)
 Binho Nova configuration object setup function.
 
err_t binhonova_init (binhonova_t *ctx, binhonova_cfg_t *cfg)
 Binho Nova initialization function.
 
err_t binhonova_generic_write (binhonova_t *ctx, uint8_t *data_in, uint16_t len)
 Binho Nova data writing function.
 
err_t binhonova_generic_read (binhonova_t *ctx, uint8_t *data_out, uint16_t len)
 Binho Nova data reading function.
 

Detailed Description

This file contains API for Binho Nova Click Driver.

Enumeration Type Documentation

◆ binhonova_return_value_t

Binho Nova Click return value data.

Predefined enum values for driver return values.

Enumerator
BINHONOVA_OK 
BINHONOVA_ERROR