2021-08-20 19:56:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <m-string.h>
|
2021-11-08 21:55:06 +00:00
|
|
|
#include <storage/storage.h>
|
2021-08-20 19:56:43 +00:00
|
|
|
|
|
|
|
/** Get EMV application name by number
|
2021-11-08 21:55:06 +00:00
|
|
|
* @param storage Storage instance
|
2021-08-20 19:56:43 +00:00
|
|
|
* @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
|
|
|
|
*/
|
2021-11-08 21:55:06 +00:00
|
|
|
bool nfc_emv_parser_get_aid_name(
|
|
|
|
Storage* storage,
|
|
|
|
uint8_t* aid,
|
|
|
|
uint8_t aid_len,
|
|
|
|
string_t aid_name);
|
2021-08-20 19:56:43 +00:00
|
|
|
|
|
|
|
/** Get country name by country code
|
2021-11-08 21:55:06 +00:00
|
|
|
* @param storage Storage instance
|
2021-08-20 19:56:43 +00:00
|
|
|
* @param country_code - ISO 3166 country code
|
|
|
|
* @param country_name - string to keep country name
|
|
|
|
* @return - true if country found, false otherwies
|
|
|
|
*/
|
2021-11-08 21:55:06 +00:00
|
|
|
bool nfc_emv_parser_get_country_name(
|
|
|
|
Storage* storage,
|
|
|
|
uint16_t country_code,
|
|
|
|
string_t country_name);
|
2021-08-20 19:56:43 +00:00
|
|
|
|
|
|
|
/** Get currency name by currency code
|
2021-11-08 21:55:06 +00:00
|
|
|
* @param storage Storage instance
|
2021-08-20 19:56:43 +00:00
|
|
|
* @param currency_code - ISO 3166 currency code
|
|
|
|
* @param currency_name - string to keep currency name
|
|
|
|
* @return - true if currency found, false otherwies
|
|
|
|
*/
|
2021-11-08 21:55:06 +00:00
|
|
|
bool nfc_emv_parser_get_currency_name(
|
|
|
|
Storage* storage,
|
|
|
|
uint16_t currency_code,
|
|
|
|
string_t currency_name);
|