buck2 2.0.0.0
|
This file contains API for Buck 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | buck2_t |
Click ctx object definition. More... | |
struct | buck2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | BUCK2_MAP_MIKROBUS(cfg, mikrobus) |
#define | BUCK2_RETVAL uint8_t |
#define | BUCK2_OK 0x00 |
#define | BUCK2_INIT_ERROR 0xFF |
#define | BUCK2_MODE_ACTIVE 0x01 |
#define | BUCK2_MODE_SLEEP 0x00 |
#define | BUCK2_VOSET_LOW 0x00 |
#define | BUCK2_VOSET_HIGH 0x01 |
#define | BUCK2_FREQ_790KHz 0x01 |
#define | BUCK2_FREQ_565KHz 0x00 |
#define | BUCK2_SET_VOLTAGE_3300mV 0 |
#define | BUCK2_SET_VOLTAGE_2500mV 1 |
#define | BUCK2_SET_VOLTAGE_1800mV 2 |
#define | BUCK2_SET_VOLTAGE_1500mV 3 |
#define | BUCK2_VOSET_CH_0 0 |
#define | BUCK2_VOSET_CH_1 1 |
Functions | |
void | buck2_cfg_setup (buck2_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK2_RETVAL | buck2_init (buck2_t *ctx, buck2_cfg_t *cfg) |
Initialization function. | |
void | buck2_default_cfg (buck2_t *ctx) |
Click Default Configuration function. | |
void | buck2_set_voset (buck2_t *ctx, uint8_t channel, uint8_t state) |
Function settings VOSET pin state. | |
void | busk2_set_frequency (buck2_t *ctx, uint8_t freq) |
Function settings Frequency. | |
void | buck2_set_power_mode (buck2_t *ctx, uint8_t mode) |
Function settings chip mode. | |
void | back2_device_reset (buck2_t *ctx) |
Function for reset chip. | |
uint8_t | buck2_get_power_good (buck2_t *ctx) |
Function reads state PG pin. | |
void | buck2_set_output_voltage (buck2_t *ctx, uint8_t voltage) |
Function settings output voltage. | |
This file contains API for Buck 2 Click driver.