Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
downlink.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2006 Pascal Brisset, Antoine Drouin
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
28 #ifndef DOWNLINK_H
29 #define DOWNLINK_H
30 
31 #include <inttypes.h>
32 
33 #ifndef PPRZ_DATALINK_EXPORT
34 
35 #include "generated/modules.h"
36 #include "messages.h"
37 #include "generated/airframe.h" // AC_ID is required
38 
39 #if defined SITL && !USE_NPS
40 
41 #include "ivy_transport.h"
42 
43 #else
45 #include "subsystems/datalink/pprz_transport.h"
49 #if DATALINK == BLUEGIGA
51 #endif
52 #if USE_SUPERBITRF
53 #include "subsystems/datalink/superbitrf.h"
54 #endif
55 #if USE_AUDIO_TELEMETRY
57 #endif
58 #if USE_USB_SERIAL
59 #include "mcu_periph/usb_serial.h"
60 #endif
61 #ifdef USE_UDP
62 #include "mcu_periph/udp.h"
63 #endif
64 #include "mcu_periph/uart.h"
65 
66 #endif
68 #else /* PPRZ_DATALINK_EXPORT defined */
69 
70 #include "messages.h"
71 #include "pprz_transport.h"
72 #ifndef AC_ID
73 #define AC_ID 0
74 #endif
75 
76 #endif
77 
78 #ifndef DefaultChannel
79 #define DefaultChannel DOWNLINK_TRANSPORT
80 #endif
81 
82 #ifndef DefaultDevice
83 #define DefaultDevice DOWNLINK_DEVICE
84 #endif
85 
86 // Init function
87 extern void downlink_init(void);
88 
89 #endif /* DOWNLINK_H */
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Building and parsing Paparazzi frames.
Protocol for on-board data logger with timestamp.
W5100 ethernet chip I/O.
Maxstream XBee serial input and output.
arch independent UDP API
Bluegiga Bluetooth chip I/O.
arch independent USB API
Building Paparazzi frames over IVY.