 c00776ca22
			
		
	
	
		c00776ca22
		
			
		
	
	
	
	
		
			
			* drivers: expose st25r3916 driver API * nfc poller: add start with custom callback * mf classic: rework sync API with poller custom start * mf ultralight: rework sync API with poller custom start * iso14443_3a poller: remove unused col res state * nfc: rework nfc poller custom start * mf ultralight: rename sync API * mf classic: rename sync API * iso14443-3a: rename sync API * nfc: remove async prefix in internal functions * nfc: expose internal API * nfc: fix sync api include and docs * targets: fix f18 build * nfc: rework NfcGenericEventEx type * nfc poller: add documentation * iso14443-3a poller: add documentation * felica poller: add documentation * iso14443_3b poller: add documentation * so14443_4a poller: add documentation * iso14443_4b poller: add documentation * iso15693 poller: add documentation * slix poller: add documentation * mf desfire poller: add documentation * mf ultralight poller: fix API and add documentation * mf classic poller: add documentation Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <nfc/protocols/iso14443_3a/iso14443_3a_poller_i.h>
 | |
| #include <nfc/helpers/iso14443_4_layer.h>
 | |
| 
 | |
| #include "iso14443_4a_poller.h"
 | |
| #include "iso14443_4a_i.h"
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #define ISO14443_4A_POLLER_ATS_FWT_FC (40000)
 | |
| 
 | |
| typedef enum {
 | |
|     Iso14443_4aPollerStateIdle,
 | |
|     Iso14443_4aPollerStateReadAts,
 | |
|     Iso14443_4aPollerStateError,
 | |
|     Iso14443_4aPollerStateReady,
 | |
| 
 | |
|     Iso14443_4aPollerStateNum,
 | |
| } Iso14443_4aPollerState;
 | |
| 
 | |
| typedef enum {
 | |
|     Iso14443_4aPollerSessionStateIdle,
 | |
|     Iso14443_4aPollerSessionStateActive,
 | |
|     Iso14443_4aPollerSessionStateStopRequest,
 | |
| } Iso14443_4aPollerSessionState;
 | |
| 
 | |
| struct Iso14443_4aPoller {
 | |
|     Iso14443_3aPoller* iso14443_3a_poller;
 | |
|     Iso14443_4aPollerState poller_state;
 | |
|     Iso14443_4aPollerSessionState session_state;
 | |
|     Iso14443_4aError error;
 | |
|     Iso14443_4aData* data;
 | |
|     Iso14443_4Layer* iso14443_4_layer;
 | |
|     BitBuffer* tx_buffer;
 | |
|     BitBuffer* rx_buffer;
 | |
|     Iso14443_4aPollerEventData iso14443_4a_event_data;
 | |
|     Iso14443_4aPollerEvent iso14443_4a_event;
 | |
|     NfcGenericEvent general_event;
 | |
|     NfcGenericCallback callback;
 | |
|     void* context;
 | |
| };
 | |
| 
 | |
| const Iso14443_4aData* iso14443_4a_poller_get_data(Iso14443_4aPoller* instance);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 |