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
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
28enum {
33};
34
35int infuse_validation_button(const struct gpio_dt_spec *button, uint8_t flags);
36
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_BUTTON_H_ */
int infuse_validation_button(const struct gpio_dt_spec *button, uint8_t flags)
@ VALIDATION_BUTTON_MODE_RELEASE
Definition button.h:30
@ VALIDATION_BUTTON_MODE_BOTH
Definition button.h:31
@ VALIDATION_BUTTON_MODE_TRIGGER
Definition button.h:29