smartbuck 2.0.0.0
|
This file contains API for SMART BUCK Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | smartbuck_t |
Click ctx object definition. More... | |
struct | smartbuck_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | smartbuck_cfg_setup (smartbuck_cfg_t *cfg) |
Config Object Initialization function. | |
SMARTBUCK_RETVAL | smartbuck_init (smartbuck_t *ctx, smartbuck_cfg_t *cfg) |
Initialization function. | |
void | smartbuck_default_cfg (smartbuck_t *ctx) |
Click Default Configuration function. | |
uint8_t | smartbuck_write_eeprom (smartbuck_t *ctx, uint8_t eeprom_addr, uint8_t data_in) |
EEPROM Write function. | |
uint8_t | smartbuck_read_eeprom (smartbuck_t *ctx, uint8_t eeprom_addr, uint8_t *data_out) |
EEPROM Read function. | |
uint8_t | smartbuck_read_seq_eeprom (smartbuck_t *ctx, uint8_t eeprom_addr, uint8_t *data_out, uint8_t n_bytes) |
Sequential EEPROM Read function. | |
uint8_t | smartbuck_write_pot (smartbuck_t *ctx, uint8_t reg_addr, uint16_t data_in) |
Potentiometer Write function. | |
uint8_t | smartbuck_read_pot (smartbuck_t *ctx, uint8_t reg_addr, uint16_t *data_out) |
Potentiometer Read function. | |
uint8_t | smartbuck_incr_pot (smartbuck_t *ctx, uint8_t wiper_sel, uint16_t steps) |
Potentiometer Increment function. | |
uint8_t | smartbuck_decr_pot (smartbuck_t *ctx, uint8_t wiper_sel, uint16_t steps) |
Potentiometer Decrement function. | |
void | smartbuck_en_regulator1 (smartbuck_t *ctx, uint8_t state) |
Regulator1 Enable function. | |
void | smartbuck_en_regulator2 (smartbuck_t *ctx, uint8_t state) |
Regulator2 Enable function. | |
void | smartbuck_force_pwm_mode (smartbuck_t *ctx, uint8_t state) |
PWM Mode Force function. | |
uint8_t | smartbuck_check_diagnostic (smartbuck_t *ctx) |
Diagnostic Check function. | |
uint8_t | smartbuck_send_cmd_pac (smartbuck_t *ctx, uint8_t command) |
Command Send function. | |
uint8_t | smartbuck_write_pac (smartbuck_t *ctx, uint8_t reg_addr, uint8_t data_in) |
PAC1934 Write function. | |
uint8_t | smartbuck_read_pac (smartbuck_t *ctx, uint8_t reg_addr, uint8_t *data_out) |
PAC1934 Read function. | |
uint8_t | smartbuck_set_addr_ptr_pac (smartbuck_t *ctx, uint8_t reg_addr) |
Address Pointer Set function. | |
void | smartbuck_receive_byte_pac (smartbuck_t *ctx, uint8_t *data_out) |
Byte Receive function. | |
uint8_t | smartbuck_block_read_pac (smartbuck_t *ctx, uint8_t reg_addr, uint8_t *data_out, uint8_t n_bytes) |
PAC1934 Block Read function. | |
uint8_t | smartbuck_set_config_pac (smartbuck_t *ctx, uint8_t en_chann, uint8_t data_format, uint8_t data_sel) |
PAC1934 Configuration Set function. | |
void | smartbuck_get_data (smartbuck_t *ctx, float *voltage, float *current, float *power) |
Data Get function. | |
Variables | |
uint8_t | enabled_chann |
This file contains API for SMART BUCK Click driver.