2023-04-01 21:37:04 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
2023-07-10 19:59:25 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-05-13 14:43:11 +03:00
|
|
|
// Default btn ID
|
2024-07-15 20:02:45 +03:00
|
|
|
#define SUBGHZ_CUSTOM_BTN_OK (0U)
|
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_UP (1U)
|
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_DOWN (2U)
|
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_LEFT (3U)
|
2023-05-13 14:43:11 +03:00
|
|
|
#define SUBGHZ_CUSTOM_BTN_RIGHT (4U)
|
|
|
|
|
|
2023-05-14 01:34:43 +03:00
|
|
|
bool subghz_custom_btn_set(uint8_t btn_id);
|
2023-04-01 21:37:04 +03:00
|
|
|
|
2024-04-04 22:55:39 +03:00
|
|
|
uint8_t subghz_custom_btn_get(void);
|
2023-04-01 21:37:04 +03:00
|
|
|
|
2024-04-04 22:55:39 +03:00
|
|
|
uint8_t subghz_custom_btn_get_original(void);
|
2023-04-01 21:37:04 +03:00
|
|
|
|
2024-04-04 22:55:39 +03:00
|
|
|
void subghz_custom_btns_reset(void);
|
2023-05-14 01:34:43 +03:00
|
|
|
|
2024-04-04 22:55:39 +03:00
|
|
|
bool subghz_custom_btn_is_allowed(void);
|
2023-07-10 19:59:25 +03:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
2024-07-15 20:02:45 +03:00
|
|
|
#endif
|