PA_Reco.h

Go to the documentation of this file.
00001 #ifndef _PA_Reco
00002 #define _PA_Reco
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 #include "PA9.h"
00009 
00010 
00011 
00012 
00021 typedef struct{
00022    u8 x, y;
00023 } PA_StylusPosition;
00024 extern PA_StylusPosition PA_StylusPos[20000];
00025 
00026 #define PA_RECOTESTS 30
00027 
00028 char text[1000];
00029 
00030 typedef struct{
00031    char letter;
00032        char code[16];
00033 } PA_FormType;
00034 
00035    
00036 extern PA_FormType PA_Graffiti[PA_RECOTESTS];           
00037 
00038 typedef struct{
00039        u32 nvalues, oldn, veryold;
00040 } PA_RecoValues;
00041 extern PA_RecoValues PA_Reco;
00042 
00043 
00044 
00045 
00046 extern char PA_RecoShape[16]; // Stores the recognized pattern
00047 
00048 extern bool PA_UseGraffiti;
00049 
00050 extern u8 PA_CustomReco; // number of custom shapes
00051 extern PA_FormType PA_CustomShape[200];
00052 
00053 
00054 
00055 
00067 char PA_CheckLetter(void);
00068 
00069 
00082 extern inline void PA_RecoAddShape(char letter, char *shape){
00083 
00084 PA_CustomShape[PA_CustomReco].letter = letter;
00085 u8 i;
00086 for (i = 0; i < 16; i++) PA_CustomShape[PA_CustomReco].code[i] = shape[i];
00087 PA_CustomReco++;
00088 }
00089 
00090 
00091 
00098 extern inline void PA_ResetRecoSys(void){
00099 PA_CustomReco = 0;
00100 PA_UseGraffiti = 1;
00101 }
00102 
00103 
00113 extern inline void PA_UsePAGraffiti(bool use){
00114 PA_UseGraffiti = use;
00115 }
00116 
00117 
00118 
00119  // end of Reco
00121 
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125 
00126 #endif
00127 
00128 

Generated on Sat Feb 4 17:32:54 2006 for PAlib by  doxygen 1.3.9.1