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