//---------------------------------------------------------------------------- // rfidapi.h - includes from LXEAPI.DLL // // Copyright (c) 2001-2004 LXE //---------------------------------------------------------------------------- #ifndef _RFIDAPI_H_ #define _RFIDAPI_H_ #include "lxerfid.h" #ifdef __cplusplus extern "C" { #endif typedef struct { BYTE tagLen; BYTE epcIDCode[12]; BYTE password; BYTE crc[2]; }TAG_INFO; typedef struct { BYTE status; INT tagCount; TAG_INFO tagInfo[100]; }RFID_VERIFY; typedef struct { TCHAR fieldName[FIELD_NAME_LENGTH+1]; INT maskOffset; INT filterCheck; TCHAR maskValue[MASK_VALUE_LENGTH+1]; }MASK_DEFINE; typedef struct { BYTE status; MASK_DEFINE maskDefine[6]; }MASK_INFO; typedef struct { BYTE status; TCHAR fieldName1[FIELD_NAME_LENGTH+1]; TCHAR fieldName2[FIELD_NAME_LENGTH+1]; TCHAR fieldName3[FIELD_NAME_LENGTH+1]; TCHAR fieldName4[FIELD_NAME_LENGTH+1]; TCHAR fieldName5[FIELD_NAME_LENGTH+1]; TCHAR fieldName6[FIELD_NAME_LENGTH+1]; }MASK_READ; // // NOTE - all functions return 1 for success, 0 for error // extended error info is from GetLastError() // //---------------------------------------------------------------------------- // includes for RFID APIs //---------------------------------------------------------------------------- int LXERFIDSystemNoChg( BYTE *status, INT *ldrSwVer, INT *appSwVer, BYTE *mode ); int LXERFIDTag0Kill( BYTE Status, BYTE SingulationMode, BYTE SingulationBitCount, BYTE *SingulationBits, BYTE *Passcode ); int LXERFIDTag0Set( BYTE *status, BYTE rfLevel, BYTE modDepth ); int LXERFIDTag0Read( BYTE *status, BYTE singulationMode, BYTE filterBitCount, BYTE *filterBits, INT *tagCount, BYTE **tagID, INT *tagIDLen ); int LXERFIDTag1Kill( BYTE Status, BYTE SingulationBitCount, BYTE *SingulationBits, BYTE *Password ); int LXERFIDTag1Set( BYTE *status, BYTE rfLevel, BYTE modDepth ); int LXERFIDTag1Read( BYTE *status, BYTE filterBitCount, BYTE *filterBits, INT *tagCount, BYTE **tagID, INT *tagIDLen ); int LXERFIDTag1ProgramID( BYTE *status, BYTE tagIDBitCount, BYTE password, BYTE *tagID ); int LXERFIDTag1VerifyID( RFID_VERIFY **pRFIDVerifyPtr ); int LXERFIDTag1LockID( BYTE *status, BYTE password ); int LXERFIDTag1EraseID( BYTE *status ); int LXERFIDTag1Write( BYTE *status, BYTE tagIDBitCount, BYTE password, BYTE *tagID ); int LXERFIDMaskDefine( BYTE *status, MASK_INFO *pMaskInfoPtr ); int LXERFIDMaskRead( BYTE *status, BYTE tagType, MASK_READ *pMaskReadPtr, INT *tagCount, BYTE **tagID, INT *tagIDLen ); int LXERFIDSetPreamble( BYTE *status, TCHAR *preamble ); int LXERFIDSetPostamble( BYTE *status, TCHAR *postamble ); int LXERFIDSetSeparator( BYTE *status, TCHAR *separator ); int LXERFIDNotifyReadSuccess( BYTE *status, BYTE beepOn ); int LXERFIDNotifyReadOn( BYTE *status, BYTE buzzOn ); int LXERFIDReaderPowerTimeout( BYTE *status, BYTE readerTimeout ); int LXERFIDGetData( BYTE **tagData, INT *tagDataLen ); int LXERFIDRFOn( BYTE rfLevel, BYTE freqIndex, BYTE hopPeriod ); int LXERFIDSystem( BYTE code ); int LXERFIDDownloadReboot( BYTE *status ); int LXERFIDFirmwareUpgrade( BYTE *status, TCHAR *upgradeFileName ); int checkLength( TCHAR *inStr, int strLen ); #ifdef __cplusplus } #endif #endif // _RFIDAPI_H_