Home | History | Annotate | Download | only in rw

Lines Matching refs:ndef

50 ** Description      Free buffer allocated to hold incoming NDEF message
66 ** Description Store data into NDEF buffer
184 ** Description Handler for NDEF detection reader/writer event
193 "NDEF Detection completed: cur_size=%i, max_size=%i, flags=0x%x",
194 p_rw_data->ndef.cur_size, p_rw_data->ndef.max_size,
195 p_rw_data->ndef.flags);
197 /* Check if NDEF detection succeeded */
198 if (p_rw_data->ndef.status == NFC_STATUS_OK) {
199 /* Set NDEF detection state */
203 /* Store ndef properties */
205 conn_evt_data.ndef_detect.protocol = p_rw_data->ndef.protocol;
207 p_rw_data->ndef.cur_size;
209 p_rw_data->ndef.max_size;
210 conn_evt_data.ndef_detect.flags = p_rw_data->ndef.flags;
212 if (p_rw_data->ndef.flags & RW_NDEF_FL_READ_ONLY)
217 /* Determine what operation triggered the NDEF detection procedure */
219 /* if ndef detection was done as part of ndef-read operation, then perform
220 * ndef read now */
223 /* Failed to start NDEF Read */
230 /* if ndef detection was done as part of ndef-write operation, then
231 * perform ndef write now */
234 /* Failed to start NDEF Write. */
249 /* NDEF detection failed... */
254 conn_evt_data.status = p_rw_data->ndef.status;
257 /* if ndef detection was done as part of ndef-read operation, then notify
258 * NDEF handlers of failure */
264 /* if ndef detection was done as part of ndef-write operation, then notify
268 conn_evt_data.ndef_detect.protocol = p_rw_data->ndef.protocol;
270 if (p_rw_data->ndef.status == NFC_STATUS_TIMEOUT) {
277 /* NDEF Detection failed for other reasons */
279 p_rw_data->ndef.cur_size;
281 p_rw_data->ndef.max_size;
282 conn_evt_data.ndef_detect.flags = p_rw_data->ndef.flags;
401 /* Do not try to detect NDEF again but just notify current operation
415 /* If cannot Sleep wakeup tag, then NDEF Detect operation is complete */
587 (p_rw_data->ndef.flags & NFA_RW_NDEF_FL_FORMATABLE) &&
588 (!(p_rw_data->ndef.flags & NFA_RW_NDEF_FL_FORMATED)) &&
589 (p_rw_data->ndef.flags & NFA_RW_NDEF_FL_SUPPORTED)) {
590 /* Tag is in Initialized state, Format the tag first and then Write NDEF
602 /* Process the ndef record */
608 /* If current operation is READ_NDEF, then notify ndef handlers of
618 /* Free ndef buffer */
635 /* Update local cursize of ndef message */
639 /* Notify app of ndef write complete status */
665 /* if format operation was done as part of ndef-write operation, now
666 * start NDEF Write */
673 /* if format operation failed or ndef detection did not start, then
674 * notify app of ndef-write operation failure */
739 case RW_T2T_NDEF_DETECT_EVT: /* NDEF detection complete */
742 ((p_rw_data->ndef.flags == NFA_RW_NDEF_FL_UNKNOWN) ||
745 /* NDEF Detection is complete */
749 /* Try to detect NDEF again, this time without reading dynamic lock
761 case RW_T2T_NDEF_READ_EVT: /* NDEF read completed */
763 /* Process the ndef record */
769 /* If current operation is READ_NDEF, then notify ndef handlers of
778 /* Free ndef buffer */
785 case RW_T2T_NDEF_WRITE_EVT: /* NDEF write complete */
795 /* Update local cursize of ndef message */
799 /* Notify app of ndef write complete status */
851 case RW_T3T_NDEF_DETECT_EVT: /* NDEF detection complete */
864 /* Update local cursize of ndef message */
868 /* Notify app of ndef write complete status */
875 /* Process the ndef record */
881 /* If current operation is READ_NDEF, then notify ndef
887 /* Free ndef buffer */
942 /* Notify app of ndef write complete status */
979 case RW_T4T_NDEF_DETECT_EVT: /* Result of NDEF detection procedure */
987 nfa_rw_cb.ndef_cur_size = p_rw_data->ndef.cur_size;
988 nfa_rw_cb.ndef_max_size = p_rw_data->ndef.max_size;
1008 /* Process the ndef record */
1012 /* Free ndef buffer */
1027 /* If current operation is READ_NDEF, then notify ndef handlers of
1031 /* Free ndef buffer */
1046 /* Update local cursize of ndef message */
1113 case RW_I93_NDEF_DETECT_EVT: /* Result of NDEF detection procedure */
1129 /* Process the ndef record */
1133 /* Free ndef buffer */
1148 /* If current operation is READ_NDEF, then notify ndef handlers of
1152 /* Free ndef buffer */
1167 /* Update local cursize of ndef message */
1180 /* Notify app of ndef write complete status */
1410 ** Description Start NDEF detection on activated tag
1445 ** Description Start NDEF read on activated tag
1455 /* Handle zero length NDEF message */
1457 NFA_TRACE_DEBUG0("NDEF message is zero-length");
1459 /* Send zero-lengh NDEF message to ndef callback */
1469 /* Allocate buffer for incoming NDEF message (free previous NDEF rx buffer, if
1474 NFA_TRACE_ERROR1("Unable to allocate a buffer for reading NDEF (size=%i)",
1539 ** Description Start NDEF write on activated tag
1549 /* error: ndef tag is read-only */
1551 NFA_TRACE_ERROR0("Unable to write NDEF. Tag is read-only")
1553 /* error: ndef tag size is too small */
1556 "Unable to write NDEF. Tag maxsize=%i, request write size=%i",
1601 /* Check if ndef detection has been performed yet */
1603 /* Perform ndef detection first */
1606 /* Tag is not NDEF */
1609 /* Perform the NDEF read operation */
1639 /* Validate NDEF message */
1643 NFA_TRACE_ERROR1("Invalid NDEF message. NDEF_MsgValidate returned %i",
1653 /* Store pointer to source NDEF */
1657 /* Check if ndef detection has been performed yet */
1659 /* Perform ndef detection first */
1663 /* For Type 1 tag, NDEF can be written on Initialized tag
1664 * Perform ndef detection first to check if tag is in Initialized state to
1665 * Write NDEF */
1668 /* Tag is not NDEF */
1672 /* Perform the NDEF read operation */
1748 /* NDEF DETECT failed.*/
1866 /* If unable to format NDEF, notify the app */
2621 /* Free buffer for incoming NDEF message, in case we were in the middle of a