buck7 2.0.0.0
buck7.h File Reference

This file contains API for BUCK 7 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  buck7_t
 Click ctx object definition. More...
 
struct  buck7_cfg_t
 Click configuration structure definition. More...
 

Macros

#define BUCK7_MAP_MIKROBUS(cfg, mikrobus)
 
#define BUCK7_RETVAL   uint8_t
 
#define BUCK7_OK   0x00
 
#define BUCK7_INIT_ERROR   0xFF
 
#define BUCK7_MODE_DCM   0x01
 
#define BUCK7_MODE_PWM   0x00
 
#define BUCK7_OUT_VOLTAGE_3_3V   0x0FAF
 
#define BUCK7_OUT_VOLTAGE_5V   0x0EA6
 
#define BUCK7_OUT_VOLTAGE_6V   0x0E10
 
#define BUCK7_OUT_VOLTAGE_7V   0x0D7A
 
#define BUCK7_OUT_VOLTAGE_8V   0x0CE4
 
#define BUCK7_OUT_VOLTAGE_9V   0x0C4E
 
#define BUCK7_OUT_VOLTAGE_10V   0x0BB8
 
#define BUCK7_OUT_VOLTAGE_11V   0x0B22
 
#define BUCK7_OUT_VOLTAGE_12V   0x0A8C
 
#define BUCK7_OUT_VOLTAGE_13V   0x09F6
 
#define BUCK7_OUT_VOLTAGE_14V   0x0960
 
#define BUCK7_OUT_VOLTAGE_15V   0x08CA
 
#define BUCK7_OUT_VOLTAGE_16V   0x0834
 
#define BUCK7_OUT_VOLTAGE_17V   0x079E
 
#define BUCK7_OUT_VOLTAGE_18V   0x0708
 
#define BUCK7_OUT_VOLTAGE_19V   0x0672
 
#define BUCK7_OUT_VOLTAGE_20V   0x059C
 
#define BUCK7_OUT_VOLTAGE_21V   0x0546
 
#define BUCK7_OUT_VOLTAGE_22V   0x04B0
 
#define BUCK7_OUT_VOLTAGE_23V   0x041A
 
#define BUCK7_OUT_VOLTAGE_24V   0x0384
 
#define BUCK7_OUT_VOLTAGE_25V   0x02EE
 
#define BUCK7_OUT_VOLTAGE_26V   0x0244
 
#define BUCK7_OUT_VOLTAGE_27V   0x0190
 
#define BUCK7_OUT_VOLTAGE_28V   0x00FA
 
#define BUCK7_OUT_VOLTAGE_29V   0x0096
 
#define BUCK7_OUT_VOLTAGE_30V   0x0000
 

Functions

void buck7_cfg_setup (buck7_cfg_t *cfg)
 Config Object Initialization function.
 
BUCK7_RETVAL buck7_init (buck7_t *ctx, buck7_cfg_t *cfg)
 Initialization function.
 
void buck7_default_cfg (buck7_t *ctx)
 Click Default Configuration function.
 
void buck7_generic_transfer (buck7_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void buck7_set_output_voltage (buck7_t *ctx, uint16_t voltage)
 Function for settings output voltage.
 
void buck7_enable (buck7_t *ctx)
 Function for enable chip.
 
void buck7_set_mode (buck7_t *ctx, uint8_t mode)
 Function for settings chip mode.
 
uint8_t buck7_get_res_state (buck7_t *ctx)
 Function for read RES state.
 

Detailed Description

This file contains API for BUCK 7 Click driver.