mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
6bc63b7734
* slix: add unlock option * slix: add features for nxp get info and signature commands * slix: working unlock * nfc app: rewrite slix unlock * slix poller: simplify unlock state handler * nfc app: fix slix key setting * nfc app: fix navigation * slix poller: code clean up * slix: resolve TODO, clean code * nfc app: fix naming * nfc app: rework slix unlock success scene * slix poller: add documentation * slix listener: fix password comparison Co-authored-by: あく <alleteam@gmail.com>
30 lines
617 B
C
30 lines
617 B
C
#pragma once
|
|
|
|
#include <nfc/protocols/slix/slix.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
SlixUnlockMethodManual,
|
|
SlixUnlockMethodTonieBox,
|
|
} SlixUnlockMethod;
|
|
|
|
typedef struct SlixUnlock SlixUnlock;
|
|
|
|
SlixUnlock* slix_unlock_alloc();
|
|
|
|
void slix_unlock_free(SlixUnlock* instance);
|
|
|
|
void slix_unlock_reset(SlixUnlock* instance);
|
|
|
|
void slix_unlock_set_method(SlixUnlock* instance, SlixUnlockMethod method);
|
|
|
|
void slix_unlock_set_password(SlixUnlock* instance, SlixPassword password);
|
|
|
|
bool slix_unlock_get_next_password(SlixUnlock* instance, SlixPassword* password);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|