buck 2.0.0.0
|
Functions | |
void | buck_cfg_setup (buck_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK_RETVAL | buck_init (buck_t *ctx, buck_cfg_t *cfg) |
Initialization function. | |
void | buck_default_cfg (buck_t *ctx) |
Click Default Configuration function. | |
void | buck_device_reset (buck_t *ctx) |
Device reset chip function. | |
void | buck_set_mode (buck_t *ctx, uint8_t mode) |
Select buck mode (Disable / Enable) | |
uint8_t | buck_get_power_good (buck_t *ctx) |
Get state internal comparator function. | |
void | buck_set_multiplexer_state (buck_t *ctx, uint8_t mux, uint8_t state) |
Set multiplexer (A0 or A1) state. | |
void | buck_switch_frequency (buck_t *ctx, uint8_t frequency) |
Setting the switching frequency function. | |
void buck_cfg_setup | ( | buck_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void buck_default_cfg | ( | buck_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for BUCK click.
- Set frequency ( BUCK_FREQ_400KHz ) - Set powermode ( BUCK_DEVICE_ENABLE )
void buck_device_reset | ( | buck_t * | ctx | ) |
Device reset chip function.
ctx | Click object. |
uint8_t buck_get_power_good | ( | buck_t * | ctx | ) |
Get state internal comparator function.
ctx | Click object. |
- 1 : power good output voltage; - 0 : not a good input voltage, set the input voltage to a minimum of 4500mV;
BUCK_RETVAL buck_init | ( | buck_t * | ctx, |
buck_cfg_t * | cfg ) |
Initialization function.
buck | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void buck_set_mode | ( | buck_t * | ctx, |
uint8_t | mode ) |
Select buck mode (Disable / Enable)
ctx | Click object. |
mode | Buck mode (Enable / Disable) |
void buck_set_multiplexer_state | ( | buck_t * | ctx, |
uint8_t | mux, | ||
uint8_t | state ) |
Set multiplexer (A0 or A1) state.
ctx | Click object. |
mode | Buck mode (Enable / Disable) |
void buck_switch_frequency | ( | buck_t * | ctx, |
uint8_t | frequency ) |
Setting the switching frequency function.
frequency | 8-bit frequency value: - 0 : frequency 400 kHz, resistor 130k - 1 : frequency 1200 kHz, resistor 32.4k - 2 : frequency 800 kHz, resistor 54.9k - 3 : frequency 1600 kHz, resistor 21.5k |
<br>note Function setting the switching frequency to the LT3976 chip on Buck Click.