|
smartbuck7 2.2.0
|
This file contains API for Smart Buck 7 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 | smartbuck7_status_t |
| Smart Buck 7 Click status object. More... | |
| struct | smartbuck7_t |
| Smart Buck 7 Click context object. More... | |
| struct | smartbuck7_cfg_t |
| Smart Buck 7 Click configuration object. More... | |
Macros | |
| #define | SMARTBUCK7_REG_SLAVE_ADDRESS 0x15 |
| Smart Buck 7 register list. | |
| #define | SMARTBUCK7_REG_EN 0x22 |
| #define | SMARTBUCK7_REG_STATUS_1 0x27 |
| #define | SMARTBUCK7_REG_STATUS_2 0x28 |
| #define | SMARTBUCK7_BUCK_4 0x01 |
| Smart Buck 7 buck selection setting. | |
| #define | SMARTBUCK7_BUCK_3 0x02 |
| #define | SMARTBUCK7_BUCK_2 0x04 |
| #define | SMARTBUCK7_BUCK_1 0x08 |
| #define | SMARTBUCK7_BUCK_ALL 0x0F |
| #define | SMARTBUCK7_STATUS_1_PGBUCK4 0x08 |
| Smart Buck 7 STATUS_1 register setting. | |
| #define | SMARTBUCK7_STATUS_1_PGBUCK3 0x04 |
| #define | SMARTBUCK7_STATUS_1_PGBUCK2 0x02 |
| #define | SMARTBUCK7_STATUS_1_PGBUCK1 0x01 |
| #define | SMARTBUCK7_STATUS_2_OTWARNING 0x80 |
| Smart Buck 7 STATUS_2 register setting. | |
| #define | SMARTBUCK7_STATUS_2_OTEMPP 0x40 |
| #define | SMARTBUCK7_STATUS_2_CLEAR 0xFF |
| #define | SMARTBUCK7_DEVICE_ADDRESS 0x69 |
| Smart Buck 7 device address setting. | |
| #define | SMARTBUCK7_MAP_MIKROBUS(cfg, mikrobus) |
| MikroBUS pin mapping. | |
Enumerations | |
| enum | smartbuck7_return_value_t { SMARTBUCK7_OK = 0 , SMARTBUCK7_ERROR = -1 } |
| Smart Buck 7 Click return value data. More... | |
Functions | |
| void | smartbuck7_cfg_setup (smartbuck7_cfg_t *cfg) |
| Smart Buck 7 configuration object setup function. | |
| err_t | smartbuck7_init (smartbuck7_t *ctx, smartbuck7_cfg_t *cfg) |
| Smart Buck 7 initialization function. | |
| err_t | smartbuck7_default_cfg (smartbuck7_t *ctx) |
| Smart Buck 7 default configuration function. | |
| err_t | smartbuck7_write_reg (smartbuck7_t *ctx, uint8_t reg, uint8_t data_in) |
| Smart Buck 7 write register function. | |
| err_t | smartbuck7_read_reg (smartbuck7_t *ctx, uint8_t reg, uint8_t *data_out) |
| Smart Buck 7 read register function. | |
| void | smartbuck7_enable_device (smartbuck7_t *ctx) |
| Smart Buck 7 enable device function. | |
| void | smartbuck7_disable_device (smartbuck7_t *ctx) |
| Smart Buck 7 disable device function. | |
| uint8_t | smartbuck7_get_pg_pin (smartbuck7_t *ctx) |
| Smart Buck 7 get power-good pin function. | |
| err_t | smartbuck7_read_status (smartbuck7_t *ctx, smartbuck7_status_t *status) |
| Smart Buck 7 read status registers function. | |
| err_t | smartbuck7_clear_status (smartbuck7_t *ctx) |
| Smart Buck 7 clear status flags function. | |
| err_t | smartbuck7_enable_buck (smartbuck7_t *ctx, uint8_t buck_sel) |
| Smart Buck 7 enable selected buck function. | |
| err_t | smartbuck7_disable_buck (smartbuck7_t *ctx, uint8_t buck_sel) |
| Smart Buck 7 disable selected buck function. | |
This file contains API for Smart Buck 7 Click Driver.