Subversion Repositories FlightCtrl

Rev

Rev 1152 | Details | Compare with Previous | Last modification | View Log | RSS feed

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