30 void setup()
override;
32 void dump_config()
override;
34 void update()
override;
44 uint32_t get_measurement_timing_budget_();
45 bool set_measurement_timing_budget_(uint32_t budget_us);
49 uint32_t get_macro_period_(uint8_t vcsel_period_pclks);
51 uint32_t timeout_mclks_to_microseconds_(uint16_t timeout_period_mclks, uint8_t vcsel_period_pclks);
52 uint32_t timeout_microseconds_to_mclks_(uint32_t timeout_period_us, uint8_t vcsel_period_pclks);
54 uint16_t decode_timeout_(uint16_t reg_val);
55 uint16_t encode_timeout_(uint16_t timeout_mclks);
57 bool perform_single_ref_calibration_(uint8_t vhv_init_byte);
63 bool initiated_read_{
false};
64 bool waiting_for_interrupt_{
false};
68 uint16_t timeout_us_{};
const float DATA
For components that import data from directly connected sensors like DHT.
uint16_t pre_range_vcsel_period_pclks
static bool enable_pin_setup_complete
This class simplifies creating components that periodically check a state.
void set_signal_rate_limit(float signal_rate_limit)
uint32_t measurement_timing_budget_us_
void set_timeout_us(uint32_t timeout_us)
uint16_t timeout_start_us_
static std::list< VL53L0XSensor * > vl53_sensors
void set_enable_pin(GPIOPin *enable)
Implementation of SPI Controller mode.
float get_setup_priority() const override
void set_long_range(bool long_range)
Base-class for all sensors.
This Class provides the methods to read/write bytes from/to an i2c device.