vcpmonitor3 2.0.0.0
|
This file contains API for VCP Monitor 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | vcpmonitor3_s |
VCP Monitor 3 Click context object. More... | |
struct | vcpmonitor3_cfg_t |
VCP Monitor 3 Click configuration object. More... | |
Typedefs | |
typedef err_t(* | vcpmonitor3_master_io_t) (struct vcpmonitor3_s *, uint8_t, uint8_t *, uint8_t) |
VCP Monitor 3 Click driver interface. | |
typedef struct vcpmonitor3_s | vcpmonitor3_t |
VCP Monitor 3 Click context object. | |
Enumerations | |
enum | vcpmonitor3_drv_t { VCPMONITOR3_DRV_SEL_SPI , VCPMONITOR3_DRV_SEL_I2C } |
VCP Monitor 3 Click driver selector. More... | |
enum | vcpmonitor3_return_value_t { VCPMONITOR3_OK = 0 , VCPMONITOR3_ERROR = -1 } |
VCP Monitor 3 Click return value data. More... | |
Functions | |
void | vcpmonitor3_cfg_setup (vcpmonitor3_cfg_t *cfg) |
VCP Monitor 3 configuration object setup function. | |
void | vcpmonitor3_drv_interface_selection (vcpmonitor3_cfg_t *cfg, vcpmonitor3_drv_t drv_sel) |
VCP Monitor 3 driver interface setup function. | |
err_t | vcpmonitor3_init (vcpmonitor3_t *ctx, vcpmonitor3_cfg_t *cfg) |
VCP Monitor 3 initialization function. | |
err_t | vcpmonitor3_default_cfg (vcpmonitor3_t *ctx) |
VCP Monitor 3 default configuration function. | |
err_t | vcpmonitor3_generic_write (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
VCP Monitor 3 data writing function. | |
err_t | vcpmonitor3_generic_read (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
VCP Monitor 3 data reading function. | |
void | vcpmonitor3_wr_page_0 (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *wr_data, uint8_t n_bytes) |
Write Data To Page 0 function. | |
void | vcpmonitor3_rd_page_0 (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *rd_data, uint8_t n_bytes) |
Read Data From Page 0 function. | |
void | vcpmonitor3_wr_page_1 (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *wr_data, uint8_t n_bytes) |
Write Data To Page 1 function. | |
void | vcpmonitor3_rd_page_1 (vcpmonitor3_t *ctx, uint8_t reg, uint8_t *rd_data, uint8_t n_bytes) |
Read Data From Page 1 function. | |
void | vcpmonitor3_set_op_mode (vcpmonitor3_t *ctx, uint8_t op_mode) |
Set Operation Mode function. | |
float | vcpmonitor3_read_i (vcpmonitor3_t *ctx) |
Read Current in Amps function. | |
float | vcpmonitor3_read_p (vcpmonitor3_t *ctx) |
Read Power in Watts function. | |
float | vcpmonitor3_read_v (vcpmonitor3_t *ctx) |
Read Voltage in Volts function. | |
float | vcpmonitor3_read_temp (vcpmonitor3_t *ctx) |
Read Die Temperature in degrees Centigrade function. | |
float | vcpmonitor3_read_vcc (vcpmonitor3_t *ctx) |
Read Voltage at DVCC in Volts function. | |
float | vcpmonitor3_read_c (vcpmonitor3_t *ctx, uint8_t accu_set1) |
Read Charge in Coulombs function. | |
float | vcpmonitor3_read_e (vcpmonitor3_t *ctx, uint8_t accu_set1) |
Read Energy in Joules function. | |
float | vcpmonitor3_read_tb (vcpmonitor3_t *ctx, uint8_t accu_set1) |
Read Time in Seconds function. | |
uint8_t | vcpmonitor3_get_int (vcpmonitor3_t *ctx) |
Get Interrupt state function. | |
This file contains API for VCP Monitor 3 Click Driver.
typedef err_t(* vcpmonitor3_master_io_t) (struct vcpmonitor3_s *, uint8_t, uint8_t *, uint8_t) |
VCP Monitor 3 Click driver interface.
Definition of driver interface of VCP Monitor 3 Click driver. Driver serial interface.
typedef struct vcpmonitor3_s vcpmonitor3_t |
VCP Monitor 3 Click context object.
Context object definition of VCP Monitor 3 Click driver.
enum vcpmonitor3_drv_t |