buck6 2.0.0.0
buck6.h File Reference

This file contains API for BUCK 6 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  buck6_t
 Click ctx object definition. More...
 
struct  buck6_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BUCK6_MAP_MIKROBUS(cfg, mikrobus)
 
#define BUCK6_RETVAL   uint8_t
 
#define BUCK6_OK   0x00
 
#define BUCK6_INIT_ERROR   0xFF
 
#define BUCK6_MAX_RANGE_1000mV   0xFA
 
#define BUCK6_MAX_RANGE_1500mV   0xF4
 
#define BUCK6_MAX_RANGE_2000mV   0xF1
 
#define BUCK6_MAX_RANGE_2500mV   0xEE
 
#define BUCK6_MAX_RANGE_3000mV   0xEA
 
#define BUCK6_MAX_RANGE_3500mV   0xE7
 
#define BUCK6_MAX_RANGE_4000mV   0xE4
 
#define BUCK6_MAX_RANGE_4500mV   0xE1
 
#define BUCK6_MAX_RANGE_5000mV   0xDE
 
#define BUCK6_MAX_RANGE_5500mV   0xDB
 
#define BUCK6_MAX_RANGE_6000mV   0xD8
 
#define BUCK6_MAX_RANGE_6500mV   0xD4
 
#define BUCK6_MAX_RANGE_7000mV   0xD1
 
#define BUCK6_MAX_RANGE_7500mV   0xCF
 
#define BUCK6_MAX_RANGE_8000mV   0xCB
 
#define BUCK6_MAX_RANGE_8500mV   0xC8
 
#define BUCK6_MAX_RANGE_9000mV   0xC5
 
#define BUCK6_MAX_RANGE_9500mV   0xC2
 
#define BUCK6_MAX_RANGE_10000mV   0xBF
 
#define BUCK6_MAX_RANGE_10500mV   0xBC
 
#define BUCK6_MAX_RANGE_11000mV   0xB9
 
#define BUCK6_MAX_RANGE_11500mV   0xB6
 
#define BUCK6_MAX_RANGE_12000mV   0xB2
 
#define BUCK6_MAX_RANGE_12500mV   0xAF
 
#define BUCK6_MAX_RANGE_13000mV   0xAB
 
#define BUCK6_MAX_RANGE_13500mV   0xA9
 
#define BUCK6_MAX_RANGE_14000mV   0xA6
 
#define BUCK6_MAX_RANGE_14500mV   0xA3
 
#define BUCK6_MAX_RANGE_15000mV   0xA0
 
#define BUCK6_MAX_RANGE_15500mV   0x9C
 
#define BUCK6_MAX_RANGE_16000mV   0x99
 
#define BUCK6_MAX_RANGE_16500mV   0x96
 
#define BUCK6_MAX_RANGE_17000mV   0x93
 
#define BUCK6_MAX_RANGE_17500mV   0x90
 
#define BUCK6_MAX_RANGE_18000mV   0x8D
 
#define BUCK6_MAX_RANGE_18500mV   0x8A
 
#define BUCK6_MAX_RANGE_19000mV   0x87
 
#define BUCK6_MAX_RANGE_19500mV   0x84
 
#define BUCK6_MAX_RANGE_20000mV   0x80
 
#define BUCK6_SLEEP_MODE   0x00
 
#define BUCK6_ACTIVE_MODE   0x01
 

Functions

void buck6_cfg_setup (buck6_cfg_t *cfg)
 Config Object Initialization function.
 
BUCK6_RETVAL buck6_init (buck6_t *ctx, buck6_cfg_t *cfg)
 Initialization function.
 
void buck6_generic_write (buck6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void buck6_generic_read (buck6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint8_t buck6_get_rst (buck6_t *ctx)
 
void buck6_set_mode (buck6_t *ctx, uint8_t mode)
 Set mode.
 
void buck6_set_max_voltage (buck6_t *ctx, uint8_t voltage)
 Set maximum voltage.
 

Detailed Description

This file contains API for BUCK 6 Click driver.