vcpmonitor2
2.0.0.0
|
This file contains API for VCP Monitor 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 | vcpmonitor2_t |
Click ctx object definition. More... | |
struct | vcpmonitor2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | vcpmonitor2_cfg_setup (vcpmonitor2_cfg_t *cfg) |
Config Object Initialization function. More... | |
VCPMONITOR2_RETVAL | vcpmonitor2_init (vcpmonitor2_t *ctx, vcpmonitor2_cfg_t *cfg) |
Initialization function. More... | |
void | vcpmonitor2_default_cfg (vcpmonitor2_t *ctx) |
Click Default Configuration function. More... | |
void | vcpmonitor2_generic_write (vcpmonitor2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | vcpmonitor2_generic_read (vcpmonitor2_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
uint16_t | vcpmonitor2_get_manifacture_id (vcpmonitor2_t *ctx) |
Get Manufacture ID. More... | |
uint16_t | vcpmonitor2_get_die_id (vcpmonitor2_t *ctx) |
Get DIE ID. More... | |
float | vcpmonitor2_get_bus_voltage (vcpmonitor2_t *ctx, uint8_t channel) |
Get BUS voltage in mV. More... | |
float | vcpmonitor2_get_shunt_voltage (vcpmonitor2_t *ctx, uint8_t channel) |
Get Shunt voltage in mV. More... | |
float | vcpmonitor2_get_current (vcpmonitor2_t *ctx, uint8_t channel) |
Get Current data in mA. More... | |
float | vcpmonitor2_get_power (vcpmonitor2_t *ctx, uint8_t channel) |
Get Power in W. More... | |
void | vcpmonitor2_configuration (vcpmonitor2_t *ctx, uint16_t cfg) |
Configuration function. More... | |
uint8_t | vcpmonitor2_get_alert_status (vcpmonitor2_t *ctx) |
Get Alert status. More... | |
void | vcpmonitor2_reset_alert (vcpmonitor2_t *ctx) |
Alert reset. More... | |
void | vcpmonitor2_alert_config (vcpmonitor2_t *ctx, uint8_t cfg) |
Alert configuration ( Enable / Disable ) More... | |
This file contains API for VCP Monitor 2 Click driver.