nfc_emv_parser.h 928 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #include <m-string.h>
  5. /** Get EMV application name by number
  6. * @param aid - AID number array
  7. * @param aid_len - AID length
  8. * @param aid_name - string to keep AID name
  9. * @return - true if AID found, false otherwies
  10. */
  11. bool nfc_emv_parser_get_aid_name(uint8_t* aid, uint8_t aid_len, string_t aid_name);
  12. /** Get country name by country code
  13. * @param country_code - ISO 3166 country code
  14. * @param country_name - string to keep country name
  15. * @return - true if country found, false otherwies
  16. */
  17. bool nfc_emv_parser_get_country_name(uint16_t country_code, string_t country_name);
  18. /** Get currency name by currency code
  19. * @param currency_code - ISO 3166 currency code
  20. * @param currency_name - string to keep currency name
  21. * @return - true if currency found, false otherwies
  22. */
  23. bool nfc_emv_parser_get_currency_name(uint16_t currency_code, string_t currency_name);