rfmeter 2.0.0.0
rfmeter.h File Reference

This file contains API for RF Meter Click driver. More...

#include "drv_digital_out.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  rfmeter_t
 Click ctx object definition. More...
 
struct  rfmeter_cfg_t
 Click configuration structure definition. More...
 

Macros

#define RFMETER_MAP_MIKROBUS(cfg, mikrobus)
 
#define RFMETER_RETVAL   uint8_t
 
#define RFMETER_OK   0x00
 
#define RFMETER_INIT_ERROR   0xFF
 
#define RFMETER_FILTER_USEFULL_DATA   0x1FFE
 
#define RFMETER_ADC_RESOLUTION   4096
 
#define RFMETER_DATA_SAMPLE_NUM   10
 
#define RFMETER_DEF_VREF   2.5
 
#define RFMETER_DEF_SLOPE   -0.025
 
#define RFMETER_DEF_INTERCEPT   20.0
 
#define RFMETER_DEF_LIMIT_HIGH   2.0
 
#define RFMETER_DEF_LIMIT_LOW   0.5
 

Functions

void rfmeter_cfg_setup (rfmeter_cfg_t *cfg)
 Config Object Initialization function.
 
RFMETER_RETVAL rfmeter_init (rfmeter_t *ctx, rfmeter_cfg_t *cfg)
 Initialization function.
 
uint16_t rfmeter_read_data (rfmeter_t *ctx)
 Data read function.
 
uint16_t rfmeter_get_raw_data (rfmeter_t *ctx)
 Get raw data function.
 
float rfmeter_get_voltage (rfmeter_t *ctx)
 Get voltage function.
 
float rfmeter_get_signal_strenght (rfmeter_t *ctx, float slope, float intercept)
 Get signal strenght function.
 

Detailed Description

This file contains API for RF Meter Click driver.