Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mpipe_message.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_MESSAGE_H_
14#define ZEPHYR_INCLUDE_MPIPE_MPIPE_MESSAGE_H_
15
44
45#include <stdint.h>
46
47#include <zephyr/kernel.h>
49
51
59
66#define MPIPE_MESSAGE_ANY UINT32_MAX
67
102
115
150int mpipe_message_post(const struct mpipe_message *message);
151
153
154#endif /* ZEPHYR_INCLUDE_MPIPE_MPIPE_MESSAGE_H_ */
mpipe_message_type
Message types, usable as bitmask filters.
Definition mpipe_message.h:53
int mpipe_message_post(const struct mpipe_message *message)
Post a message to the bus of the bin holding its origin.
mpipe_error_domain
The domain a failure happened in: what the element was doing.
Definition mpipe_message.h:84
@ MPIPE_MESSAGE_ERROR
Error.
Definition mpipe_message.h:57
@ MPIPE_MESSAGE_EOS
End of stream.
Definition mpipe_message.h:56
@ MPIPE_MESSAGE_UNKNOWN
Uninitialized: what a zeroed message carries; cannot be posted.
Definition mpipe_message.h:55
@ MPIPE_ERROR_FLOW
Buffer flow: a chain, acquire or push failed while streaming; stop or restart.
Definition mpipe_message.h:96
@ MPIPE_ERROR_CAPS
Capability negotiation: the formats would not intersect; try another config.
Definition mpipe_message.h:92
@ MPIPE_ERROR_DOMAIN_END
One past the last domain; not itself a domain.
Definition mpipe_message.h:100
@ MPIPE_ERROR_FAILED
Nothing more specific fits.
Definition mpipe_message.h:90
@ MPIPE_ERROR_BUFFER_POOL
Buffer negotiation: a pool would not configure or start; reduce counts or sizes.
Definition mpipe_message.h:94
@ MPIPE_ERROR_RESOURCE
A device, file or driver refused; check the media or the hardware.
Definition mpipe_message.h:98
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
Public kernel APIs.
Element: the unit a pipeline is built from.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Element base class.
Definition mpipe_element.h:165
Message structure carrying type and origin of the message.
Definition mpipe_message.h:109
uint8_t domain
What the element was doing, see mpipe_error_domain.
Definition mpipe_message.h:113
uint32_t type
Message type (see mpipe_message_type).
Definition mpipe_message.h:111
int32_t code
errno-style code, negative, 0 if unset
Definition mpipe_message.h:112
struct mpipe_element * origin
Element that posted this message.
Definition mpipe_message.h:110
Macro utilities.