buck6 2.0.0.0
Public function

Functions

void buck6_cfg_setup (buck6_cfg_t *cfg)
 Config Object Initialization function.
 
BUCK6_RETVAL buck6_init (buck6_t *ctx, buck6_cfg_t *cfg)
 Initialization function.
 
void buck6_generic_write (buck6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void buck6_generic_read (buck6_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
uint8_t buck6_get_rst (buck6_t *ctx)
 
void buck6_set_mode (buck6_t *ctx, uint8_t mode)
 Set mode.
 
void buck6_set_max_voltage (buck6_t *ctx, uint8_t voltage)
 Set maximum voltage.
 

Detailed Description

Function Documentation

◆ buck6_cfg_setup()

void buck6_cfg_setup ( buck6_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.

◆ buck6_generic_read()

void buck6_generic_read ( buck6_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.
data_bufOutput data buf
lenNumber of the bytes to be read

@description This function reads data from the desired register.

◆ buck6_generic_write()

void buck6_generic_write ( buck6_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ buck6_get_rst()

uint8_t buck6_get_rst ( buck6_t * ctx)
Parameters
ctxClick object.

@description This function gets reset.

◆ buck6_init()

BUCK6_RETVAL buck6_init ( buck6_t * ctx,
buck6_cfg_t * cfg )

Initialization function.

Parameters
buck6Click object.
cfgClick configuration structure.

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

◆ buck6_set_max_voltage()

void buck6_set_max_voltage ( buck6_t * ctx,
uint8_t voltage )

Set maximum voltage.

Parameters
ctxClick object.
voltageVoltage value

@description This function sets maximum voltage.

◆ buck6_set_mode()

void buck6_set_mode ( buck6_t * ctx,
uint8_t mode )

Set mode.

Parameters
ctxClick object.
modeMode select

@description This function sets mode.