GrowNode
gn_capacitive_moisture_sensor.c File Reference

Data Structures

struct  gn_cms_data_t
 

Macros

#define TAG   "gn_leaf_cms"
 
#define DEFAULT_VREF   1100
 
#define NO_OF_SAMPLES   64
 

Functions

void gn_cms_task (gn_leaf_handle_t leaf_config)
 
void gn_cms_sensor_collect (gn_leaf_handle_t leaf_config)
 
gn_leaf_descriptor_handle_t gn_capacitive_moisture_sensor_config (gn_leaf_handle_t leaf_config)
 

Variables

static const adc_atten_t atten = ADC_ATTEN_DB_11
 
static const adc_unit_t unit = ADC_UNIT_1
 
static const adc_bits_width_t width = ADC_WIDTH_BIT_12
 

Macro Definition Documentation

◆ DEFAULT_VREF

#define DEFAULT_VREF   1100

◆ NO_OF_SAMPLES

#define NO_OF_SAMPLES   64

◆ TAG

#define TAG   "gn_leaf_cms"

Function Documentation

◆ gn_capacitive_moisture_sensor_config()

gn_leaf_descriptor_handle_t gn_capacitive_moisture_sensor_config ( gn_leaf_handle_t  leaf_config)

◆ gn_cms_sensor_collect()

void gn_cms_sensor_collect ( gn_leaf_handle_t  leaf_config)

◆ gn_cms_task()

void gn_cms_task ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ atten

const adc_atten_t atten = ADC_ATTEN_DB_11
static

◆ unit

const adc_unit_t unit = ADC_UNIT_1
static

◆ width

const adc_bits_width_t width = ADC_WIDTH_BIT_12
static