Zephyr API
4.5.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
mpipe_pipeline.h
Go to the documentation of this file.
1
/*
2
* Copyright 2025-2026 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_MPIPE_MPIPE_PIPELINE_H_
14
#define ZEPHYR_INCLUDE_MPIPE_MPIPE_PIPELINE_H_
15
35
36
#include <
stdint.h
>
37
38
#include <
zephyr/net_buf.h
>
39
#include <
zephyr/sys/atomic.h
>
40
#include <
zephyr/zbus/zbus.h
>
41
42
#include <
zephyr/mpipe/mpipe_bin.h
>
43
#include <
zephyr/mpipe/mpipe_message.h
>
44
#include <
zephyr/mpipe/mpipe_thread.h
>
45
51
enum
mpipe_prop_pipeline
{
56
MPIPE_PROP_PIPELINE_THREAD_PRIORITY
,
57
};
58
66
struct
mpipe
{
68
struct
mpipe_bin
bin
;
70
struct
mpipe_thread
thread
;
72
uint32_t
num_sinks
;
74
atomic_t
eos_count
;
75
};
76
87
int
mpipe_pipeline_init
(
struct
mpipe
*pipe,
uint8_t
id
);
88
105
int
mpipe_push_buffer
(
struct
mpipe_pad
*src_pad,
struct
net_buf
*buffer);
106
108
109
#endif
/* ZEPHYR_INCLUDE_MPIPE_MPIPE_PIPELINE_H_ */
atomic.h
Header file for the Atomic operations API.
atomic_t
long atomic_t
Atomic integer variable.
Definition
atomic_types.h:34
mpipe_prop_pipeline
mpipe_prop_pipeline
Properties for a pipeline.
Definition
mpipe_pipeline.h:51
mpipe_push_buffer
int mpipe_push_buffer(struct mpipe_pad *src_pad, struct net_buf *buffer)
Push a buffer downstream starting from a given source pad.
mpipe_pipeline_init
int mpipe_pipeline_init(struct mpipe *pipe, uint8_t id)
Initialize a pipeline.
MPIPE_PROP_PIPELINE_THREAD_PRIORITY
@ MPIPE_PROP_PIPELINE_THREAD_PRIORITY
Thread scheduling priority used when the pipeline thread is created.
Definition
mpipe_pipeline.h:56
mpipe_bin.h
Bin: an element that contains other elements.
mpipe_message.h
Bus message: what an element reports to the application.
mpipe_thread.h
Simple wrapper of k_thread to reuse a thread's stack after its termination.
net_buf.h
Buffer management.
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
mpipe_bin
Bin structure.
Definition
mpipe_bin.h:54
mpipe_pad
Pad structure.
Definition
mpipe_pad.h:128
mpipe_thread
Simple wrapper around k_thread.
Definition
mpipe_thread.h:54
mpipe
A pipeline: the top-level bin that runs a graph.
Definition
mpipe_pipeline.h:66
mpipe::thread
struct mpipe_thread thread
Thread associated with the pipeline.
Definition
mpipe_pipeline.h:70
mpipe::eos_count
atomic_t eos_count
Number of EOS messages seen so far during the current run.
Definition
mpipe_pipeline.h:74
mpipe::bin
struct mpipe_bin bin
Base bin container.
Definition
mpipe_pipeline.h:68
mpipe::num_sinks
uint32_t num_sinks
Number of sink elements in the pipeline (computed on READY->PAUSED).
Definition
mpipe_pipeline.h:72
net_buf
Network buffer representation.
Definition
net_buf.h:1062
zbus.h
zephyr
mpipe
mpipe_pipeline.h
Generated on
for Zephyr API by
1.17.0