28 std::string get_wind_cardinal_direction()
const;
33 wind_direction_degrees_sensor_ = wind_direction_degrees_sensor;
36 void setup()
override;
37 void dump_config()
override;
38 float get_setup_priority()
const override;
42 void decode_and_publish_();
volatile uint8_t buffer_index
volatile uint32_t spent_time
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
static void gpio_intr(Tx20ComponentStore *arg)
This class implements support for the Tx20 Wind sensor.
volatile uint32_t start_time
void set_wind_speed_sensor(sensor::Sensor *wind_speed_sensor)
void set_wind_direction_degrees_sensor(sensor::Sensor *wind_direction_degrees_sensor)
Store data in a class that doesn't use multiple-inheritance (vtables in flash)
volatile bool tx20_available
std::string wind_cardinal_direction_
volatile uint16_t * buffer
Implementation of SPI Controller mode.
void set_pin(InternalGPIOPin *pin)
Tx20ComponentStore store_
Base-class for all sensors.