Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
udp.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2012-2013 Freek van Tienen and Dino Hensen
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 
23 /* Udp ethernet connection over UDP */
24 
25 #ifndef UDP_TELEM_H
26 #define UDP_TELEM_H
27 
29 #include "generated/airframe.h"
30 
31 //#include "subsystems/datalink/transport.h"
33 
34 #define STX 0x99
35 
36 void udp_init( void );
37 void udp_transmit( uint8_t data );
38 void udp_send( void );
39 void udp_receive( void );
40 
41 #define UdpInit() udp_init()
42 #define UdpCheckFreeSpace(_x) (TRUE)
43 #define UdpTransmit(_x) udp_transmit(_x)
44 #define UdpSendMessage() udp_send()
45 
46 #define UdpCheckAndParse() { \
47  udp_receive(); \
48  }
49 
50 #endif /* UDP_TELEM_H */
Extra datalink using PPRZ protocol.
void udp_receive(void)
Definition: udp.c:63
void udp_send(void)
Definition: udp.c:58
void udp_init(void)
Definition: udp.c:48
unsigned char uint8_t
Definition: types.h:14
void udp_transmit(uint8_t data)
Definition: udp.c:53