Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
usb_serial.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Pascal Brisset, Antoine Drouin, Michel Gorraz
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 USB_S_H
29 #define USB_S_H
30 
31 #include <inttypes.h>
32 #include "std.h"
33 //#include "usb_serial_hw.h"
34 
35 void VCOM_init(void);
36 int VCOM_putchar(int c);
37 int VCOM_getchar(void);
38 bool_t VCOM_check_free_space(uint8_t len);
39 int VCOM_check_available(void);
40 void VCOM_set_linecoding(uint8_t mode);
42 
43 #define UsbSInit() VCOM_init()
44 #define UsbSCheckFreeSpace(_x) VCOM_check_free_space(_x)
45 #define UsbSTransmit(_x) VCOM_putchar(_x)
46 #define UsbSSendMessage() {}
47 #define UsbSGetch() VCOM_getchar()
48 #define UsbSChAvailable() VCOM_check_available()
49 
50 
51 #endif /* USB_S_H */
bool_t VCOM_check_free_space(uint8_t len)
int VCOM_check_available(void)
int VCOM_putchar(int c)
void VCOM_init(void)
unsigned char uint8_t
Definition: types.h:14
void VCOM_set_linecoding(uint8_t mode)
static struct point c
Definition: discsurvey.c:39
int VCOM_getchar(void)
void VCOM_allow_linecoding(uint8_t mode)