Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
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 #include "generated/airframe.h"
34 #include "generated/modules.h"
35 #include "pprzlink/messages.h"
37 
38 
39 #if defined SITL && !USE_NPS
40 
41 #include "pprzlink/ivy_transport.h"
42 extern struct ivy_transport ivy_tp;
43 
44 #else
46 #if DATALINK == PPRZ || DATALINK == SUPERBITRF || DATALINK == W5100 || DATALINK == BLUEGIGA
47 #include "pprzlink/pprz_transport.h"
48 extern struct pprz_transport pprz_tp;
49 #endif
50 
51 #if USE_PPRZLOG
52 #include "pprzlink/pprzlog_transport.h"
53 extern struct pprzlog_transport pprzlog_tp;
54 #endif
55 
56 #if DATALINK == XBEE
57 #include "pprzlink/xbee_transport.h"
58 extern struct xbee_transport xbee_tp;
59 #endif
60 
61 #if DATALINK == W5100
63 #endif
64 
65 #if DATALINK == BLUEGIGA
67 #endif
68 
69 #if USE_SUPERBITRF
70 #include "subsystems/datalink/superbitrf.h"
71 #endif
72 #if USE_USB_SERIAL
73 #include "mcu_periph/usb_serial.h"
74 #endif
75 #ifdef USE_UDP
76 #include "mcu_periph/udp.h"
77 #endif
78 #include "mcu_periph/uart.h"
79 
80 #endif
83 #ifndef DefaultChannel
84 #define DefaultChannel DOWNLINK_TRANSPORT
85 #endif
86 
87 #ifndef DefaultDevice
88 #define DefaultDevice DOWNLINK_DEVICE
89 #endif
90 
91 // Init function
92 extern void downlink_init(void);
93 
94 #endif /* DOWNLINK_H */
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
W5100 ethernet chip I/O.
arch independent UDP API
Bluegiga Bluetooth chip I/O.
arch independent USB API