boost4 2.0.0.0
boost4.h File Reference

This file contains API for Boost 4 Click driver. More...

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

Go to the source code of this file.

Data Structures

struct  boost4_t
 Click ctx object definition. More...
 
struct  boost4_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BOOST4_MAP_MIKROBUS(cfg, mikrobus)
 
#define BOOST4_RETVAL   uint8_t
 
#define BOOST4_OK   0x00
 
#define BOOST4_INIT_ERROR   0xFF
 
#define BOOST4_START_CMD   0x70
 
#define BOOST4_VOUT_MIN   1500
 
#define BOOST4_VOUT_2_5   1330
 
#define BOOST4_VOUT_3   1085
 
#define BOOST4_VOUT_3_5   840
 
#define BOOST4_VOUT_4   595
 
#define BOOST4_VOUT_4_5   350
 
#define BOOST4_VOUT_5   105
 
#define BOOST4_VOUT_MAX   0
 
#define BOOST4_12_BIT   0x0FFF
 
#define BOOST4_ENABLE   1
 
#define BOOST4_DISABLE   0
 

Functions

void boost4_cfg_setup (boost4_cfg_t *cfg)
 Config Object Initialization function.
 
BOOST4_RETVAL boost4_init (boost4_t *ctx, boost4_cfg_t *cfg)
 Initialization function.
 
void boost4_enable (boost4_t *ctx, uint8_t state)
 Enable device function.
 
void boost4_set_out_voltage (boost4_t *ctx, uint16_t value)
 Set output voltage function.
 

Detailed Description

This file contains API for Boost 4 Click driver.