17 #ifndef _NFCCOMMANDS_H_INCLUDED 18 #define _NFCCOMMANDS_H_INCLUDED 20 #if MBED_CONF_NFCEEPROM 21 #include "NFCProcessEEPROM.h" 23 #include "NFCProcessCtrl.h" 27 #define MAX_URL_LENGTH 2000 29 #ifndef MBED_CONF_NFCEEPROM 30 #define MBED_CONF_NFCEEPROM false 39 void trace_printf(
const char *fmt, ...);
45 void set_trace_enable(
bool enabled =
true);
70 static int cmd_set_trace(
int argc,
char *argv[]);
80 static int cmd_erase(
int argc,
char *argv[]);
100 static void nfc_routine();
107 int cmd_is_iso7816_supported(
int argc,
char *argv[]);
108 int cmd_add_iso7816_application(
int argc,
char *argv[]);
109 int cmd_set_tagtype(
int argc,
char *argv[]);
110 int cmd_get_tagtype(
int argc,
char *argv[]);
112 #endif // _NFCCOMMANDS_H_INCLUDED static int cmd_stop_discovery(int argc, char *argv[])
stops the NFC discovery loop if controller
static int cmd_erase(int argc, char *argv[])
erases the EEPROM if present
static int cmd_set_last_nfc_error(int argc, char *argv[])
internal function to test getlastnfcerror
static int cmd_start_discovery(int argc, char *argv[])
starts the NFC discovery loop if controller, has no effect on EEPROM
static int cmd_configure_rf_protocols(int argc, char *argv[])
Sets the protocols supported (unimplemented)
static int cmd_get_supported_rf_protocols(int argc, char *argv[])
Returns a CSV list of protocols supported.
static int cmd_init_nfc(int argc, char *argv[])
Init must be called before invoking any other calls, obtains a driver reference and initializes drive...
static int cmd_read_message(int argc, char *argv[])
read raw EEPROM contents, reads a buffer if a controller is used
static int cmd_set_smartposter(int argc, char *argv[])
write a smartposter url, 'Sp' NDEF to the target
HandleTestCommand turns all the typed-in/serial commands into function calls sent via a eventqueue to...
static int cmd_write_long_ndef_message(int argc, char *argv[])
write a text 'T' NDEF message to the target
static int cmd_get_max_ndef(int argc, char *argv[])
For EEPROM, returns the driver max_ndef value, else returns the app config MBED_CONF_APP_TEST_NDEF_MS...
static int cmd_get_conf_nfceeprom(int argc, char *argv[])
returns compile time flag if NFC EEPROM was compiled
static int cmd_get_last_nfc_error(int argc, char *argv[])
return and clear the last result code.