rmstodc 2.0.0.0
|
This file contains API for RMS to DC 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 | rmstodc_t |
Click ctx object definition. More... | |
struct | rmstodc_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RMSTODC_MAP_MIKROBUS(cfg, mikrobus) |
#define | RMSTODC_RETVAL uint8_t |
#define | RMSTODC_OK 0x00 |
#define | RMSTODC_INIT_ERROR 0xFF |
#define | ADC_RESOLUTION 4096 |
#define | RMS2DC_DEVICE_ADDR 0x4D |
#define | RMS2DC_DEVICE_EN 0x00 |
#define | RMS2DC_DEVICE_DIS 0x01 |
#define | RMS2DC_VCC_3V3 3300 |
#define | RMS2DC_VCC_5V 5000 |
Functions | |
void | rmstodc_cfg_setup (rmstodc_cfg_t *cfg) |
Config Object Initialization function. | |
RMSTODC_RETVAL | rmstodc_init (rmstodc_t *ctx, rmstodc_cfg_t *cfg) |
Initialization function. | |
uint16_t | rms2dc_read_adc (rmstodc_t *ctx) |
ADC Read function. | |
uint16_t | rms2dc_vout_adc (rmstodc_t *ctx, uint16_t vcc_sel) |
Get Output Voltage function. | |
void | rms2dc_enable (rmstodc_t *ctx, uint8_t state) |
Enable function. | |
This file contains API for RMS to DC Click driver.