Zephyr API
4.5.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
mpipe_object.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_OBJECT_H_
14
#define ZEPHYR_INCLUDE_MPIPE_MPIPE_OBJECT_H_
15
40
41
#include <
stdint.h
>
42
43
#include <
zephyr/sys/dlist.h
>
44
#include <
zephyr/sys/util_macro.h
>
45
47
#define MPIPE_OBJECT_FLAG_BASE BIT(0)
54
#define MPIPE_OBJECT_FLAG_BIN BIT(1)
55
57
#define MPIPE_PROP_LIST_END UINT32_MAX
58
65
struct
mpipe_object
{
67
struct
mpipe_object
*
container
;
71
uint8_t
id
;
73
uint32_t
flags
;
75
sys_dnode_t
node
;
87
int (*
set_property
)(
struct
mpipe_object
*self,
uint32_t
key,
const
void
*val);
98
int (*
get_property
)(
struct
mpipe_object
*self,
uint32_t
key,
void
*val);
99
};
100
108
void
mpipe_object_init
(
struct
mpipe_object
*obj);
109
135
int
mpipe_object_set_properties
(
struct
mpipe_object
*obj, ...);
136
162
int
mpipe_object_get_properties
(
struct
mpipe_object
*obj, ...);
163
165
166
#endif
/* ZEPHYR_INCLUDE_MPIPE_MPIPE_OBJECT_H_ */
dlist.h
Header file for the doubly-linked list API.
sys_dnode_t
struct _dnode sys_dnode_t
Doubly-linked list node structure.
Definition
dlist.h:59
mpipe_object_get_properties
int mpipe_object_get_properties(struct mpipe_object *obj,...)
Get multiple properties' values of an mpipe_object.
mpipe_object_init
void mpipe_object_init(struct mpipe_object *obj)
Initialize all fields of mpipe_object to zero.
mpipe_object_set_properties
int mpipe_object_set_properties(struct mpipe_object *obj,...)
Set multiple properties of an mpipe_object.
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
mpipe_object
Base object structure.
Definition
mpipe_object.h:65
mpipe_object::container
struct mpipe_object * container
Parent element that contains this object.
Definition
mpipe_object.h:67
mpipe_object::id
uint8_t id
Unique ID given to an object instance.
Definition
mpipe_object.h:71
mpipe_object::get_property
int(* get_property)(struct mpipe_object *self, uint32_t key, void *val)
Read one property.
Definition
mpipe_object.h:98
mpipe_object::set_property
int(* set_property)(struct mpipe_object *self, uint32_t key, const void *val)
Set one property.
Definition
mpipe_object.h:87
mpipe_object::flags
uint32_t flags
Flags of the object, an inheritable bitfield.
Definition
mpipe_object.h:73
mpipe_object::node
sys_dnode_t node
Object node to be used in a linked list.
Definition
mpipe_object.h:75
util_macro.h
Macro utilities.
zephyr
mpipe
mpipe_object.h
Generated on
for Zephyr API by
1.17.0