Rev 1152 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1152 | Rev 1208 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | Copyright (c) 2008 Stefan Engelke <stefan@tinkerer.eu> |
2 | Copyright (c) 2008 Stefan Engelke <stefan@tinkerer.eu> |
3 | 3 | ||
4 | Permission is hereby granted, free of charge, to any person |
4 | Permission is hereby granted, free of charge, to any person |
5 | obtaining a copy of this software and associated documentation |
5 | obtaining a copy of this software and associated documentation |
6 | files (the "Software"), to deal in the Software without |
6 | files (the "Software"), to deal in the Software without |
7 | restriction, including without limitation the rights to use, copy, |
7 | restriction, including without limitation the rights to use, copy, |
8 | modify, merge, publish, distribute, sublicense, and/or sell copies |
8 | modify, merge, publish, distribute, sublicense, and/or sell copies |
9 | of the Software, and to permit persons to whom the Software is |
9 | of the Software, and to permit persons to whom the Software is |
10 | furnished to do so, subject to the following conditions: |
10 | furnished to do so, subject to the following conditions: |
11 | 11 | ||
12 | The above copyright notice and this permission notice shall be |
12 | The above copyright notice and this permission notice shall be |
13 | included in all copies or substantial portions of the Software. |
13 | included in all copies or substantial portions of the Software. |
14 | 14 | ||
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | DEALINGS IN THE SOFTWARE. |
22 | DEALINGS IN THE SOFTWARE. |
23 | |
23 | |
24 | $Id: rcdsl.h 84 2008-09-12 07:04:12Z tensor $ |
24 | $Id: rcdsl.h 84 2008-09-12 07:04:12Z tensor $ |
25 | |
25 | |
26 | RCDSL.H and RCDSL.C is an INOFFICIAL implementation of the |
26 | RCDSL.H and RCDSL.C is an INOFFICIAL implementation of the |
27 | communication protocol used by DSL receivers of Act Europe. |
27 | communication protocol used by DSL receivers of Act Europe. |
28 | The DSL receivers have a serial communication port to connect |
28 | The DSL receivers have a serial communication port to connect |
29 | two receivers in diversity mode. Each receiver is sending the |
29 | two receivers in diversity mode. Each receiver is sending the |
30 | received servo signals periodically over this port. This fact |
30 | received servo signals periodically over this port. This fact |
31 | can be used to connect the receiver to the control unit of the |
31 | can be used to connect the receiver to the control unit of the |
32 | model via UART instead of evaluating the PPM signal. |
32 | model via UART instead of evaluating the PPM signal. |
33 | The UART parameters are |
33 | The UART parameters are |
34 | 38400 Baud, 8-N-1 |
34 | 38400 Baud, 8-N-1 |
35 | |
35 | |
36 | If you have any questions, feel free to send me an e-mail. |
36 | If you have any questions, feel free to send me an e-mail. |
37 | 37 | ||
38 | */ |
38 | */ |
39 | 39 | ||
40 | 40 | ||
41 | #ifndef _RCDSL_H |
41 | #ifndef _RCDSL_H |
42 | #define _RCDSL_H |
42 | #define _RCDSL_H |
43 | 43 | ||
44 | #include <avr/io.h> |
44 | #include <avr/io.h> |
45 | #include <avr/interrupt.h> |
45 | #include <avr/interrupt.h> |
46 | 46 | ||
47 | 47 | ||
48 | // Received signal strength indicator |
48 | // Received signal strength indicator |
49 | extern volatile uint8_t rcdsl_RSSI; |
49 | extern volatile uint8_t rcdsl_RSSI; |
50 | 50 | ||
51 | // Battery voltage (0-255 [0V - 8.2V]) |
51 | // Battery voltage (0-255 [0V - 8.2V]) |
52 | extern uint8_t rcdsl_battery; |
52 | extern volatile uint8_t rcdsl_battery; |
53 | 53 | ||
54 | // Frequency allocation (35,40,72) |
54 | // Frequency allocation (35,40,72) |
55 | extern uint8_t rcdsl_allocation; |
55 | extern volatile uint8_t rcdsl_allocation; |
56 | 56 | ||
57 | extern void rcdsl_init(void); |
57 | extern void rcdsl_init(void); |
58 | 58 | ||
59 | #endif //_RCDSL_H |
59 | #endif //_RCDSL_H |
60 | 60 | ||
61 | 61 |