vcpmonitor4
2.0.0.0
|
This file contains API for VCP Monitor 4 Click Driver. More...
#include "mikrosdk_version.h"
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | vcpmonitor4_t |
VCP Monitor 4 Click context object. More... | |
struct | vcpmonitor4_cfg_t |
VCP Monitor 4 Click configuration object. More... | |
Enumerations | |
enum | vcpmonitor4_return_value_t { vcpmonitor4_OK = 0, vcpmonitor4_ERROR = -1 } |
VCP Monitor 4 Click return value data. More... | |
Functions | |
void | vcpmonitor4_cfg_setup (vcpmonitor4_cfg_t *cfg) |
VCP Monitor 4 configuration object setup function. More... | |
err_t | vcpmonitor4_init (vcpmonitor4_t *ctx, vcpmonitor4_cfg_t *cfg) |
VCP Monitor 4 initialization function. More... | |
err_t | vcpmonitor4_default_cfg (vcpmonitor4_t *ctx) |
VCP Monitor 4 default configuration function. More... | |
err_t | vcpmonitor4_generic_write (vcpmonitor4_t *ctx, uint8_t reg, uint16_t data_in) |
VCP Monitor 4 data writing function. More... | |
err_t | vcpmonitor4_generic_read (vcpmonitor4_t *ctx, uint8_t reg, uint32_t *data_out) |
VCP Monitor 4 data reading function. More... | |
uint8_t | vcpmonitor4_get_alert (vcpmonitor4_t *ctx) |
Get alert pin state. More... | |
err_t | vcpmonitor4_get_temperature (vcpmonitor4_t *ctx, float *temperature) |
Get device temperature. More... | |
err_t | vcpmonitor4_get_vbus (vcpmonitor4_t *ctx, float *vbus) |
Get BUS voltage. More... | |
err_t | vcpmonitor4_get_vshunt (vcpmonitor4_t *ctx, float *vshunt) |
Get Shunt voltage. More... | |
err_t | vcpmonitor4_get_current (vcpmonitor4_t *ctx, float *current) |
Get Current. More... | |
err_t | vcpmonitor4_get_power (vcpmonitor4_t *ctx, float *power) |
Get Shunt voltage. More... | |
This file contains API for VCP Monitor 4 Click Driver.