2 #ifdef HAVE_NDEF_SUPPORT
130 return strlen(uri_header);
142 uint8_t text_length, info_length;
143 parsed->ndef_type = in_buffer[APDU_OFF_P1];
144 parsed->uri_id = in_buffer[APDU_OFF_P2];
145 text_length = in_buffer[APDU_OFF_DATA];
149 memcpy(parsed->text, &in_buffer[APDU_OFF_DATA + 1], text_length);
150 parsed->text[text_length] =
'\0';
151 info_length = in_buffer[APDU_OFF_DATA + 1 + text_length];
156 memcpy(parsed->info, &in_buffer[APDU_OFF_DATA + 1 + text_length + 1], info_length);
157 parsed->info[info_length] =
'\0';
174 tot_length += strlen(ndef_message->text);
178 strcpy(out_string, ndef_message->text);
182 length_internal = strlen(ndef_message->text);
186 strcpy(&out_string[tot_length], ndef_message->text);
187 tot_length += length_internal;
188 if (ndef_message->info[0] !=
'\0') {
189 out_string[tot_length++] =
'\n';
190 length_internal = strlen(ndef_message->info);
194 strcpy(&out_string[tot_length], ndef_message->info);
195 tot_length += length_internal;
#define URI_ID_0x07_STRING
#define URI_ID_0x23_STRING
#define URI_ID_0x12_STRING
#define URI_ID_0x0A_STRING
#define URI_ID_0x14_STRING
#define URI_ID_0x0E_STRING
#define URI_ID_0x21_STRING
#define URI_ID_0x18_STRING
#define URI_ID_0x05_STRING
#define URI_ID_0x06_STRING
#define URI_ID_0x11_STRING
#define URI_ID_0x0C_STRING
#define URI_ID_0x1C_STRING
uint8_t os_parse_ndef(uint8_t *in_buffer, ndef_struct_t *parsed)
#define URI_ID_0x1A_STRING
#define URI_ID_0x1D_STRING
#define URI_ID_0x1B_STRING
#define URI_ID_0x0F_STRING
#define URI_ID_0x08_STRING
#define URI_ID_0x10_STRING
#define URI_ID_0x0D_STRING
#define URI_ID_0x09_STRING
#define URI_ID_0x17_STRING
#define URI_ID_0x20_STRING
#define URI_ID_0x1F_STRING
#define URI_ID_0x13_STRING
#define URI_ID_0x22_STRING
#define URI_ID_0x19_STRING
#define NFC_NDEF_TYPE_URI
#define URI_ID_STRING_MAX_LEN
#define URI_ID_0x02_STRING
#define URI_ID_0x15_STRING
#define NFC_NDEF_TYPE_TEXT
#define URI_ID_0x0B_STRING
#define URI_ID_0x04_STRING
uint16_t os_get_uri_header(uint8_t uri_id, char *uri_header)
#define NFC_NDEF_MAX_SIZE
#define URI_ID_0x03_STRING
#define URI_ID_0x1E_STRING
#define URI_ID_0x01_STRING
uint16_t os_ndef_to_string(ndef_struct_t *ndef_message, char *out_string)
#define URI_ID_0x16_STRING