buck2 2.0.0.0
|
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. | |
void back2_device_reset | ( | buck2_t * | ctx | ) |
Function for reset chip.
ctx | Click object. |
void buck2_cfg_setup | ( | buck2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void buck2_default_cfg | ( | buck2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Buck 2 click.
Power mode options: - BUCK2_MODE_ACTIVE Set voltage - BUCK2_SET_VOLTAGE_3300mV
uint8_t buck2_get_power_good | ( | buck2_t * | ctx | ) |
Function reads state PG pin.
ctx | Click object. |
BUCK2_RETVAL buck2_init | ( | buck2_t * | ctx, |
buck2_cfg_t * | cfg ) |
Initialization function.
buck2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void buck2_set_output_voltage | ( | buck2_t * | ctx, |
uint8_t | voltage ) |
Function settings output voltage.
ctx | Click object. |
voltage | Select output voltage |
- BUCK2_SET_VOLTAGE_3300mV - BUCK2_SET_VOLTAGE_2500mV - BUCK2_SET_VOLTAGE_1800mV - BUCK2_SET_VOLTAGE_1500mV
void buck2_set_power_mode | ( | buck2_t * | ctx, |
uint8_t | mode ) |
Function settings chip mode.
ctx | Click object. |
mode | Select power mode |
- BUCK2_MODE_ACTIVE - BUCK_MODE_SLEEP
void buck2_set_voset | ( | buck2_t * | ctx, |
uint8_t | channel, | ||
uint8_t | state ) |
Function settings VOSET pin state.
ctx | Click object. |
channel | Select channel |
state | VOSET pin state |
void busk2_set_frequency | ( | buck2_t * | ctx, |
uint8_t | freq ) |
Function settings Frequency.
ctx | Click object. |
freq | Select frequency |
- 565kHz - if the pin FQ is set to LOW - 790kHz - if the pin FQ is set to HIGH