projekty/Source/example1/src/status.h

Go to the documentation of this file.
00001 /*
00002  * $Id: status.h,v 1 2007/06/20 22:00:00 BorisK Exp $
00003  *
00004  * Copyright (C) 2007 ONTRACK s.r.o.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA    
00019  * 02111-1307, USA.
00020  *
00021  * Written by Boris Kralik <kralikbo@yahoo.com>, 2007
00022  *
00023  */
00024 #ifndef STATUS_H
00025 #define STATUS_H
00026 
00027 #include        "./include/types.h"
00028 /*
00029         Status - FRAM(MEM_STATUS_H:MEM_STATUS_L)={X,X,X,X, X,X,X,X, X,X,X,X, CAN4,CAN2,CAN1,FRAM0}
00030 */
00031 #define STATUS_RAMTRON          0       //6
00032 #define STATUS_CAN1             1       //7
00033 #define STATUS_CAN2             2       //8
00034 #define STATUS_CAN4             3       //9
00035 
00036 #define STATUS_AD7414_0_WDD     4       //10
00037 #define STATUS_AD5382           5       //11
00038 #define STATUS_MAX1039          6       //12
00039 #define STATUS_AD5391           7       //13
00040 
00041 #define STATUS_AD7997BRU_1_H    8       //14
00042 #define STATUS_AD7997BRU_1_L    9       //15
00043 #define STATUS_MAX_7300AAI      10      //16
00044 #define STATUS_MAX_7300AAI_1    11      //17
00045                                         //18
00046                                         //19
00047 
00048 
00049 //FRAM 0 Memory
00050 #define MEM_COMP                0       //Computer number ID
00051 #define MEM_VER                 1       //'v'   1
00052                                         //.     2
00053                                         //'s'   3
00054 #define MEM_STATUS_L            4       //Start address of status in FRAM
00055 #define MEM_STATUS_H            5
00056 // 6
00057 // 7
00058 // 8:11
00059 //12:15
00060 //16:19
00061 
00062 
00063 
00064 uint16_t GetStatus(void);
00065 uint16_t SetStatus(uint16_t);
00066 
00067 #endif

Generated on Fri Sep 21 13:41:54 2007 for example1 by  doxygen 1.4.7