unleashed-firmware/applications/main/nfc/helpers/nfc_emv_parser.h
Nikita Vostokov 1074af905c Use render
* Add transactions menu item
* Use nfc assets for country/currency/aid
* remove deprecated render
2024-01-28 22:45:26 +00:00

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 otherwise
*/
bool nfc_emv_parser_get_aid_name(
Storage* storage,
const 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 otherwise
*/
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 otherwise
*/
bool nfc_emv_parser_get_currency_name(
Storage* storage,
uint16_t currency_code,
FuriString* currency_name);