api-hal-nfc.h 623 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include <rfal_nfc.h>
  3. #include <st_errno.h>
  4. #include <stdbool.h>
  5. #include <stdint.h>
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /**
  10. * Init nfc
  11. */
  12. ReturnCode api_hal_nfc_init();
  13. /**
  14. * Check if nfc worker is busy
  15. */
  16. bool api_hal_nfc_is_busy();
  17. /**
  18. * NFC field on
  19. */
  20. void api_hal_nfc_field_on();
  21. /**
  22. * NFC field off
  23. */
  24. void api_hal_nfc_field_off();
  25. /**
  26. * NFC start sleep
  27. */
  28. void api_hal_nfc_start_sleep();
  29. /**
  30. * NFC stop sleep
  31. */
  32. void api_hal_nfc_exit_sleep();
  33. /**
  34. * NFC poll
  35. */
  36. bool api_hal_nfc_detect(rfalNfcDevice** dev_list, uint8_t* dev_cnt, uint32_t cycles);
  37. #ifdef __cplusplus
  38. }
  39. #endif