![]() |
STM8L libraries for CR95HF 1.0
|
00001 00021 #ifndef __ISO15693_STRUCTURE_H 00022 #define __ISO15693_STRUCTURE_H 00023 00024 // lower level 00025 #include "miscellaneous.h" 00026 #include "delay.h" 00027 00028 // Constants for the structure below 00029 00030 #define ISO15693_STRUCT_INITVALUE 0xEC 00031 #define ISO15693_DATA_RECEIVED_MAX_SIZE 0x14 // 19 bytes 00032 #define ISO15693_MEMSIZE_WORD_BYTE_SIZE 0x02// Mem size is described on two byte for a full iso15693 contactless tag 00033 #define ISO15693_MEMSIZE_MAX_WORD_BYTE_SIZE 0x03 00034 #define ISO15693_UID_SIZE 0x08 00035 00036 /* ISO_15693_Command_Structure --------------------------------------------------------*/ 00037 00038 typedef struct 00039 { 00040 u8 command_ok; 00041 u8 error_code; 00042 u8 response_flags; 00043 u8 dataField[ISO15693_DATA_RECEIVED_MAX_SIZE]; 00044 u8 receivedDataLength; 00045 u8 UID_Tag[ISO15693_UID_SIZE]; 00046 u8 AFI_Tag; 00047 u8 DSFID_Tag; 00048 u8 ICRef; 00049 u8 memSize[ISO15693_MEMSIZE_MAX_WORD_BYTE_SIZE]; 00052 // MemSize is initialized in order to detect when a Get System Info command fills in the fields with valid data 00053 00054 }ISO15693_Tag; 00055 00056 #endif /*__ISO15693_STRUCTURE_H */ 00057 00058 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/