vcpmonitor 2.0.0.0
|
This file contains API for VCP 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 | vcpmonitor_t |
Click ctx object definition. More... | |
struct | vcpmonitor_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | vcpmonitor_cfg_setup (vcpmonitor_cfg_t *cfg) |
Config Object Initialization function. | |
VCPMONITOR_RETVAL | vcpmonitor_init (vcpmonitor_t *ctx, vcpmonitor_cfg_t *cfg) |
Initialization function. | |
void | vcpmonitor_default_cfg (vcpmonitor_t *ctx) |
Click Default Configuration function. | |
void | vcpmonitor_generic_write (vcpmonitor_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | vcpmonitor_generic_read (vcpmonitor_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | vcpmonitor_write_data (vcpmonitor_t *ctx, uint8_t reg, uint16_t tx_data) |
Writes data to register. | |
int16_t | vcpmonitor_read_data (vcpmonitor_t *ctx, uint8_t reg_addr) |
Reads data from register. | |
uint8_t | vcpmonitor_get_interrupt_state (vcpmonitor_t *ctx) |
Gets Interrupt pin state. | |
float | vcpmonitor_get_current (vcpmonitor_t *ctx) |
Reads current data in mA. | |
float | vcpmonitor_get_voltage (vcpmonitor_t *ctx) |
Reads voltage data in mV. | |
float | vcpmonitor_get_power (vcpmonitor_t *ctx) |
Reads power data in mW. | |
uint8_t | vcpmonitor_get_id_value (vcpmonitor_t *ctx, uint16_t *manufacture_id, uint16_t *did_id) |
Gets Manufacture ID and Device ID. | |
This file contains API for VCP monitor Click driver.