Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
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
};
31
32
struct
modem_backend_tty_config
{
33
const
char
*
tty_path
;
34
k_thread_stack_t
*
stack
;
35
size_t
stack_size
;
36
};
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:259
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 Fri Jul 26 2024 14:01:57 for Zephyr API Documentation by
1.9.6