powermonitor 2.0.0.0
|
This file contains API for Power Monitor 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 | powermonitor_t |
Power Monitor Click context object. More... | |
struct | powermonitor_cfg_t |
Power Monitor Click configuration object. More... | |
struct | powermonitor_dev_cfg_t |
Power Monitor Click device settings object. More... | |
struct | powermonitor_adc_cfg_t |
Power Monitor Click ADC configuration object. More... | |
Enumerations | |
enum | powermonitor_return_value_t { POWERMONITOR_OK = 0 , POWERMONITOR_ERROR = -1 } |
Power Monitor Click return value data. More... | |
Functions | |
void | powermonitor_cfg_setup (powermonitor_cfg_t *cfg) |
Power Monitor configuration object setup function. | |
err_t | powermonitor_init (powermonitor_t *ctx, powermonitor_cfg_t *cfg) |
Power Monitor initialization function. | |
err_t | powermonitor_default_cfg (powermonitor_t *ctx) |
Power Monitor default configuration function. | |
err_t | powermonitor_generic_write (powermonitor_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len) |
Power Monitor I2C writing function. | |
err_t | powermonitor_generic_read (powermonitor_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len) |
Power Monitor I2C reading function. | |
err_t | powermonitor_soft_reset (powermonitor_t *ctx) |
Power Monitor software reset function. | |
err_t | powermonitor_set_configuration (powermonitor_t *ctx, powermonitor_dev_cfg_t cfg_data) |
Power Monitor set configuration function. | |
err_t | powermonitor_get_configuration (powermonitor_t *ctx, powermonitor_dev_cfg_t *cfg_data) |
Power Monitor get configuration function. | |
err_t | powermonitor_set_adc_config (powermonitor_t *ctx, powermonitor_adc_cfg_t adc_cfg) |
Power Monitor set ADC configuration function. | |
err_t | powermonitor_get_adc_configu (powermonitor_t *ctx, powermonitor_adc_cfg_t *adc_cfg) |
Power Monitor get ADC configuration function. | |
err_t | powermonitor_set_bus_overvoltage_threshold (powermonitor_t *ctx, float bovl) |
Power Monitor set bus overvoltage threshold function. | |
err_t | powermonitor_set_bus_undervoltage_threshold (powermonitor_t *ctx, float buvl) |
Power Monitor set bus undervoltage threshold function. | |
err_t | powermonitor_set_shunt_overvoltage_threshold (powermonitor_t *ctx, float sovl) |
Power Monitor set shunt overvoltage threshold function. | |
err_t | powermonitor_set_shunt_undervoltage_threshold (powermonitor_t *ctx, float suvl) |
Power Monitor set shunt undervoltage threshold function. | |
err_t | powermonitor_get_vshunt (powermonitor_t *ctx, float *vshunt) |
Power Monitor get shunt voltage function. | |
err_t | powermonitor_get_vbus (powermonitor_t *ctx, float *vbus) |
Power Monitor get bus voltage function. | |
err_t | powermonitor_get_temperature (powermonitor_t *ctx, float *temperature) |
Power Monitor get temperature function. | |
err_t | powermonitor_get_current (powermonitor_t *ctx, float *current) |
Power Monitor get current function. | |
err_t | powermonitor_get_power (powermonitor_t *ctx, float *power) |
Power Monitor get power function. | |
err_t | powermonitor_get_energy_data (powermonitor_t *ctx, uint8_t *energy_data) |
Power Monitor get energy data function. | |
err_t | powermonitor_get_energy (powermonitor_t *ctx, float *energy) |
Power Monitor get energy function. | |
err_t | powermonitor_get_id (powermonitor_t *ctx, uint8_t *manufacturer_id, uint16_t *die_id, uint8_t *rev_id) |
Power Monitor get device ID function. | |
err_t | powermonitor_get_alert (powermonitor_t *ctx) |
Power Monitor get alert function. | |
This file contains API for Power Monitor Click Driver.