GrowNode
gn_ds18b20.c File Reference

Data Structures

struct  gn_ds18b20_data_t
 

Macros

#define TAG   "gn_leaf_ds18b20"
 

Functions

void gn_ds18b20_task (gn_leaf_handle_t leaf_config)
 
void _scan_sensors (int gpio, size_t *sensor_count, ds18x20_addr_t *addrs)
 
gn_leaf_param_validator_result_t _gn_upd_time_sec_validator (gn_leaf_param_handle_t param, void **param_value)
 
void gn_ds18b20_temp_sensor_collect (gn_leaf_handle_t leaf_config)
 
gn_leaf_descriptor_handle_t gn_ds18b20_config (gn_leaf_handle_t leaf_config)
 

Variables

const size_t GN_DS18B20_STATE_STOP = 0
 
const size_t GN_DS18B20_STATE_RUNNING = 1
 

Macro Definition Documentation

◆ TAG

#define TAG   "gn_leaf_ds18b20"

Function Documentation

◆ _gn_upd_time_sec_validator()

gn_leaf_param_validator_result_t _gn_upd_time_sec_validator ( gn_leaf_param_handle_t  param,
void **  param_value 
)

◆ _scan_sensors()

void _scan_sensors ( int  gpio,
size_t *  sensor_count,
ds18x20_addr_t *  addrs 
)

◆ gn_ds18b20_config()

gn_leaf_descriptor_handle_t gn_ds18b20_config ( gn_leaf_handle_t  leaf_config)

◆ gn_ds18b20_task()

void gn_ds18b20_task ( gn_leaf_handle_t  leaf_config)

◆ gn_ds18b20_temp_sensor_collect()

void gn_ds18b20_temp_sensor_collect ( gn_leaf_handle_t  leaf_config)

Variable Documentation

◆ GN_DS18B20_STATE_RUNNING

const size_t GN_DS18B20_STATE_RUNNING = 1

◆ GN_DS18B20_STATE_STOP

const size_t GN_DS18B20_STATE_STOP = 0