#pragma once #include "nfc_types.h" #include "nfc_worker.h" #include #include #include #include #include #include #include #include #include #include #include struct NfcWorker { osMessageQueueId_t message_queue; osThreadAttr_t thread_attr; osThreadId_t thread; NfcWorkerState state; ReturnCode error; }; void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state); void nfc_worker_task(void* context); void nfc_worker_read_emv(NfcWorker* nfc_worker); void nfc_worker_poll(NfcWorker* nfc_worker); void nfc_worker_emulate(NfcWorker* nfc_worker); void nfc_worker_field(NfcWorker* nfc_worker);