EM4325 is a UHF RFID ASIC that is compliant with ISO/IEC 18000-6 Type C and Type D (TOTAL) as well as EPCTM Class-3 Generation-2 (Gen2). TOTAL is a protocol used for many applications and is an enhanced version of the defacto standard used in apparel item level tagging. EM4325 can be red/write in EEPROM thought RFID (UHF) or SPI protocol, but not at the same time.
EM4325.h
00001 /********************************************************************************** 00002 / SPI COMMUNICATION FOR EM4325 * 00003 / * 00004 / Gerald MERCIER * 00005 / 25/04/2012 - NXPLCP1768 * 00006 **********************************************************************************/ 00007 #include "mbed.h" 00008 class EM4325 { 00009 public: 00010 EM4325(PinName, PinName, PinName, PinName); 00011 ~EM4325(){/* void */} 00012 uint8_t read_epc(); 00013 float read_temperature(); 00014 uint8_t write_epc(uint8_t); 00015 uint8_t RF(char); 00016 private: 00017 //Status & registers 00018 static const char TEMP = 0xE5; 00019 static const char SPI_READ = 0xE7; 00020 static const char IS_OK = 0xF8; 00021 static const char TIME_OUT = 0xFF; 00022 static const char SPI_WRITE = 0xE8; 00023 static const char RF_DISABLE = 0xE2; 00024 static const char RF_ENABLE = 0xE3; 00025 00026 static const char EPC_WORD_1 = 0x16; 00027 static const char EPC_WORD_2 = 0x17; 00028 static const char EPC_WORD_3 = 0x18; 00029 static const char EPC_WORD_4 = 0x19; 00030 static const char EPC_WORD_5 = 0x1A; 00031 static const char EPC_WORD_6 = 0x1B; 00032 static const char PERS = 0x16 /*0x2C*/; 00033 00034 SPI spi; 00035 DigitalOut cs; 00036 };
Generated on Tue Jul 12 2022 17:47:56 by
1.7.2