nRF Connect SDK API
3.3.99
Loading...
Searching...
No Matches
button_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
16
#ifndef _BUTTON_HANDLER_H_
17
#define _BUTTON_HANDLER_H_
18
19
#include <stdint.h>
20
#include <zephyr/drivers/gpio.h>
21
29
int
button_handler_init
(
void
);
30
38
int
button_pressed
(gpio_pin_t button_pin,
bool
*
button_pressed
);
39
44
#endif
/* _BUTTON_HANDLER_H_ */
button_handler_init
int button_handler_init(void)
Initialize button handler, with buttons defined in button_assignments.h.
button_pressed
int button_pressed(gpio_pin_t button_pin, bool *button_pressed)
Check button state.
applications
nrf_audio
src
modules
button_handler.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0