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
20extern "C" {
21#endif
22
28
29enum {
37};
38
51int 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_ */
int infuse_validation_button(const struct gpio_dt_spec *button, uint8_t flags)
Validate that button transitions can be observed.
@ VALIDATION_BUTTON_MODE_RELEASE
Wait for the button to transition to the inactive state.
Definition button.h:33
@ VALIDATION_BUTTON_MODE_BOTH
Wait for both trigger and release transitions.
Definition button.h:35
@ VALIDATION_BUTTON_MODE_TRIGGER
Wait for the button to transition to the active state.
Definition button.h:31