charger5 2.0.0.0
|
Functions | |
void | charger5_cfg_setup (charger5_cfg_t *cfg) |
Configuration Object Setup function. | |
charger5_err_t | charger5_init (charger5_t *ctx, charger5_cfg_t *cfg) |
Click Initialization function. | |
void | charger5_default_cfg (charger5_t *ctx) |
Click Default Configuration function. | |
charger5_err_t | charger5_generic_write (charger5_t *ctx, uint8_t reg_addr, uint16_t transfer_data) |
Generic Write function. | |
uint16_t | charger5_generic_read (charger5_t *ctx, uint8_t reg_addr) |
Generic Read function. | |
charger5_err_t | charger5_increment_wiper (charger5_t *ctx, uint8_t reg_addr, uint8_t n_steps) |
Increment Wiper function. | |
charger5_err_t | charger5_decrement_wiper (charger5_t *ctx, uint8_t reg_addr, uint8_t n_steps) |
Decrement Wiper function. | |
void charger5_cfg_setup | ( | charger5_cfg_t * | cfg | ) |
Configuration Object Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to initial state.
charger5_err_t charger5_decrement_wiper | ( | charger5_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | n_steps ) |
Decrement Wiper function.
ctx | Click object. |
reg_addr | Wiper register address. |
n_steps | Number of steps which for the selected wiper will be decremented. |
@description This function decrements the selected wiper for the desired number of steps.
void charger5_default_cfg | ( | charger5_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes a default configuration for Charger 5 click.
uint16_t charger5_generic_read | ( | charger5_t * | ctx, |
uint8_t | reg_addr ) |
Generic Read function.
ctx | Click object. |
reg_addr | Register address which from data be read. |
@description This function reads 9-bit data from the selected register.
charger5_err_t charger5_generic_write | ( | charger5_t * | ctx, |
uint8_t | reg_addr, | ||
uint16_t | transfer_data ) |
Generic Write function.
ctx | Click object. |
reg_addr | Register address where data be written. |
transfer_data | Data to be written. |
@description This function writes 9-bit data to the selected register.
charger5_err_t charger5_increment_wiper | ( | charger5_t * | ctx, |
uint8_t | reg_addr, | ||
uint8_t | n_steps ) |
Increment Wiper function.
ctx | Click object. |
reg_addr | Wiper register address. |
n_steps | Number of steps which for the selected wiper will be incremented. |
@description This function increments the selected wiper for the desired number of steps.
charger5_err_t charger5_init | ( | charger5_t * | ctx, |
charger5_cfg_t * | cfg ) |
Click Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for Charger 5 click.