buck 2.0.0.0
Public function

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.
 

Detailed Description

Function Documentation

◆ buck_cfg_setup()

void buck_cfg_setup ( buck_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ buck_default_cfg()

void buck_default_cfg ( buck_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for BUCK click.

Note
Default module configuration:
- Set frequency ( BUCK_FREQ_400KHz )
- Set powermode ( BUCK_DEVICE_ENABLE )

◆ buck_device_reset()

void buck_device_reset ( buck_t * ctx)

Device reset chip function.

Parameters
ctxClick object.
Note
Function soft reset LT3976 chip by set state of CS pin from low to high.

◆ buck_get_power_good()

uint8_t buck_get_power_good ( buck_t * ctx)

Get state internal comparator function.

Parameters
ctxClick object.
Returns
- 1 : power good output voltage;
- 0 : not a good input voltage, set the input voltage to a minimum of 4500mV;
Note
Function get state internal comparator by read state of INT pin on Buck Click.

◆ buck_init()

BUCK_RETVAL buck_init ( buck_t * ctx,
buck_cfg_t * cfg )

Initialization function.

Parameters
buckClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ buck_set_mode()

void buck_set_mode ( buck_t * ctx,
uint8_t mode )

Select buck mode (Disable / Enable)

Parameters
ctxClick object.
modeBuck mode (Enable / Disable)

◆ buck_set_multiplexer_state()

void buck_set_multiplexer_state ( buck_t * ctx,
uint8_t mux,
uint8_t state )

Set multiplexer (A0 or A1) state.

Parameters
ctxClick object.
modeBuck mode (Enable / Disable)

◆ buck_switch_frequency()

void buck_switch_frequency ( buck_t * ctx,
uint8_t frequency )

Setting the switching frequency function.

Parameters
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.