STM8L libraries for CR95HF 1.0
CR95HF/inc/CR95HF_structure.h
Go to the documentation of this file.
00001 
00021 #ifndef __CR95HF_STRUCTURE_H
00022 #define __CR95HF_STRUCTURE_H
00023 
00024 #include "miscellaneous.h"
00025 
00026 // Constants for the structures below
00027 // Structures DATAlENGTH
00028 #define MAX_DATARECEIVED_LENGTH 0x13 // limited to 19 bytes for iso15693 get sys info LRiS64K
00029 #define MAX_DATASENT_LENGTH                     0x10 // 16 bytes max ( used for Write kill ISO15693 Lrixk product)
00030 #define MAX_PARAMETERS_LENGTH   0x03
00031 
00032 
00033 //-------------------------------------------------------
00034 // Structure containing data and lenght of them
00035 typedef struct 
00036 {
00037         u8 cmd_code;
00038         u8 data_length;
00039         u8 data[MAX_DATASENT_LENGTH]; 
00041 }CR95HF_CommandSending;
00042 
00043 // Structure containing the entire response provided by the CR95HF
00044 typedef struct 
00045 {
00046         u8 resp_code;
00047         u8 data_length;
00048         u8 data[MAX_DATARECEIVED_LENGTH];
00049 }CR95HF_ResponseReceiving;
00050 
00051 /* Structure containing the last protocol select i.e: the protocol in use and the paramaters associated, while there is no other protocol select command the protocol and parameters remain the same*/
00052 typedef struct
00053 {
00054         u8 protocol_in_use;
00055         u8 parameters_length;
00056         u8 parameters[MAX_PARAMETERS_LENGTH];
00058 }CR95HF_Protocol_Config;
00059 
00060 
00061 /* Structure containing various parameters concerning the idle command. For instance this allows user to know the how to wake up the CR95HF if it is not in ready mode, the values set by the Tag detection calibration  procedure for tag detecting and the last reason of wake up of the CR95HF*/
00062 typedef struct
00063 {
00064         u8 wuFlags;
00065         u8 dacDataL;
00066         u8 dacDataH;
00067         u8 last_reason_of_wakeup;
00068 }CR95HF_Idle_Config;
00069 
00070         
00071         #endif /*__CR95HF_STRUCTURE_H */
00072 
00073 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
 All Data Structures Files Functions Variables Defines