mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-09 05:49:09 -07:00
- Keybinds in own code helper files - Keybinds as flipper format, loaded only when ran, no limit on length - Migrate from old keybinds - Merge desktop settings refactors after LFS removal PR - Statusbar clock setting in desktop settings like OFW - Hand orient setting in system settings like OFW
28 lines
642 B
C
28 lines
642 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define DESKTOP_PIN_CODE_MAX_LEN (10)
|
|
|
|
#define DESKTOP_SETTINGS_RUN_PIN_SETUP_ARG "run_pin_setup"
|
|
|
|
typedef struct {
|
|
uint8_t data[DESKTOP_PIN_CODE_MAX_LEN];
|
|
uint8_t length;
|
|
} DesktopPinCode;
|
|
|
|
bool desktop_pin_code_is_set(void);
|
|
|
|
void desktop_pin_code_set(const DesktopPinCode* pin_code);
|
|
|
|
void desktop_pin_code_reset(void);
|
|
|
|
bool desktop_pin_code_check(const DesktopPinCode* pin_code);
|
|
|
|
bool desktop_pin_code_is_equal(const DesktopPinCode* pin_code1, const DesktopPinCode* pin_code2);
|
|
|
|
void desktop_pin_lock_error_notify(void);
|
|
|
|
uint32_t desktop_pin_lock_get_fail_timeout(void);
|