109 #include "ams_types.h"
114 #define GEN2_LF_160 6
115 #define GEN2_LF_213 8
116 #define GEN2_LF_256 9
117 #define GEN2_LF_320 12
118 #define GEN2_LF_640 15
121 #define GEN2_COD_FM0 0
122 #define GEN2_COD_MILLER2 1
123 #define GEN2_COD_MILLER4 2
124 #define GEN2_COD_MILLER8 3
143 #define MEM_USER 0x03
147 #define MEMADR_CRC 0x00
149 #define MEMADR_PC 0x01
151 #define MEMADR_EPC 0x02
154 #define MEMADR_KILLPWD 0x00
156 #define MEMADR_ACCESSPWD 0x02
159 #define MEMADR_TID 0x00
163 #define GEN2_IINV_S0 0x00
165 #define GEN2_IINV_S1 0x01
167 #define GEN2_IINV_S2 0x02
169 #define GEN2_IINV_S3 0x03
171 #define GEN2_IINV_SL 0x04
173 #define GEN2_SESSION_S0 0x00
174 #define GEN2_SESSION_S1 0x01
175 #define GEN2_SESSION_S2 0x02
176 #define GEN2_SESSION_S3 0x03
179 #define GEN2_OK ERR_NONE
180 #define GEN2_ERR_REQRN ERR_GEN2_REQRN
181 #define GEN2_ERR_ACCESS ERR_GEN2_ACCESS
182 #define GEN2_ERR_SELECT ERR_GEN2_SELECT
183 #define GEN2_ERR_CHANNEL_TIMEOUT ERR_GEN2_CHANNEL_TIMEOUT
195 struct gen2SelectParams{
234 , u8 queryAdjustDownTh
235 , BOOL (*cbContinueScanning)(
void)
238 , s8 (*followTagCommand)(
Tag *tag)
248 , BOOL (*cbContinueScanning)(
void)
251 , s8 (*followTagCommand)(
Tag *tag)
305 s8
gen2KillTag(
Tag const * tag, u8
const * password, u8 rfu, u8 recom, u8 *tag_error);
346 u8 wordCount, u8 *destbuf);
357 void gen2PrintEPC(
Tag *tag);
386 void gen2Open(
const struct gen2Config * config);
This file provides defines for error codes reported by the FW to the host.
s8 gen2LockTag(Tag *tag, const u8 *mask_action, u8 *tag_reply)
s8 gen2KillTag(Tag const *tag, u8 const *password, u8 rfu, u8 recom, u8 *tag_error)
unsigned gen2SearchForTags(Tag *tags_, u8 maxtags, u8 q, u8 addRounds, u8 queryAdjustUpTh, u8 queryAdjustDownTh, BOOL(*cbContinueScanning)(void), BOOL singulate, BOOL toggleSession, s8(*followTagCommand)(Tag *tag))
unsigned gen2SearchForTagsAutoAck(Tag *tags_, u8 maxtags, u8 q, BOOL(*cbContinueScanning)(void), BOOL singulate, BOOL toggleSession, s8(*followTagCommand)(Tag *tag))
void gen2PrintTagInfo(Tag *tag, u8 epclen, u8 tagNr)
void gen2Close(void)
Close a session.
s8 gen2AccessTag(Tag const *tag, u8 const *password)
void gen2Configure(const struct gen2Config *config)
Set the link frequency.
struct gen2Config * getGen2IntConfig()
Returns the Gen2 Configuration.
s8 gen2QueryMeasureRSSI(u8 *agc, u8 *log_rssis, s8 *irssi, s8 *qrssi)
Perform a gen2 QUERY command and measure received signal strength.
s8 gen2WriteWordToTag(Tag const *tag, u8 memBank, u32 wordPtr, u8 const *databuf, u8 *tag_error)
void gen2Select(struct gen2SelectParams *p)
void gen2Open(const struct gen2Config *config)
Open a session.
Declaration of public functions provided by the AS3993 series chips.
s8 gen2ReadFromTag(Tag *tag, u8 memBank, u32 wordPtr, u8 wordCount, u8 *destbuf)