Renesas PTX1xxR IoT-Reader API (non-OS) Version 7.3.1
Renesas Software Stack for IoT-Reader Applications (non-OS)
ptxNDEF_T5TOP.h
Go to the documentation of this file.
1
49#ifndef APIS_PTX_NDEF_OP_T5T_H_
50#define APIS_PTX_NDEF_OP_T5T_H_
51
52/*
53 * ####################################################################################################################
54 * INCLUDES
55 * ####################################################################################################################
56 */
57
58#include <stdint.h>
59#include "ptxNativeTag_T5T.h"
60#include "ptxNDEF_Defines.h"
61#include "ptxStatus.h"
62
63#ifdef __cplusplus
64extern "C" {
65#endif
66
67/*
68 * ####################################################################################################################
69 * DEFINES / TYPES
70 * ####################################################################################################################
71 */
76#define PTX_T5T_DEFAULT_TIMEOUT_MS (uint32_t)202
77#define PTX_T5T_SUPPORTED_VERSION (uint8_t)0x10
81/*
82 * ####################################################################################################################
83 * TYPES
84 * ####################################################################################################################
85 */
86
100
118
122typedef struct ptxNDEF_T5TOP
123{
124 /* Components */
129 uint8_t *RxBuffer;
130 uint32_t RxBufferSize;
131 uint8_t *WorkBuffer;
132 uint32_t WorkBufferSize;
134 /* Tag Type specific members */
137 /* General Info and / or Greedy Collectin related Parameters */
138 uint8_t BlockSize;
144
145/*
146 * ####################################################################################################################
147 * API FUNCTIONS
148 * ####################################################################################################################
149 */
150
160
169
178
188ptxStatus_t ptxNDEF_T5TOpReadMessage (ptxNDEF_T5TOP_t *t5tOpComp, uint8_t *msgBuffer, uint32_t *msgLen);
189
199ptxStatus_t ptxNDEF_T5TOpWriteMessage (ptxNDEF_T5TOP_t *t5tOpComp, uint8_t *msgBuffer, uint32_t msgLen);
200
209
218
219#ifdef __cplusplus
220}
221#endif
222
225#endif /* Guard */
226
ptxStatus_t ptxNDEF_T5TOpOpen(ptxNDEF_T5TOP_t *t5tOpComp, ptxNDEF_T5TOP_InitParams_t *initParams)
Initialize / Open the T5T OP Component.
ptxStatus_t ptxNDEF_T5TOpClose(ptxNDEF_T5TOP_t *t5tOpComp)
Unitialize / Close the T5T OP Component.
ptxStatus_t ptxNDEF_T5TOpCheckMessage(ptxNDEF_T5TOP_t *t5tOpComp)
Checks if a NDEF-message is present on the given Tag (or not).
ptxStatus_t ptxNDEF_T5TOpWriteMessage(ptxNDEF_T5TOP_t *t5tOpComp, uint8_t *msgBuffer, uint32_t msgLen)
Writes a NDEF-message onto a given Tag.
struct ptxNDEF_T5TOP ptxNDEF_T5TOP_t
T5T NDEF OP Component.
struct ptxNDEF_T5TOP_CC ptxNDEF_T5TOP_CC_t
T5T NDEF OP Capability Container Parameters.
struct ptxNDEF_T5TOP_InitParams ptxNDEF_T5TOP_InitParams_t
T5T NDEF OP Initialization Parameters.
ptxStatus_t ptxNDEF_T5TOpLockTag(ptxNDEF_T5TOP_t *t5tOpComp)
Puts a Tag into READ-ONLY state (Attention: This is a irreversible Operation!).
ptxStatus_t ptxNDEF_T5TOpReadMessage(ptxNDEF_T5TOP_t *t5tOpComp, uint8_t *msgBuffer, uint32_t *msgLen)
Reads a NDEF-message from a given Tag.
ptxStatus_t ptxNDEF_T5TOpFormatTag(ptxNDEF_T5TOP_t *t5tOpComp)
Formats a Type 5 Tag to INITIALIZED state.
enum ptxNDEF_TagLifeCycle ptxNDEF_TagLifeCycle_t
NDEF Tag Life-Cycle.
uint16_t ptxStatus_t
Status Type.
Definition ptxStatus.h:70
enum ptxStatus_Comps ptxStatus_Comps_t
Component Definitions.
T5T NDEF OP Capability Container Parameters.
Definition ptxNDEF_T5TOP.h:105
uint8_t MultiBlockReadSupported
Definition ptxNDEF_T5TOP.h:113
uint8_t Version
Definition ptxNDEF_T5TOP.h:107
uint16_t MLEN
Definition ptxNDEF_T5TOP.h:110
uint8_t LockBlockSupported
Definition ptxNDEF_T5TOP.h:114
uint16_t ExtCommandTypeRequired
Definition ptxNDEF_T5TOP.h:111
uint8_t WriteAccess
Definition ptxNDEF_T5TOP.h:109
uint8_t SpecialFrameRequired
Definition ptxNDEF_T5TOP.h:112
uint8_t MagicNumber
Definition ptxNDEF_T5TOP.h:106
uint8_t ReadAccess
Definition ptxNDEF_T5TOP.h:108
uint8_t Size
Definition ptxNDEF_T5TOP.h:115
T5T NDEF OP Initialization Parameters.
Definition ptxNDEF_T5TOP.h:91
ptxNativeTag_T5T_InitParams_t T5TInitParams
Definition ptxNDEF_T5TOP.h:92
uint8_t * RxBuffer
Definition ptxNDEF_T5TOP.h:96
uint32_t RxBufferSize
Definition ptxNDEF_T5TOP.h:97
uint32_t WorkBufferSize
Definition ptxNDEF_T5TOP.h:95
uint8_t * WorkBuffer
Definition ptxNDEF_T5TOP.h:94
T5T NDEF OP Component.
Definition ptxNDEF_T5TOP.h:123
ptxNDEF_T5TOP_CC_t CCParams
Definition ptxNDEF_T5TOP.h:135
uint8_t * RxBuffer
Definition ptxNDEF_T5TOP.h:129
uint8_t BlockSize
Definition ptxNDEF_T5TOP.h:138
uint16_t NDEF_TLV_LENGTH
Definition ptxNDEF_T5TOP.h:141
uint32_t RxBufferSize
Definition ptxNDEF_T5TOP.h:130
uint32_t WorkBufferSize
Definition ptxNDEF_T5TOP.h:132
ptxNativeTag_T5T_t NativeTagT5T
Definition ptxNDEF_T5TOP.h:127
uint16_t NDEF_TLV_POS_BN
Definition ptxNDEF_T5TOP.h:139
uint8_t * WorkBuffer
Definition ptxNDEF_T5TOP.h:131
ptxStatus_Comps_t CompId
Definition ptxNDEF_T5TOP.h:125
uint8_t NDEF_TLV_POS_BY
Definition ptxNDEF_T5TOP.h:140
ptxNDEF_TagLifeCycle_t LifeCycle
Definition ptxNDEF_T5TOP.h:128
T5T Native Tag Initialization Parameters.
Definition ptxNativeTag_T5T.h:90
T5T Native Tag Component.
Definition ptxNativeTag_T5T.h:104