ESPHome 2026.1.4
Loading...
Searching...
No Matches
hw_timer_esp_idf.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_ESP32
3
4#include "driver/gptimer_types.h"
5
6namespace esphome::ac_dimmer {
7
8struct HWTimer;
9
10HWTimer *timer_begin(uint32_t frequency);
11
12void timer_attach_interrupt(HWTimer *timer, void (*user_func)());
13void timer_alarm(HWTimer *timer, uint64_t alarm_value, bool autoreload, uint64_t reload_count);
14
15} // namespace esphome::ac_dimmer
16
17#endif
uint16_le_t frequency
Definition bl0942.h:6
void timer_attach_interrupt(HWTimer *timer, voidFuncPtr user_func)
void timer_alarm(HWTimer *timer, uint64_t alarm_value, bool autoreload, uint64_t reload_count)
HWTimer * timer_begin(uint32_t frequency)