Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
extra_pprz_dl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 ENAC
3  * Copyright (C) 2016 2016 Michal Podhradsky <http://github.com/podhrmic>
4  *
5  * This file is part of paparazzi.
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, write to
19  * the Free Software Foundation, 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  */
27 #ifndef EXTRA_PPRZ_DL_H
28 #define EXTRA_PPRZ_DL_H
29 
31 #include "pprzlink/pprz_transport.h"
32 
33 #if USE_UDP
34 #include "mcu_periph/udp.h"
35 #endif
36 
37 #if USE_USB_SERIAL
38 #include "mcu_periph/usb_serial.h"
39 #endif
40 
41 /* PPRZ transport structure */
42 extern struct pprz_transport extra_pprz_tp;
43 
44 extern uint8_t extra_dl_buffer[MSG_SIZE] __attribute__((aligned));
45 
47 void extra_pprz_dl_event(void);
48 
49 
51 extern void extra_pprz_dl_init(void);
52 
57 extern void extra_pprz_dl_periodic(void);
58 
59 #endif /* EXTRA_PPRZ_DL_H */
60 
void extra_pprz_dl_event(void)
Datalink Event.
Definition: extra_pprz_dl.c:65
#define MSG_SIZE
Definition: main_demo5.c:63
uint8_t extra_dl_buffer[MSG_SIZE]
Definition: extra_pprz_dl.c:55
struct pprz_transport extra_pprz_tp
Definition: extra_pprz_dl.c:57
unsigned char uint8_t
Definition: types.h:14
void extra_pprz_dl_periodic(void)
Periodic function.
Definition: extra_pprz_dl.c:72
void extra_pprz_dl_init(void)
Init function.
Definition: extra_pprz_dl.c:59
arch independent UDP API
arch independent USB API