Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file edpaddr.h \brief Emerald Satellite EDP/I2C Bus Addresses. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'edpaddr.h' |
||
5 | // Title : Emerald Satellite EDP/I2C Bus Addresses |
||
6 | // Author : Bryan Palmintier & Pascal Stang - Copyright (C) 2003 |
||
7 | // Created : 09/08/2003 by PS |
||
8 | // Revised : 11/10/2003 by BP |
||
9 | // Version : 0.9 |
||
10 | // Target MCU : Any |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | // This code is distributed under the GNU Public License |
||
14 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
15 | // |
||
16 | //***************************************************************************** |
||
17 | |||
18 | #ifndef EDPADDR_H |
||
19 | #define EDPADDR_H |
||
20 | |||
21 | // The 8 bits of an EDP address byte breakdown as follows: |
||
22 | // b0: R/W bit (1=read, 0=write) |
||
23 | // b1-4: subsystem address (16 availible) |
||
24 | // b5-7: satellite network mask (up to 7 unique networks with 1 reserved by I2C) |
||
25 | // The ground station is a special case which uses 1110xxxx |
||
26 | #define EDPNET_MASK 0xE0 // mask for satellite/ground networks |
||
27 | #define EDPADDR_MASK 0x1E // mask for subsystem addresses |
||
28 | |||
29 | // Satellite network addresses |
||
30 | #define EDPNET_SAT_A 0x00 // EM-1 |
||
31 | #define EDPNET_SAT_B 0x20 // EM-2 |
||
32 | #define EDPNET_SAT_C 0x40 // EM-3 |
||
33 | #define EDPNET_SAT_D 0x60 // EM-4 |
||
34 | #define EDPNET_SAT_E 0x80 // OK-1 |
||
35 | #define EDPNET_SAT_F 0xA0 // OK-2 |
||
36 | #define EDPNET_SAT_G 0xC0 |
||
37 | |||
38 | // Ground Station network address |
||
39 | // NOTE: all devices on this network must maintain b4=0 |
||
40 | // or risk problems with 10bit I2C addressing |
||
41 | #define EDPNET_GROUND 0xE0 |
||
42 | |||
43 | // Test subsystem address |
||
44 | // Note: it is OK to use these susbsystem addresses with the EDPADDR_GROUND mask |
||
45 | #define EDPADDR_TEST 0x02 // generic test address (LEDs etc) |
||
46 | #define EDPADDR_GROUND 0x04 // address for ground testing |
||
47 | |||
48 | // Subsystem addresses |
||
49 | // "Core" subsystems, those found on all satellites, DO NOT EDIT |
||
50 | // Note: it is OK to use these subsystem addresses with the EDPADDR_GROUND mask |
||
51 | #define EDPADDR_COMM 0x06 |
||
52 | #define EDPADDR_DALMAST 0x08 |
||
53 | #define EDPADDR_SCHED 0x0A |
||
54 | #define EDPADDR_EXPSYS 0x0C |
||
55 | #define EDPADDR_ISCOMM 0x0E |
||
56 | |||
57 | // "Common" subsystems, those found on many satellites, DO NOT EDIT |
||
58 | // Note: it is NOT OK to use these subsystem addresses with the EDPADDR_GROUND mask |
||
59 | #define EDPADDR_GPS 0x10 |
||
60 | #define EDPADDR_TORQUER 0x12 |
||
61 | #define EDPADDR_MECH 0x14 |
||
62 | |||
63 | // Mission Specific subsystems, EDIT AS NEEDED |
||
64 | // Note: it is NOT OK to use these subsystem addresses with the EDPADDR_GROUND mask |
||
65 | #define EDPADDR_ODDSS 0x16 |
||
66 | #define EDPADDR_ULTRAWB 0x18 |
||
67 | #define EDPADDR_TETHER 0x1A |
||
68 | |||
69 | |||
70 | // As part of the I2C protocol 000000000 is reserved for general calls and |
||
71 | // all 1111xxxx are reserved for 10 bit addressing |
||
72 | #define EDPADDR_RESERVED_GENCALL 0x00 // reserved by I2C for general call address |
||
73 | #define EDPADDR_RESERVED_10BIT 0xF0 // reserved by I2C for 10bit addressing |
||
74 | |||
75 | #endif |
Powered by WebSVN v2.8.3