Select one of the symbols to view example projects that use it.
 
Outline
#include "sdkconfig.h"
#include <sys/termios.h>
#include <sys/errno.h>
cfgetispeed(const struct termios *)
cfgetospeed(const struct termios *)
cfsetispeed(struct termios *, speed_t)
cfsetospeed(struct termios *, speed_t)
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/newlib/termios.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include "sdkconfig.h" #ifdef CONFIG_VFS_SUPPORT_TERMIOS #include <sys/termios.h> #include <sys/errno.h> speed_t cfgetispeed(const struct termios *p) { return p ? p->c_ispeed : B0; }{ ... } speed_t cfgetospeed(const struct termios *p) { return p ? p->c_ospeed : B0; }{ ... } int cfsetispeed(struct termios *p, speed_t sp) { if (p) { p->c_ispeed = sp; return 0; }{...} else { errno = EINVAL; return -1; }{...} }{ ... } int cfsetospeed(struct termios *p, speed_t sp) { if (p) { p->c_ospeed = sp; return 0; }{...} else { errno = EINVAL; return -1; }{...} }{ ... } /* ... */#endif // CONFIG_VFS_SUPPORT_TERMIOS
Details
Show:
from
Types: Columns: