unleashed-firmware/applications/main/nfc/helpers/nfc_detected_protocols.h
Astra f73d60cba8
[FL-3766] Refactor detected protocols list (#3809)
* Refactor detected protocols list
* nfc app: fix detect protocols file name
* nfc app: fix function naming
* nfc app: fix detected protocol menu selection

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
2024-08-01 06:37:37 +09:00

29 lines
947 B
C

#pragma once
#include <stdint.h>
#include <nfc/protocols/nfc_protocol.h>
typedef struct NfcDetectedProtocols NfcDetectedProtocols;
NfcDetectedProtocols* nfc_detected_protocols_alloc(void);
void nfc_detected_protocols_free(NfcDetectedProtocols* instance);
void nfc_detected_protocols_reset(NfcDetectedProtocols* instance);
void nfc_detected_protocols_select(NfcDetectedProtocols* instance, uint32_t idx);
void nfc_detected_protocols_set(
NfcDetectedProtocols* instance,
const NfcProtocol* types,
uint32_t count);
uint32_t nfc_detected_protocols_get_num(NfcDetectedProtocols* instance);
NfcProtocol nfc_detected_protocols_get_protocol(NfcDetectedProtocols* instance, uint32_t idx);
void nfc_detected_protocols_fill_all_protocols(NfcDetectedProtocols* instance);
NfcProtocol nfc_detected_protocols_get_selected(NfcDetectedProtocols* instance);
uint32_t nfc_detected_protocols_get_selected_idx(NfcDetectedProtocols* instance);