Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
▼
modem
▼
backend
►
tty.h
►
uart.h
►
chat.h
►
cmux.h
►
pipe.h
►
pipelink.h
►
ppp.h
►
stats.h
►
ubx.h
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
tty.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Trackunit Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#include <
zephyr/kernel.h
>
8
#include <
zephyr/types.h
>
9
#include <
zephyr/device.h
>
10
#include <
zephyr/sys/ring_buffer.h
>
11
#include <
zephyr/sys/atomic.h
>
12
13
#include <
zephyr/modem/pipe.h
>
14
15
#ifndef ZEPHYR_MODEM_BACKEND_TTY_
16
#define ZEPHYR_MODEM_BACKEND_TTY_
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
struct
modem_backend_tty
{
23
const
char
*
tty_path
;
24
int
tty_fd
;
25
struct
modem_pipe
pipe
;
26
struct
k_thread
thread
;
27
k_thread_stack_t
*
stack
;
28
size_t
stack_size
;
29
atomic_t
state
;
30
};
22
struct
modem_backend_tty
{
…
};
31
32
struct
modem_backend_tty_config
{
33
const
char
*
tty_path
;
34
k_thread_stack_t
*
stack
;
35
size_t
stack_size
;
36
};
32
struct
modem_backend_tty_config
{
…
};
37
38
struct
modem_pipe *
modem_backend_tty_init
(
struct
modem_backend_tty
*backend,
39
const
struct
modem_backend_tty_config
*config);
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
/* ZEPHYR_MODEM_BACKEND_TTY_ */
k_thread_stack_t
struct z_thread_stack_element k_thread_stack_t
Typedef of struct z_thread_stack_element.
Definition
arch_interface.h:46
atomic_t
long atomic_t
Definition
atomic_types.h:15
device.h
types.h
kernel.h
Public kernel APIs.
modem_backend_tty_init
struct modem_pipe * modem_backend_tty_init(struct modem_backend_tty *backend, const struct modem_backend_tty_config *config)
pipe.h
ring_buffer.h
k_thread
Thread Structure.
Definition
thread.h:262
modem_backend_tty_config
Definition
tty.h:32
modem_backend_tty_config::tty_path
const char * tty_path
Definition
tty.h:33
modem_backend_tty_config::stack_size
size_t stack_size
Definition
tty.h:35
modem_backend_tty_config::stack
k_thread_stack_t * stack
Definition
tty.h:34
modem_backend_tty
Definition
tty.h:22
modem_backend_tty::stack
k_thread_stack_t * stack
Definition
tty.h:27
modem_backend_tty::stack_size
size_t stack_size
Definition
tty.h:28
modem_backend_tty::state
atomic_t state
Definition
tty.h:29
modem_backend_tty::pipe
struct modem_pipe pipe
Definition
tty.h:25
modem_backend_tty::tty_fd
int tty_fd
Definition
tty.h:24
modem_backend_tty::thread
struct k_thread thread
Definition
tty.h:26
modem_backend_tty::tty_path
const char * tty_path
Definition
tty.h:23
atomic.h
zephyr
modem
backend
tty.h
Generated on Sat May 17 2025 21:06:21 for Zephyr API Documentation by
1.12.0