mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 00:33:09 +00:00
4bf29827f8
* Quicksave 1 * Header stage complete * Source stage complete * Lint & merge fixes * Includes * Documentation step 1 * FBT: output free size considering BT STACK * Documentation step 2 * py lint * Fix music player plugin * unit test stage 1: string allocator, mem, getters, setters, appends, compare, search. * unit test: string equality * unit test: string replace * unit test: string start_with, end_with * unit test: string trim * unit test: utf-8 * Rename * Revert fw_size changes * Simplify CLI backspace handling * Simplify CLI character insert * Merge fixes * Furi: correct filenaming and spelling * Bt: remove furi string include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <storage/storage.h>
|
|
|
|
/** Get EMV application name by number
|
|
* @param storage Storage instance
|
|
* @param aid - AID number array
|
|
* @param aid_len - AID length
|
|
* @param aid_name - string to keep AID name
|
|
* @return - true if AID found, false otherwies
|
|
*/
|
|
bool nfc_emv_parser_get_aid_name(
|
|
Storage* storage,
|
|
uint8_t* aid,
|
|
uint8_t aid_len,
|
|
FuriString* aid_name);
|
|
|
|
/** Get country name by country code
|
|
* @param storage Storage instance
|
|
* @param country_code - ISO 3166 country code
|
|
* @param country_name - string to keep country name
|
|
* @return - true if country found, false otherwies
|
|
*/
|
|
bool nfc_emv_parser_get_country_name(
|
|
Storage* storage,
|
|
uint16_t country_code,
|
|
FuriString* country_name);
|
|
|
|
/** Get currency name by currency code
|
|
* @param storage Storage instance
|
|
* @param currency_code - ISO 3166 currency code
|
|
* @param currency_name - string to keep currency name
|
|
* @return - true if currency found, false otherwies
|
|
*/
|
|
bool nfc_emv_parser_get_currency_name(
|
|
Storage* storage,
|
|
uint16_t currency_code,
|
|
FuriString* currency_name);
|