* 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>
		
			
				
	
	
		
			40 lines
		
	
	
		
			909 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			909 B
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
#include "iso14443_3b_poller.h"
 | 
						|
#include "iso14443_3b_i.h"
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#define ISO14443_3B_POLLER_MAX_BUFFER_SIZE (256U)
 | 
						|
 | 
						|
typedef enum {
 | 
						|
    Iso14443_3bPollerStateIdle,
 | 
						|
    Iso14443_3bPollerStateColResInProgress,
 | 
						|
    Iso14443_3bPollerStateColResFailed,
 | 
						|
    Iso14443_3bPollerStateActivationInProgress,
 | 
						|
    Iso14443_3bPollerStateActivationFailed,
 | 
						|
    Iso14443_3bPollerStateActivated,
 | 
						|
} Iso14443_3bPollerState;
 | 
						|
 | 
						|
struct Iso14443_3bPoller {
 | 
						|
    Nfc* nfc;
 | 
						|
    Iso14443_3bPollerState state;
 | 
						|
    Iso14443_3bData* data;
 | 
						|
    BitBuffer* tx_buffer;
 | 
						|
    BitBuffer* rx_buffer;
 | 
						|
 | 
						|
    NfcGenericEvent general_event;
 | 
						|
    Iso14443_3bPollerEvent iso14443_3b_event;
 | 
						|
    Iso14443_3bPollerEventData iso14443_3b_event_data;
 | 
						|
    NfcGenericCallback callback;
 | 
						|
    void* context;
 | 
						|
};
 | 
						|
 | 
						|
const Iso14443_3bData* iso14443_3b_poller_get_data(Iso14443_3bPoller* instance);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |