vcpmonitor5
2.1.0.0
|
This file contains API for VCP Monitor 5 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 | vcpmonitor5_t |
VCP Monitor 5 Click context object. More... | |
struct | vcpmonitor5_cfg_t |
VCP Monitor 5 Click configuration object. More... | |
Enumerations | |
enum | vcpmonitor5_return_value_t { VCPMONITOR5_OK = 0, VCPMONITOR5_ERROR = -1 } |
VCP Monitor 5 Click return value data. More... | |
Functions | |
void | vcpmonitor5_cfg_setup (vcpmonitor5_cfg_t *cfg) |
VCP Monitor 5 configuration object setup function. More... | |
err_t | vcpmonitor5_init (vcpmonitor5_t *ctx, vcpmonitor5_cfg_t *cfg) |
VCP Monitor 5 initialization function. More... | |
err_t | vcpmonitor5_default_cfg (vcpmonitor5_t *ctx) |
VCP Monitor 5 default configuration function. More... | |
err_t | vcpmonitor5_generic_write (vcpmonitor5_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
VCP Monitor 5 I2C writing function. More... | |
err_t | vcpmonitor5_generic_read (vcpmonitor5_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
VCP Monitor 5 I2C reading function. More... | |
err_t | vcpmonitor5_reg_write (vcpmonitor5_t *ctx, uint8_t reg, uint16_t data_in) |
VCP Monitor 5 register writing function. More... | |
err_t | vcpmonitor5_reg_read (vcpmonitor5_t *ctx, uint8_t reg, uint16_t *data_out) |
VCP Monitor 5 register reading function. More... | |
err_t | vcpmonitor5_sw_reset (vcpmonitor5_t *ctx) |
VCP Monitor 5 SW reset writing function. More... | |
err_t | vcpmonitor5_set_conv_dly (vcpmonitor5_t *ctx, uint16_t dly_ms) |
VCP Monitor 5 set conversion delay function. More... | |
err_t | vcpmonitor5_set_op_mode (vcpmonitor5_t *ctx, uint8_t op_mode) |
VCP Monitor 5 set the operating mode function. More... | |
err_t | vcpmonitor5_set_conv_time (vcpmonitor5_t *ctx, uint8_t vbusct, uint8_t vsenct, uint8_t tct) |
VCP Monitor 5 set the conversion time function. More... | |
err_t | vcpmonitor5_set_adc_avg (vcpmonitor5_t *ctx, uint8_t avg) |
VCP Monitor 5 set the ADC sample function. More... | |
err_t | vcpmonitor5_get_bus_voltage (vcpmonitor5_t *ctx, float *voltage) |
VCP Monitor 5 get the voltage function. More... | |
err_t | vcpmonitor5_get_temperature (vcpmonitor5_t *ctx, float *temperature) |
VCP Monitor 5 get the temperature function. More... | |
err_t | vcpmonitor5_get_current (vcpmonitor5_t *ctx, float *current) |
VCP Monitor 5 get the current function. More... | |
err_t | vcpmonitor5_get_power (vcpmonitor5_t *ctx, float *power) |
VCP Monitor 5 get the power function. More... | |
err_t | vcpmonitor5_get_energy (vcpmonitor5_t *ctx, float *energy) |
VCP Monitor 5 get the energy function. More... | |
err_t | vcpmonitor5_get_charge (vcpmonitor5_t *ctx, float *charge) |
VCP Monitor 5 get the charge function. More... | |
err_t | vcpmonitor5_set_diag_flg_alr (vcpmonitor5_t *ctx, uint16_t diag_flg_alr) |
VCP Monitor 5 set diagnostic function. More... | |
err_t | vcpmonitor5_get_indc_flg (vcpmonitor5_t *ctx, uint16_t *indc_flg) |
VCP Monitor 5 get diagnostic indicates function. More... | |
err_t | vcpmonitor5_wait_conv_cmpl (vcpmonitor5_t *ctx) |
VCP Monitor 5 wait conversion function. More... | |
err_t | vcpmonitor5_get_device_id (vcpmonitor5_t *ctx, uint16_t *man_id) |
VCP Monitor 5 get device ID function. More... | |
uint8_t | vcpmonitor5_get_alarm (vcpmonitor5_t *ctx) |
VCP Monitor 5 get alarm function. More... | |
This file contains API for VCP Monitor 5 Click Driver.