buck6 2.0.0.0
|
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. | |
void buck6_cfg_setup | ( | buck6_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void buck6_generic_read | ( | buck6_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 buck6_generic_write | ( | buck6_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.
uint8_t buck6_get_rst | ( | buck6_t * | ctx | ) |
ctx | Click object. |
@description This function gets reset.
BUCK6_RETVAL buck6_init | ( | buck6_t * | ctx, |
buck6_cfg_t * | cfg ) |
Initialization function.
buck6 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void buck6_set_max_voltage | ( | buck6_t * | ctx, |
uint8_t | voltage ) |
Set maximum voltage.
ctx | Click object. |
voltage | Voltage value |
@description This function sets maximum voltage.
void buck6_set_mode | ( | buck6_t * | ctx, |
uint8_t | mode ) |
Set mode.
ctx | Click object. |
mode | Mode select |
@description This function sets mode.