Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Alarm configuration flags

Used in alarm configuration structure (counter_alarm_cfg). More...

Macros

#define COUNTER_ALARM_CFG_ABSOLUTE   BIT(0)
 Counter alarm absolute value flag. More...
 
#define COUNTER_ALARM_CFG_EXPIRE_WHEN_LATE   BIT(1)
 Alarm flag enabling immediate expiration when driver detects that absolute alarm was set too late. More...
 

Detailed Description

Used in alarm configuration structure (counter_alarm_cfg).

Macro Definition Documentation

◆ COUNTER_ALARM_CFG_ABSOLUTE

#define COUNTER_ALARM_CFG_ABSOLUTE   BIT(0)

#include <include/drivers/counter.h>

Counter alarm absolute value flag.

Ticks relation to counter value. If set ticks are treated as absolute value, else it is relative to the counter reading performed during the call.

◆ COUNTER_ALARM_CFG_EXPIRE_WHEN_LATE

#define COUNTER_ALARM_CFG_EXPIRE_WHEN_LATE   BIT(1)

#include <include/drivers/counter.h>

Alarm flag enabling immediate expiration when driver detects that absolute alarm was set too late.

Alarm callback must be called from the same context as if it was set on time.