STIMA  3
Macros
i2c-rain-config.h File Reference
#include <sensors_config.h>
Include dependency graph for i2c-rain-config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MODULE_MAIN_VERSION   (3)
 Module main version.
 
#define MODULE_MINOR_VERSION   (18)
 Module minor version.
 
#define MODULE_CONFIGURATION_VERSION   (2)
 Module version of compatibile configuration. If you change it, you have to reconfigure.
 
#define MODULE_TYPE   (STIMA_MODULE_TYPE_RAIN)
 Type of module. It is defined in registers.h.
 
#define TIPPING_BUCKET_PIN   (2)
 Interrupt pin for tipping bucket rain gauge.
 
#define CONFIGURATION_DEFAULT_TIPPING_BUCKET_TIME_MS   (50)
 Tipping bucket time in milliseconds.
 
#define CONFIGURATION_DEFAULT_RAIN_FOR_TIP   (1)
 
#define CONFIGURATION_DEFAULT_IS_ONESHOT   (true)
 Oneshot mode for default.
 
#define CONFIGURATION_DEFAULT_IS_CONTINUOUS   (false)
 Continuous mode for default.
 
#define CONFIGURATION_DEFAULT_I2C_ADDRESS   (I2C_RAIN_DEFAULT_ADDRESS)
 Default i2c address.
 
#define CONFIGURATION_RESET_PIN   (8)
 Input pin for reset configuration at startup.
 
#define SDCARD_CHIP_SELECT_PIN   7
 Chip select for SDcard SPI.
 
#define SPI_SPEED   SD_SCK_MHZ(4)
 Clock speed for SPI and SDcard.
 
#define I2C_MAX_TIME   (12)
 Max i2c time in seconds before i2c restart.
 
#define USE_POWER_DOWN   (true)
 Enable or disable power down.
 
#define DEBOUNCING_POWER_DOWN_TIME_MS   (10)
 Debounce power down ms.
 
#define USE_TIMER_1   (true)
 Enable or disable timer1.
 
#define WDT_TIMER   (WDTO_4S)
 Watchdog timer for periodically check microprocessor block states. More...
 
#define TIMER1_INTERRUPT_TIME_MS   (4000)
 Value in milliseconds for generating timer1 interrupt: 100 - 8000 [ms].
 
#define TIMER1_TCNT1_VALUE   (0xFFFFUL - (TIMER1_INTERRUPT_TIME_MS*1000UL/(1024 / (F_CPU/1000000)))+1)
 Timer1 timer overflow with 1024 prescaler.
 
#define TRANSACTION_TIMEOUT_MS   (5000)
 Timeout for command transaction.
 

Macro Definition Documentation

◆ CONFIGURATION_DEFAULT_RAIN_FOR_TIP

#define CONFIGURATION_DEFAULT_RAIN_FOR_TIP   (1)

brief How much mm/10 of rain for one tip of tipping bucket rain gauge.

◆ WDT_TIMER

#define WDT_TIMER   (WDTO_4S)

Watchdog timer for periodically check microprocessor block states.

Possible value for WDT_TIMER are: WDTO_15MS, WDTO_30MS, WDTO_60MS, WDTO_120MS, WDTO_250MS, WDTO_500MS, WDTO_1S, WDTO_2S, WDTO_4S, WDTO_8S