solarenergy2 2.1.0.0
|
This file contains API for Solar Energy 2 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 | solarenergy2_t |
Solar Energy 2 Click context object. More... | |
struct | solarenergy2_cfg_t |
Solar Energy 2 Click configuration object. More... | |
struct | solarenergy2_status_t |
Solar Energy 2 Click status information object. More... | |
struct | solarenergy2_bat_vtg_status_t |
Solar Energy 2 Click storage element voltage and state object. More... | |
struct | solarenergy2_abs_vtg_v_t |
Solar Energy 2 Click operation battery voltage values object. More... | |
Enumerations | |
enum | solarenergy2_return_value_t { SOLARENERGY2_OK = 0 , SOLARENERGY2_ERROR = -1 } |
Solar Energy 2 Click return value data. More... | |
Functions | |
void | solarenergy2_cfg_setup (solarenergy2_cfg_t *cfg) |
Solar Energy 2 configuration object setup function. | |
err_t | solarenergy2_init (solarenergy2_t *ctx, solarenergy2_cfg_t *cfg) |
Solar Energy 2 initialization function. | |
err_t | solarenergy2_default_cfg (solarenergy2_t *ctx) |
Solar Energy 2 default configuration function. | |
err_t | solarenergy2_generic_write (solarenergy2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Solar Energy 2 I2C writing function. | |
err_t | solarenergy2_generic_read (solarenergy2_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Solar Energy 2 I2C reading function. | |
err_t | solarenergy2_write_reg (solarenergy2_t *ctx, uint8_t reg, uint8_t data_in) |
Solar Energy 2 write register function. | |
err_t | solarenergy2_write_eeprom (solarenergy2_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Solar Energy 2 write EEPROM function. | |
err_t | solarenergy2_soft_reset (solarenergy2_t *ctx) |
Solar Energy 2 soft reset function. | |
err_t | solarenergy2_get_status (solarenergy2_t *ctx, solarenergy2_status_t *status) |
Solar Energy 2 get status function. | |
err_t | solarenergy2_get_bat_vtg_status (solarenergy2_t *ctx, solarenergy2_bat_vtg_status_t *bat_vtg_status) |
Solar Energy 2 get storage element status function. | |
err_t | solarenergy2_set_sleep_vsup (solarenergy2_t *ctx, float sleep_vsup_sec) |
Solar Energy 2 set sleep VSUP function. | |
err_t | solarenergy2_set_mppt_ratio (solarenergy2_t *ctx, uint8_t mppt_ratio) |
Solar Energy 2 set MPPT ratio function. | |
err_t | solarenergy2_set_ldo_cfg (solarenergy2_t *ctx, uint8_t vaux_ldo, uint8_t ulp_ldo) |
Solar Energy 2 set LDO config function. | |
err_t | solarenergy2_config_abs_voltage (solarenergy2_t *ctx, solarenergy2_abs_vtg_v_t abs_vtg) |
Solar Energy 2 config absolute voltage function. | |
err_t | solarenergy2_set_pwr_current_source (solarenergy2_t *ctx, uint8_t crt_src_sel) |
Solar Energy 2 power source selection function. | |
err_t | solarenergy2_store_config (solarenergy2_t *ctx) |
Solar Energy 2 store config function. | |
void | solarenergy2_set_wup_pin (solarenergy2_t *ctx, uint8_t state) |
Solar Energy 2 set WUP pin function. | |
uint8_t | solarenergy2_get_en_hv_cell_low_state (solarenergy2_t *ctx) |
Solar Energy 2 get HLV state function. | |
uint8_t | solarenergy2_get_battery_low_state (solarenergy2_t *ctx) |
Solar Energy 2 get BLV state function. | |
This file contains API for Solar Energy 2 Click Driver.