Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

eepromconf.h

00001 #ifndef _ADDS_SYS_EEPROMCONF_H_
00002 #define _ADDS_SYS_EEPROMCONF_H_
00003 
00009 /*
00010  * eeprom location
00011  */
00012 
00013 /* 
00014  * 64-100 reserved
00015  */
00016 
00017 #define CONFMAIL_EE_OFFSET   100
00018 #define CONFAUTH_EE_OFFSET   (CONFMAIL_EE_OFFSET + sizeof(CONFMAIL) + 1)
00019 #define CONFCOM_EE_OFFSET   (CONFAUTH_EE_OFFSET + sizeof(CONFAUTH) + 1)
00020 
00021 /*
00022  * types definition
00023  */
00024 
00028 typedef struct _CONFMAIL CONFMAIL;
00032 typedef struct _CONFAUTH CONFAUTH;
00033 typedef struct _CONFCOM CONFCOM;
00034 
00038 struct _CONFMAIL {
00042    u_long serv_addr;
00043     
00047    char sender[50];
00048 
00052    u_char id;
00053 };
00054 
00058 extern CONFMAIL confmail;
00059 
00060 
00064 struct _CONFAUTH {
00068     char user[10];
00069 
00073     char passwd[10];
00074 
00078    u_char id;
00079 };
00080 
00084 extern CONFAUTH confauth;
00085 
00086 /*
00087  * Config for UART.
00088  */
00089 struct _CONFCOM {
00090     /*
00091      * COM port speed
00092      */
00093     u_long baud;
00094 
00095     /*
00096      * Auth config identyficator
00097      */
00098     u_char id;
00099 };
00100 
00101 /*
00102  * Config for UART.
00103  */
00104 extern CONFCOM confcom;
00105 /*
00106  * @}
00107  */
00108 #endif

Generated on Thu Jan 30 22:30:44 2003 for EduNet by doxygen1.2.18