pwrmeter3 2.1.0.0
|
This file contains API for PWR Meter 3 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 | pwrmeter3_t |
PWR Meter 3 Click context object. More... | |
struct | pwrmeter3_cfg_t |
PWR Meter 3 Click configuration object. More... | |
Enumerations | |
enum | pwrmeter3_return_value_t { PWRMETER3_OK = 0 , PWRMETER3_ERROR = -1 } |
PWR Meter 3 Click return value data. More... | |
Functions | |
void | pwrmeter3_cfg_setup (pwrmeter3_cfg_t *cfg) |
PWR Meter 3 configuration object setup function. | |
err_t | pwrmeter3_init (pwrmeter3_t *ctx, pwrmeter3_cfg_t *cfg) |
PWR Meter 3 initialization function. | |
err_t | pwrmeter3_default_cfg (pwrmeter3_t *ctx) |
PWR Meter 3 default configuration function. | |
err_t | pwrmeter3_write_register (pwrmeter3_t *ctx, uint8_t reg, uint32_t data_in) |
PWR Meter 3 write register function. | |
err_t | pwrmeter3_read_register (pwrmeter3_t *ctx, uint8_t reg, uint32_t *data_out) |
PWR Meter 3 read register function. | |
uint8_t | pwrmeter3_get_dio0_pin (pwrmeter3_t *ctx) |
PWR Meter 3 get dio0 pin function. | |
uint8_t | pwrmeter3_get_dio1_pin (pwrmeter3_t *ctx) |
PWR Meter 3 get dio1 pin function. | |
void | pwrmeter3_enable_device (pwrmeter3_t *ctx) |
PWR Meter 3 enable device function. | |
void | pwrmeter3_disable_device (pwrmeter3_t *ctx) |
PWR Meter 3 disable device function. | |
err_t | pwrmeter3_allow_write_access (pwrmeter3_t *ctx) |
PWR Meter 3 allow write access function. | |
err_t | pwrmeter3_deny_write_access (pwrmeter3_t *ctx) |
PWR Meter 3 deny write access function. | |
err_t | pwrmeter3_set_bypass_n_state (pwrmeter3_t *ctx, uint8_t state) |
PWR Meter 3 set bypass n state function. | |
err_t | pwrmeter3_set_num_samples (pwrmeter3_t *ctx, uint16_t num_samples) |
PWR Meter 3 set num samples function. | |
err_t | pwrmeter3_set_dio0_sel (pwrmeter3_t *ctx, uint8_t dio_sel) |
PWR Meter 3 set dio0 sel function. | |
err_t | pwrmeter3_set_dio1_sel (pwrmeter3_t *ctx, uint8_t dio_sel) |
PWR Meter 3 set dio1 sel function. | |
err_t | pwrmeter3_set_ovrms_threshold (pwrmeter3_t *ctx, uint8_t ovrms) |
PWR Meter 3 set ovrms threshold function. | |
err_t | pwrmeter3_set_uvrms_threshold (pwrmeter3_t *ctx, uint8_t uvrms) |
PWR Meter 3 set uvrms threshold function. | |
err_t | pwrmeter3_read_rms (pwrmeter3_t *ctx, float *v_rms, float *i_rms) |
PWR Meter 3 read rms function. | |
err_t | pwrmeter3_read_average_rms (pwrmeter3_t *ctx, float *v_rms, float *i_rms, uint16_t num_avg) |
PWR Meter 3 read average rms function. | |
This file contains API for PWR Meter 3 Click Driver.