Subversion Repositories HomeAutomation

Rev

Rev 342 | Rev 363 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 342 Rev 358
Line 2... Line 2...
2
 *
2
 *
3
 *   Defines functs and funccs and other global definitions.
3
 *   Defines functs and funccs and other global definitions.
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
7
 * Last changed:    $LastChangedDate: 2007-02-26 21:38:37 +0100 (Mon, 26 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-03-04 14:49:20 +0100 (Sun, 04 Mar 2007) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 342 $
9
 * Revision:        $Revision: 358 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#include <typedefs.h>
12
#include <typedefs.h>
13
 
13
 
14
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
14
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
Line 74... Line 74...
74
//      data[1] = Application version high byte.
74
//      data[1] = Application version high byte.
75
//      data[0] = Application version low byte.
75
//      data[0] = Application version low byte.
76
 
76
 
77
typedef enum _PGM_SENSOR_TYPE   {  
77
typedef enum _PGM_SENSOR_TYPE   {  
78
                    pstIR=0x0,
78
                    pstIR=0x0,
79
                    pstTEMP_INSIDE=0x1, pstTEMP_OUTSIDE=0x2, pstTEMP_FREEZER=0x3, pstTEMP_REFRIGERATOR=0x4,
79
                    pstTEMP_INSIDE=0x1, pstTEMP_OUTSIDE=0x2, pstTEMP_FREEZER=0x3, pstTEMP_REFRIGERATOR=0x4,pstTEMP_DOOR_OUTSIDE=0x8,
80
                    pstDOOR_FREEZER=0x5, pstDOOR_REFRIGERATOR=0x6,
80
                    pstDOOR_FREEZER=0x5, pstDOOR_REFRIGERATOR=0x6,pstDOOR_OUTSIDE=0x09,
81
                    pstBLIND_TR=0x7
81
                    pstBLIND_TR=0x7
82
                } PGM_SENSOR_TYPE;
82
                } PGM_SENSOR_TYPE;
83
// When CAN_PGM_PACKET.type==pcSENSOR
83
// When CAN_PGM_PACKET.type==pcSENSOR
84
//  When CAN_PGM_PACKET.id==pstIR
84
//  When CAN_PGM_PACKET.id==pstIR
85
//      data[3] = type
85
//      data[3] = type