Renesas PTX1xxR IoT-Reader API Version 7.3.1
Renesas Software Stack for IoT-Reader Applications
ptxNDEF.h
Go to the documentation of this file.
1
49#ifndef APIS_PTX_NDEF_H_
50#define APIS_PTX_NDEF_H_
51
52/*
53 * ####################################################################################################################
54 * INCLUDES
55 * ####################################################################################################################
56 */
57
58#include <stdint.h>
59#include "ptx_IOT_READER.h"
60#include "ptxNDEF_T2TOP.h"
61#include "ptxNDEF_T3TOP.h"
62#include "ptxNDEF_T4TOP.h"
63#include "ptxNDEF_T5TOP.h"
64#include "ptx_Status.h"
65
66#ifdef __cplusplus
67extern "C" {
68#endif
69
70/*
71 * ####################################################################################################################
72 * DEFINES / TYPES
73 * ####################################################################################################################
74 */
75#if defined (_WIN32) || defined (_WIN64) || defined (ming) || defined (__MINGW32__) || defined (__GNUWIN32__)
76 #define PTX_API_LIBFUNC __declspec(dllexport) /* */
77#else
78
79 #if defined (__GNUC__) /* GCC */
80 #define PTX_API_LIBFUNC __attribute__ ((visibility("default"))) /* requires -fvisibility=hidden as compiler option */
81 #elif defined (_linux) || defined (__linux) /* Linux with some other compiler */
82 #error Missing Platform Specification /* To be added */
83 #else
84 #error Missing Platform Specification
85 #endif
86#endif
87
88/*
89 * ####################################################################################################################
90 * TYPES
91 * ####################################################################################################################
92 */
97
107
111typedef struct ptxNDEF_InitParams
112{
114 uint8_t *TxBuffer;
115 uint32_t TxBufferSize;
116 uint8_t *RxBuffer;
117 uint32_t RxBufferSize;
118 uint8_t *WorkBuffer;
119 uint32_t WorkBufferSize;
120
123
139
140/*
141 * ####################################################################################################################
142 * API FUNCTIONS
143 * ####################################################################################################################
144 */
145
154PTX_API_LIBFUNC ptxStatus_t ptxNDEF_Open (ptxNDEF_t *ndefComp, ptxNDEF_InitParams_t *initParams);
155
163PTX_API_LIBFUNC ptxStatus_t ptxNDEF_FormatTag (ptxNDEF_t *ndefComp);
164
172PTX_API_LIBFUNC ptxStatus_t ptxNDEF_CheckMessage (ptxNDEF_t *ndefComp);
173
183PTX_API_LIBFUNC ptxStatus_t ptxNDEF_ReadMessage (ptxNDEF_t *ndefComp, uint8_t *msgBuffer, uint32_t *msgLen);
184
194PTX_API_LIBFUNC ptxStatus_t ptxNDEF_WriteMessage (ptxNDEF_t *ndefComp, uint8_t *msgBuffer, uint32_t msgLen);
195
203PTX_API_LIBFUNC ptxStatus_t ptxNDEF_LockTag (ptxNDEF_t *ndefComp);
204
212PTX_API_LIBFUNC ptxStatus_t ptxNDEF_Close (ptxNDEF_t *ndefComp);
213
214#ifdef __cplusplus
215}
216#endif
217
220#endif /* Guard */
221
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_Open(ptxNDEF_t *ndefComp, ptxNDEF_InitParams_t *initParams)
Initialize / Open the NDEF OP Component.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_LockTag(ptxNDEF_t *ndefComp)
Puts a Tag into READ-ONLY state (Attention: This is a irreversible Operation!).
enum ptxNDEF_T5T_Modes ptxNDEF_T5T_Modes_t
T5T communication mode.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_FormatTag(ptxNDEF_t *ndefComp)
Formats a given Tag to INITIALIZED state.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_WriteMessage(ptxNDEF_t *ndefComp, uint8_t *msgBuffer, uint32_t msgLen)
Writes a NDEF-message onto a given Tag.
ptxNDEF_T5T_Modes
T5T communication mode.
Definition ptxNDEF.h:102
struct ptxNDEF_InitParams ptxNDEF_InitParams_t
NDEF OP Initialization Parameters.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_ReadMessage(ptxNDEF_t *ndefComp, uint8_t *msgBuffer, uint32_t *msgLen)
Reads a NDEF-message from a given Tag.
struct ptxNDEF ptxNDEF_t
Generic NDEF OP Component.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_Close(ptxNDEF_t *ndefComp)
Unitialize / Close the NDEF OP Component.
PTX_API_LIBFUNC ptxStatus_t ptxNDEF_CheckMessage(ptxNDEF_t *ndefComp)
Checks if a NDEF-message is present on the given Tag (or not).
@ ptxNDEF_T5T_Mode_None
Definition ptxNDEF.h:103
@ ptxNDEF_T5T_Mode_Selected
Definition ptxNDEF.h:105
@ ptxNDEF_T5T_Mode_Addressed
Definition ptxNDEF.h:104
uint16_t ptxStatus_t
Status Type.
Definition ptx_Status.h:82
enum ptxStatus_Comps ptxStatus_Comps_t
Component Definitions.
Card Registry structure.
Definition ptx_IOT_READER.h:584
NDEF OP Initialization Parameters.
Definition ptxNDEF.h:112
void * IoTRdStackComp
Definition ptxNDEF.h:113
uint8_t * RxBuffer
Definition ptxNDEF.h:116
uint32_t RxBufferSize
Definition ptxNDEF.h:117
ptxNDEF_T5T_Modes_t T5TMode
Definition ptxNDEF.h:121
uint8_t * TxBuffer
Definition ptxNDEF.h:114
uint32_t TxBufferSize
Definition ptxNDEF.h:115
T2T NDEF OP Component.
Definition ptxNDEF_T2TOP.h:219
T3T NDEF OP Component.
Definition ptxNDEF_T3TOP.h:142
T4T NDEF OP Component.
Definition ptxNDEF_T4TOP.h:145
T5T NDEF OP Component.
Definition ptxNDEF_T5TOP.h:136
Generic NDEF OP Component.
Definition ptxNDEF.h:128
ptxNDEF_T5TOP_t T5TOP
Definition ptxNDEF.h:136
ptxNDEF_T2TOP_t T2TOP
Definition ptxNDEF.h:133
ptxNDEF_T3TOP_t T3TOP
Definition ptxNDEF.h:134
struct ptxIoTRd_CardRegistry * CardRegistry
Definition ptxNDEF.h:132
ptxStatus_Comps_t CompId
Definition ptxNDEF.h:130
ptxNDEF_T4TOP_t T4TOP
Definition ptxNDEF.h:135