2023-04-01 18:37:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2023-05-13 11:43:11 +00:00
|
|
|
// Default btn ID
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_OK (0U)
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_UP (1U)
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_DOWN (2U)
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_LEFT (3U)
|
|
|
|
#define SUBGHZ_CUSTOM_BTN_RIGHT (4U)
|
|
|
|
|
2023-05-13 22:34:43 +00:00
|
|
|
bool subghz_custom_btn_set(uint8_t btn_id);
|
2023-04-01 18:37:04 +00:00
|
|
|
|
|
|
|
uint8_t subghz_custom_btn_get();
|
|
|
|
|
|
|
|
uint8_t subghz_custom_btn_get_original();
|
|
|
|
|
2023-05-13 22:34:43 +00:00
|
|
|
void subghz_custom_btns_reset();
|
|
|
|
|
|
|
|
bool subghz_custom_btn_is_allowed();
|