mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-19 01:03:22 +00:00
ecff31d228
* assets: add EMV AID table for NFC app * file-worker: add searching for value by the key * nfc: add emv parser helpers * assets: add country and currency codes * nfc: add country and currency code parsing * emv_decoder: add country and currency code support * nfc: add AID. currency and country display * nfc: rework bank_card view * nfc: add currency and country save * assets: change emv chip asset * nfc: change asset in bank card * gui: add frame element to widget * nfc: add bank card frame, add documentation * rfal: fix long APDU command emulation * nfc: fix typos * Scripts ReadMe: assets delivery command Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com>
27 lines
928 B
C
Executable file
27 lines
928 B
C
Executable file
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <m-string.h>
|
|
|
|
/** Get EMV application name by number
|
|
* @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(uint8_t* aid, uint8_t aid_len, string_t aid_name);
|
|
|
|
/** Get country name by country code
|
|
* @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(uint16_t country_code, string_t country_name);
|
|
|
|
/** Get currency name by currency code
|
|
* @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(uint16_t currency_code, string_t currency_name);
|