Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_adsp_memory_window.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef SHELL_ADSP_MEMORY_WINDOW_H__
14#define SHELL_ADSP_MEMORY_WINDOW_H__
15
16#include <zephyr/kernel.h>
17#include <zephyr/shell/shell.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24
25struct sys_winstream;
26
46
47#define SHELL_ADSP_MEMORY_WINDOW_DEFINE(_name) \
48 static struct shell_adsp_memory_window _name##_shell_adsp_memory_window;\
49 struct shell_transport _name = { \
50 .api = &shell_adsp_memory_window_transport_api, \
51 .ctx = &_name##_shell_adsp_memory_window, \
52 }
53
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* SHELL_ADSP_MEMORY_WINDOW_H__ */
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Definition shell.h:795
Public kernel APIs.
const struct shell * shell_backend_adsp_memory_window_get_ptr(void)
This function provides pointer to shell ADSP memory window backend instance.
const struct shell_transport_api shell_adsp_memory_window_transport_api
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Kernel timer structure.
Definition kernel.h:1777
Memwindow based shell transport.
Definition shell_adsp_memory_window.h:28
struct sys_winstream * ws_rx
Receive winstream object.
Definition shell_adsp_memory_window.h:38
void * shell_context
Context registered by shell.
Definition shell_adsp_memory_window.h:35
struct k_timer timer
Definition shell_adsp_memory_window.h:32
shell_transport_handler_t shell_handler
Handler function registered by shell.
Definition shell_adsp_memory_window.h:30
struct sys_winstream * ws_tx
Transmit winstream object.
Definition shell_adsp_memory_window.h:41
uint32_t read_seqno
Last read sequence number.
Definition shell_adsp_memory_window.h:44
Unified shell transport interface.
Definition shell.h:818
Shell instance internals.
Definition shell.h:1063
Lockless shared memory byte stream IPC.
Definition winstream.h:25