buck13 2.0.0.0
|
Functions | |
void | buck13_cfg_setup (buck13_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK13_RETVAL | buck13_init (buck13_t *ctx, buck13_cfg_t *cfg) |
Initialization function. | |
void | buck13_default_cfg (buck13_t *ctx) |
Click Default Configuration function. | |
void | buck13_generic_transfer (buck13_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | buck13_enable (buck13_t *ctx, uint8_t pwr_state) |
Enable Buck13 function. | |
uint16_t | buck13_get_adc (buck13_t *ctx) |
Get ADC function. | |
uint16_t | buck13_get_voltage (buck13_t *ctx) |
Get voltage function. | |
void buck13_cfg_setup | ( | buck13_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void buck13_default_cfg | ( | buck13_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Buck 13 click.
Buck mode : Disabled - BUCK13_DISABLE.
void buck13_enable | ( | buck13_t * | ctx, |
uint8_t | pwr_state ) |
Enable Buck13 function.
ctx | Click object. |
pwr_state | Enable/disable state. |
@description Enables/disables Buck13 module.
void buck13_generic_transfer | ( | buck13_t * | ctx, |
uint8_t * | wr_buf, | ||
uint16_t | wr_len, | ||
uint8_t * | rd_buf, | ||
uint16_t | rd_len ) |
Generic transfer function.
ctx | Click object. |
wr_buf | Write data buffer |
wr_len | Number of byte in write data buffer |
rd_buf | Read data buffer |
rd_len | Number of byte in read data buffer |
@description Generic SPI transfer, for sending and receiving packages
uint16_t buck13_get_adc | ( | buck13_t * | ctx | ) |
Get ADC function.
ctx | Click object. |
uint16_t buck13_get_voltage | ( | buck13_t * | ctx | ) |
Get voltage function.
ctx | Click object. |
BUCK13_RETVAL buck13_init | ( | buck13_t * | ctx, |
buck13_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |