mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
#pragma once
|
|
#include <stdint.h>
|
|
#include <gui/view.h>
|
|
#include <gui/modules/widget.h>
|
|
|
|
typedef struct DetectReader DetectReader;
|
|
|
|
typedef enum {
|
|
DetectReaderStateStart,
|
|
DetectReaderStateReaderDetected,
|
|
DetectReaderStateReaderLost,
|
|
DetectReaderStateDone,
|
|
} DetectReaderState;
|
|
|
|
typedef void (*DetectReaderDoneCallback)(void* context);
|
|
|
|
DetectReader* detect_reader_alloc(void);
|
|
|
|
void detect_reader_free(DetectReader* detect_reader);
|
|
|
|
void detect_reader_reset(DetectReader* detect_reader);
|
|
|
|
View* detect_reader_get_view(DetectReader* detect_reader);
|
|
|
|
void detect_reader_set_callback(
|
|
DetectReader* detect_reader,
|
|
DetectReaderDoneCallback callback,
|
|
void* context);
|
|
|
|
void detect_reader_set_nonces_max(DetectReader* detect_reader, uint16_t nonces_max);
|
|
|
|
void detect_reader_set_nonces_collected(DetectReader* detect_reader, uint16_t nonces_collected);
|
|
|
|
void detect_reader_set_state(DetectReader* detect_reader, DetectReaderState state);
|
|
|
|
void detect_reader_set_uid(DetectReader* detect_reader, uint8_t* uid, uint8_t uid_len);
|