Loading...
Searching...
No Matches
pin_code.h
1#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5
6#define DESKTOP_PIN_CODE_MIN_LEN (4)
7#define DESKTOP_PIN_CODE_MAX_LEN (10)
8
9typedef struct {
10 uint8_t data[DESKTOP_PIN_CODE_MAX_LEN];
11 uint8_t length;
13
14bool desktop_pin_code_is_set(void);
15
16void desktop_pin_code_set(const DesktopPinCode* pin_code);
17
18void desktop_pin_code_reset(void);
19
20bool desktop_pin_code_check(const DesktopPinCode* pin_code);
21
22bool desktop_pin_code_is_equal(const DesktopPinCode* pin_code1, const DesktopPinCode* pin_code2);
23
24void desktop_pin_lock_error_notify(void);
25
26uint32_t desktop_pin_lock_get_fail_timeout(void);
Definition pin_code.h:9