pwrmeter2 2.0.0.0
|
This file contains API for PWR Meter 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | pwrmeter2_t |
Click ctx object definition. More... | |
struct | pwrmeter2_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | pwrmeter2_cfg_setup (pwrmeter2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pwrmeter2_init (pwrmeter2_t *ctx, pwrmeter2_cfg_t *cfg) |
Initialization function. | |
err_t | pwrmeter2_default_cfg (pwrmeter2_t *ctx) |
Click Default Configuration function. | |
err_t | pwrmeter2_write_reg (pwrmeter2_t *ctx, uint8_t reg, uint32_t data_in) |
Generic Write function. | |
err_t | pwrmeter2_read_reg (pwrmeter2_t *ctx, uint8_t reg, uint32_t *data_out, uint8_t len) |
Generic Read function. | |
err_t | pwrmeter2_read_conv_data (pwrmeter2_t *ctx, uint32_t *data_ch_0, uint32_t *data_ch_1) |
Read Converted Data function. | |
err_t | pwrmeter2_get_data (pwrmeter2_t *ctx, float *voltage, float *current, float *power) |
Data Get function. | |
void | pwrmeter2_reset (pwrmeter2_t *ctx) |
Reset function. | |
uint8_t | pwrmeter2_get_modulator_1 (pwrmeter2_t *ctx) |
Modulator 1 Get function. | |
uint8_t | pwrmeter2_get_modulator_0 (pwrmeter2_t *ctx) |
Modulator 0 Get function. | |
uint8_t | pwrmeter2_check_ready_pin (pwrmeter2_t *ctx) |
Ready Pin Check function. | |
This file contains API for PWR Meter 2 Click driver.