Infuse-IoT SDK API
0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
button.h
Go to the documentation of this file.
1
11
12
#ifndef INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_BUTTON_H_
13
#define INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_BUTTON_H_
14
15
#include <zephyr/device.h>
16
#include <zephyr/drivers/gpio.h>
17
#include <zephyr/sys/util.h>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
28
29
enum
{
31
VALIDATION_BUTTON_MODE_TRIGGER
= BIT(0),
33
VALIDATION_BUTTON_MODE_RELEASE
= BIT(1),
35
VALIDATION_BUTTON_MODE_BOTH
=
36
VALIDATION_BUTTON_MODE_TRIGGER
|
VALIDATION_BUTTON_MODE_RELEASE
,
37
};
38
51
int
infuse_validation_button
(
const
struct
gpio_dt_spec *button, uint8_t flags);
52
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_BUTTON_H_ */
infuse_validation_button
int infuse_validation_button(const struct gpio_dt_spec *button, uint8_t flags)
Validate that button transitions can be observed.
VALIDATION_BUTTON_MODE_RELEASE
@ VALIDATION_BUTTON_MODE_RELEASE
Wait for the button to transition to the inactive state.
Definition
button.h:33
VALIDATION_BUTTON_MODE_BOTH
@ VALIDATION_BUTTON_MODE_BOTH
Wait for both trigger and release transitions.
Definition
button.h:35
VALIDATION_BUTTON_MODE_TRIGGER
@ VALIDATION_BUTTON_MODE_TRIGGER
Wait for the button to transition to the active state.
Definition
button.h:31
infuse
validation
button.h
Generated on
for Infuse-IoT SDK API by
1.14.0