ubinos
dtty.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Sung Ho Park
3  Contact: ubinos.org@gmail.com
4 
5  This file is part of the itf_ubinos component of the Ubinos.
6 
7  GNU General Public License Usage
8  This file may be used under the terms of the GNU
9  General Public License version 3.0 as published by the Free Software
10  Foundation and appearing in the file license_gpl3.txt included in the
11  packaging of this file. Please review the following information to
12  ensure the GNU General Public License version 3.0 requirements will be
13  met: http://www.gnu.org/copyleft/gpl.html.
14 
15  GNU Lesser General Public License Usage
16  Alternatively, this file may be used under the terms of the GNU Lesser
17  General Public License version 2.1 as published by the Free Software
18  Foundation and appearing in the file license_lgpl.txt included in the
19  packaging of this file. Please review the following information to
20  ensure the GNU Lesser General Public License version 2.1 requirements
21  will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 
23  Commercial Usage
24  Alternatively, licensees holding valid commercial licenses may
25  use this file in accordance with the commercial license agreement
26  provided with the software or, alternatively, in accordance with the
27  terms contained in a written agreement between you and rightful owner.
28  */
29 
30 #ifndef UBINOS_BSP_DTTY_H_
31 #define UBINOS_BSP_DTTY_H_
32 
33 #ifdef __cplusplus
34 extern "C"
35 {
36 #endif
37 
46 #include <ubinos_config.h>
47 #include <ubinos/type.h>
48 
58 int dtty_init(void);
59 
70 int dtty_enable(void);
71 
80 int dtty_disable(void);
81 
88 int dtty_geterror(void);
89 
100 int dtty_getc(char * ch_p);
101 
111 int dtty_putc(int ch);
112 
125 int dtty_putn(const char * str, int len);
126 
133 int dtty_kbhit(void);
134 
147 int dtty_puts(const char * str, int max);
148 
164 int dtty_gets(char * str, int max);
165 
177 int dtty_setecho(int echo);
178 
179 #ifdef __cplusplus
180 }
181 #endif
182 
183 #endif /* UBINOS_BSP_DTTY_H_ */
dtty_geterror
int dtty_geterror(void)
dtty_getc
int dtty_getc(char *ch_p)
dtty_enable
int dtty_enable(void)
dtty_disable
int dtty_disable(void)
type.h
ubinos basic data type
max
#define max(a, b)
Definition: ubiclib.h:257
dtty_putn
int dtty_putn(const char *str, int len)
dtty_puts
int dtty_puts(const char *str, int max)
dtty_putc
int dtty_putc(int ch)
dtty_gets
int dtty_gets(char *str, int max)
dtty_setecho
int dtty_setecho(int echo)
dtty_init
int dtty_init(void)
dtty_kbhit
int dtty_kbhit(void)