buck14 2.0.0.0
|
Functions | |
void | buck14_cfg_setup (buck14_cfg_t *cfg) |
Config Object Initialization function. | |
BUCK14_RETVAL | buck14_init (buck14_t *ctx, buck14_cfg_t *cfg) |
Initialization function. | |
void | buck14_default_cfg (buck14_t *ctx) |
Click Default Configuration function. | |
void | buck14_generic_write (buck14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | buck14_generic_read (buck14_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | buck14_power_ctrl (buck14_t *ctx, uint8_t state) |
Set power ctrl function. | |
void | buck14_power_sync (buck14_t *ctx, uint8_t state) |
Set power sync function. | |
uint8_t | buck14_power_good (buck14_t *ctx) |
Get power good function. | |
uint8_t | buck14_salert (buck14_t *ctx) |
Get alert function. | |
uint8_t | buck14_check_mfr_id (buck14_t *ctx) |
Fucntion for checking manufacturer id. | |
void | buck14_reset (buck14_t *ctx) |
Reset function. | |
uint16_t | buc14_read_vout (buck14_t *ctx) |
Read Vout function. | |
uint8_t | buc14_write_vout (buck14_t *ctx, float vout) |
Set Vout function. | |
uint16_t buc14_read_vout | ( | buck14_t * | ctx | ) |
Read Vout function.
ctx | Click object. |
@description This function reads output V.
uint8_t buc14_write_vout | ( | buck14_t * | ctx, |
float | vout ) |
Set Vout function.
ctx | Click object. |
vout | Value to set on output V. |
@description This function sets output V.
void buck14_cfg_setup | ( | buck14_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t buck14_check_mfr_id | ( | buck14_t * | ctx | ) |
Fucntion for checking manufacturer id.
ctx | Click object. |
@description This function gets manufacturer id.
void buck14_default_cfg | ( | buck14_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Buck14 click.
void buck14_generic_read | ( | buck14_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void buck14_generic_write | ( | buck14_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.
BUCK14_RETVAL buck14_init | ( | buck14_t * | ctx, |
buck14_cfg_t * | cfg ) |
Initialization function.
buck14 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void buck14_power_ctrl | ( | buck14_t * | ctx, |
uint8_t | state ) |
Set power ctrl function.
ctx | Click object. |
state | Value of pin to be set. |
@description This function sets state of the power control pin on cs.
uint8_t buck14_power_good | ( | buck14_t * | ctx | ) |
Get power good function.
ctx | Click object. |
@description This function gets state of the power good pin on an.
void buck14_power_sync | ( | buck14_t * | ctx, |
uint8_t | state ) |
Set power sync function.
ctx | Click object. |
state | Value of pin to be set. |
@description This function sets state of the sync pin on pwm.
void buck14_reset | ( | buck14_t * | ctx | ) |
Reset function.
ctx | Click object. |
@description This function for reseting device power.
uint8_t buck14_salert | ( | buck14_t * | ctx | ) |
Get alert function.
ctx | Click object. |
@description This function gets state of the alert pin on int.