nrfxlib API 0.1.0
|
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | NFC_T4T_MAX_PAYLOAD_SIZE 0xFFF0U |
Emulation mode. | |
Typedefs | |
typedef void(* | nfc_t4t_callback_t) (void *context, nfc_t4t_event_t event, const uint8_t *data, size_t data_length, uint32_t flags) |
Callback to pass events from NFCLib to application. | |
Enumerations | |
enum | nfc_t4t_emu_mode_t { NFC_T4T_EMUMODE_NDEF , NFC_T4T_EMUMODE_PICC } |
enum | nfc_t4t_event_t { NFC_T4T_EVENT_NONE , NFC_T4T_EVENT_FIELD_ON , NFC_T4T_EVENT_FIELD_OFF , NFC_T4T_EVENT_NDEF_READ , NFC_T4T_EVENT_NDEF_UPDATED , NFC_T4T_EVENT_DATA_TRANSMITTED , NFC_T4T_EVENT_DATA_IND } |
enum | nfc_t4t_data_ind_flags_t { NFC_T4T_DI_FLAG_NONE = 0x00 , NFC_T4T_DI_FLAG_MORE = 0x01 } |
enum | nfc_t4t_fwi_max_val_t { NFC_T4T_FWI_MAX_VAL_EMV = 0x07 , NFC_T4T_FWI_MAX_VAL_NFC = 0x08 } |
enum | nfc_t4t_param_id_t { NFC_T4T_PARAM_FWI , NFC_T4T_PARAM_FDT_MIN , NFC_T4T_PARAM_SELRES , NFC_T4T_PARAM_NFCID1 , NFC_T4T_PARAM_FWI_MAX } |
Functions | |
int | nfc_t4t_setup (nfc_t4t_callback_t callback, void *context) |
Register the application callback for event signaling. | |
int | nfc_t4t_ndef_rwpayload_set (uint8_t *emulation_buffer, size_t buffer_length) |
Set emulation buffer and content for a NDEF Tag emulation that is Read/Writable. | |
int | nfc_t4t_ndef_staticpayload_set (const uint8_t *emulation_buffer, size_t buffer_length) |
Set emulation buffer and content for an NDEF Tag emulation that is Read-Only. | |
int | nfc_t4t_response_pdu_send (const uint8_t *pdu, size_t pdu_length) |
Send a raw response PDU after getting a Request PDU callback. | |
int | nfc_t4t_parameter_set (nfc_t4t_param_id_t id, void *data, size_t data_length) |
Set an NFC parameter. | |
int | nfc_t4t_parameter_get (nfc_t4t_param_id_t id, void *data, size_t *max_data_length) |
Query an NFC parameter value. | |
int | nfc_t4t_emulation_start (void) |
Activate the NFC frontend. | |
int | nfc_t4t_emulation_stop (void) |
Deactivate the NFC frontend. | |
int | nfc_t4t_done (void) |
Release reference to application callback. | |
Copyright (c) 2016, Telit Communications Cyprus Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.