smartbuck2 2.1.0.0
|
This file contains API for Smart Buck 2 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 | smartbuck2_t |
Smart Buck 2 Click context object. More... | |
struct | smartbuck2_cfg_t |
Smart Buck 2 Click configuration object. More... | |
Enumerations | |
enum | smartbuck2_return_value_t { SMARTBUCK2_OK = 0 , SMARTBUCK2_ERROR = -1 } |
Smart Buck 2 Click return value data. More... | |
Functions | |
void | smartbuck2_cfg_setup (smartbuck2_cfg_t *cfg) |
Smart Buck 2 configuration object setup function. | |
err_t | smartbuck2_init (smartbuck2_t *ctx, smartbuck2_cfg_t *cfg) |
Smart Buck 2 initialization function. | |
err_t | smartbuck2_default_cfg (smartbuck2_t *ctx) |
Smart Buck 2 default configuration function. | |
err_t | smartbuck2_generic_write (smartbuck2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Smart Buck 2 I2C writing function. | |
err_t | smartbuck2_generic_read (smartbuck2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Smart Buck 2 I2C reading function. | |
err_t | smartbuck2_set_voltage (smartbuck2_t *ctx, uint16_t vout_mv) |
Smart Buck 2 set voltage function. | |
err_t | smartbuck2_get_voltage (smartbuck2_t *ctx, uint16_t *vout_mv) |
Smart Buck 2 get voltage function. | |
err_t | smartbuck2_set_op_mode (smartbuck2_t *ctx, uint8_t op_mode) |
Smart Buck 2 set operation mode function. | |
err_t | smartbuck2_get_op_mode (smartbuck2_t *ctx, uint8_t *op_mode) |
Smart Buck 2 get operation mode function. | |
err_t | smartbuck2_set_ctrl (smartbuck2_t *ctx, uint8_t ctrl) |
Smart Buck 2 set control function. | |
err_t | smartbuck2_set_temp_shd (smartbuck2_t *ctx, uint8_t temp_enable) |
Smart Buck 2 set temperature shutdown function. | |
uint8_t | smartbuck2_check_temp_warning (smartbuck2_t *ctx) |
Smart Buck 2 check temperature warning function. | |
err_t | smartbuck2_set_vtg_ramp_timing (smartbuck2_t *ctx, uint8_t slope) |
Smart Buck 2 set voltage ramp timing function. | |
err_t | smartbuck2_get_device_id (smartbuck2_t *ctx, uint8_t *ven_id, uint8_t *part_num_id, uint8_t *chip_id) |
Smart Buck 2 get device ID function. | |
This file contains API for Smart Buck 2 Click Driver.