Zephyr API Documentation 4.0.0-rc3
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>
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
19extern "C" {
20#endif
21
23 const char *tty_path;
24 int tty_fd;
25 struct modem_pipe pipe;
28 size_t stack_size;
30};
31
37
38struct 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_ */
struct z_thread_stack_element k_thread_stack_t
Typedef of struct z_thread_stack_element.
Definition arch_interface.h:46
long atomic_t
Definition atomic_types.h:15
Public kernel APIs.
struct modem_pipe * modem_backend_tty_init(struct modem_backend_tty *backend, const struct modem_backend_tty_config *config)
Thread Structure.
Definition thread.h:259
Definition tty.h:32
const char * tty_path
Definition tty.h:33
size_t stack_size
Definition tty.h:35
k_thread_stack_t * stack
Definition tty.h:34
Definition tty.h:22
k_thread_stack_t * stack
Definition tty.h:27
size_t stack_size
Definition tty.h:28
atomic_t state
Definition tty.h:29
struct modem_pipe pipe
Definition tty.h:25
int tty_fd
Definition tty.h:24
struct k_thread thread
Definition tty.h:26
const char * tty_path
Definition tty.h:23