buck11 2.0.0.0
|
Functions | |
void | buck11_cfg_setup (buck11_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK11_RETVAL | buck11_init (buck11_t *ctx, buck11_cfg_t *cfg) |
Initialization function. | |
void | buck11_generic_write (buck11_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | buck11_generic_read (buck11_t *ctx, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | buck11_set_vdd_value (float vdd_volts) |
Set VDD Value function. | |
uint16_t | buck11_read_adc (buck11_t *ctx) |
ADC Read function. | |
float | buck11_get_vout (buck11_t *ctx, uint8_t vout_resolution) |
Get VOUT function. | |
float | buck11_get_averaged_vout (buck11_t *ctx, uint8_t vout_resolution, uint8_t n_samples) |
Get Averaged VOUT function. | |
void buck11_cfg_setup | ( | buck11_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void buck11_generic_read | ( | buck11_t * | ctx, |
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void buck11_generic_write | ( | buck11_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
float buck11_get_averaged_vout | ( | buck11_t * | ctx, |
uint8_t | vout_resolution, | ||
uint8_t | n_samples ) |
Get Averaged VOUT function.
ctx | Click object. |
vout_resolution | 0 - To get VOUT value in volts, 1 (or other value different from 0) - To get VOUT value in millivolts |
n_samples | Number of samples to be performed for one measurement cycle |
@description This function allows user to get the averaged VOUT voltage value in the desired unit resolution, volts or millivolts.
float buck11_get_vout | ( | buck11_t * | ctx, |
uint8_t | vout_resolution ) |
Get VOUT function.
ctx | Click object. |
vout_resolution | 0 - To get VOUT value in volts, 1 (or other value different from 0) - To get VOUT value in millivolts |
@description This function allows user to get VOUT voltage value in the desired unit resolution, volts or millivolts.
BUCK11_RETVAL buck11_init | ( | buck11_t * | ctx, |
buck11_cfg_t * | cfg ) |
Initialization function.
buck11 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t buck11_read_adc | ( | buck11_t * | ctx | ) |
ADC Read function.
ctx | Click object. |
@description This function reads the results of the AD conversion from the MCP3221A5T 12-bit converter.
void buck11_set_vdd_value | ( | float | vdd_volts | ) |
Set VDD Value function.
vdd_volts | The desired VDD value in Volts to be set |
@description This function allows user to set VDD voltage to the desired (measured) value.