boost 2.0.0.0
boost.h File Reference

This file contains API for BOOST Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  boost_dac_cfg_t
 Click DAC configuration structure definition. More...
 
struct  boost_t
 Click ctx object definition. More...
 
struct  boost_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BOOST_MAP_MIKROBUS(cfg, mikrobus)
 
#define BOOST_OK   0
 
#define BOOST_ERROR   (-1)
 
#define BOOST_CFG_VREF_BUFFERED   1
 
#define BOOST_CFG_VREF_UNBUFFERED   0
 
#define BOOST_CFG_GAIN_1X   1
 
#define BOOST_CFG_GAIN_2X   0
 
#define BOOST_CFG_POWER_OUT_ON   1
 
#define BOOST_CFG_POWER_OUT_OFF   0
 

Functions

void boost_cfg_setup (boost_cfg_t *cfg)
 Config Object Initialization function.
 
err_t boost_init (boost_t *ctx, boost_cfg_t *cfg)
 Initialization function.
 
void boost_device_enable (boost_t *ctx)
 Device Enable function.
 
void boost_device_disable (boost_t *ctx)
 Device Disable function.
 
void boost_dac_setup (boost_t *ctx, boost_dac_cfg_t *cfg)
 DAC Setup function.
 
err_t boost_dac_write (boost_t *ctx, uint16_t dac_val)
 DAC Write function.
 
float boost_vout_read (boost_t *ctx)
 VOUT Read function.
 

Detailed Description

This file contains API for BOOST Click driver.