mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-26 03:39:58 -07:00
29 lines
679 B
C
29 lines
679 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#define DESKTOP_PIN_CODE_MIN_LEN (4)
|
|
#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);
|