Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
usb_serial.h
Go to the documentation of this file.
1 /*
2  * Paparazzi $Id$
3  *
4  * Copyright (C) 2006 Pascal Brisset, Antoine Drouin, Michel Gorraz
5  *
6  * This file is part of paparazzi.
7  *
8  * paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  */
24 
30 #ifndef USB_S_H
31 #define USB_S_H
32 
33 #include <inttypes.h>
34 #include "std.h"
35 //#include "usb_serial_hw.h"
36 
37 void VCOM_init(void);
38 int VCOM_putchar(int c);
39 int VCOM_getchar(void);
40 bool_t VCOM_check_free_space(uint8_t len);
41 int VCOM_check_available(void);
42 void VCOM_set_linecoding(uint8_t mode);
44 
45 #define UsbSInit() VCOM_init()
46 #define UsbSCheckFreeSpace(_x) VCOM_check_free_space(_x)
47 #define UsbSTransmit(_x) VCOM_putchar(_x)
48 #define UsbSSendMessage() {}
49 #define UsbSGetch() VCOM_getchar()
50 #define UsbSChAvailable() VCOM_check_available()
51 
52 
53 #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:13
int VCOM_getchar(void)
void VCOM_allow_linecoding(uint8_t mode)