|
esp32-warm-water
esp32 based project for the control of a heating element based on temperature
|
defininitions for wrapper component which assists in setting up timers More...
#include <stdbool.h>#include "esp_timer.h"

Go to the source code of this file.
Functions | |
| void | general_timer_init (esp_timer_handle_t timer, void(timer_callback)(void *arg), bool periodic, int period_in_seconds, char *timer_name) |
| void | general_timer_deinit (esp_timer_handle_t timer) |
defininitions for wrapper component which assists in setting up timers
Definition in file timer.h.
| void general_timer_deinit | ( | esp_timer_handle_t | timer | ) |
| void general_timer_init | ( | esp_timer_handle_t | timer, |
| void(timer_callback)(void *arg) | , | ||
| bool | periodic, | ||
| int | period_in_millis, | ||
| char * | timer_name | ||
| ) |
set up a periodic or oneshot timer
| timer | a locally defined timer passed through to this function |
| timer_callback | a callback function with the params (void *arg) which is called when the alarm triggers |
| periodic | a boolean checking whether the timer should be set up to be reset when it is triggered |
| period_in_millis | the period between start and trigger |
| timer_name | a name for the timer for the sake of debugging |
Definition at line 51 of file timer.c.
