 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>
		
			
				
	
	
		
			41 lines
		
	
	
		
			832 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			832 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "iso15693_3_poller.h"
 | |
| 
 | |
| #include "iso15693_3_i.h"
 | |
| 
 | |
| #include <toolbox/bit_buffer.h>
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| #define ISO15693_3_POLLER_MAX_BUFFER_SIZE (64U)
 | |
| 
 | |
| typedef enum {
 | |
|     Iso15693_3PollerStateIdle,
 | |
|     Iso15693_3PollerStateColResInProgress,
 | |
|     Iso15693_3PollerStateColResFailed,
 | |
|     Iso15693_3PollerStateActivated,
 | |
| } Iso15693_3PollerState;
 | |
| 
 | |
| struct Iso15693_3Poller {
 | |
|     Nfc* nfc;
 | |
|     Iso15693_3PollerState state;
 | |
|     Iso15693_3Data* data;
 | |
|     BitBuffer* tx_buffer;
 | |
|     BitBuffer* rx_buffer;
 | |
| 
 | |
|     NfcGenericEvent general_event;
 | |
|     Iso15693_3PollerEvent iso15693_3_event;
 | |
|     Iso15693_3PollerEventData iso15693_3_event_data;
 | |
|     NfcGenericCallback callback;
 | |
|     void* context;
 | |
| };
 | |
| 
 | |
| const Iso15693_3Data* iso15693_3_poller_get_data(Iso15693_3Poller* instance);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 |