EasyManua.ls Logo

Espressif ESP32-S2 - Page 259

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
TIMER_COUNT_UP = 1
Ascending Count from Zero
TIMER_COUNT_MAX
enum timer_start_t
Decides whether timer is on or paused.
Values:
TIMER_PAUSE = 0
Pause timer counter
TIMER_START = 1
Start timer counter
enum timer_intr_t
Interrupt types of the timer.
Values:
TIMER_INTR_T0 = BIT(0)
interrupt of timer 0
TIMER_INTR_T1 = BIT(1)
interrupt of timer 1
TIMER_INTR_WDT = BIT(2)
interrupt of watchdog
TIMER_INTR_NONE = 0
enum timer_alarm_t
Decides whether to enable alarm mode.
Values:
TIMER_ALARM_DIS = 0
Disable timer alarm
TIMER_ALARM_EN = 1
Enable timer alarm
TIMER_ALARM_MAX
enum timer_intr_mode_t
Select interrupt type if running in alarm mode.
Values:
TIMER_INTR_LEVEL = 0
Interrupt mode: level mode
TIMER_INTR_MAX
enum timer_autoreload_t
Select if Alarm needs to be loaded by software or automatically reload by hardware.
Values:
TIMER_AUTORELOAD_DIS = 0
Disable auto-reload: hardware will not load counter value after an alarm event
TIMER_AUTORELOAD_EN = 1
Enable auto-reload: hardware will load counter value after an alarm event
TIMER_AUTORELOAD_MAX
enum timer_src_clk_t
Select timer source clock.
Values:
Espressif Systems 248
Submit Document Feedback
Release v4.4

Table of Contents