Zephyr Project API  3.3.0
A Scalable Open Source RTOS
rtio_executor_simple.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_RTIO_RTIO_EXECUTOR_SIMPLE_H_
7#define ZEPHYR_INCLUDE_RTIO_RTIO_EXECUTOR_SIMPLE_H_
8
9#include <zephyr/rtio/rtio.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
35
43void rtio_simple_ok(struct rtio *r, const struct rtio_sqe *sqe, int result);
44
52void rtio_simple_err(struct rtio *r, const struct rtio_sqe *sqe, int result);
53
59};
60
64static const struct rtio_executor_api z_rtio_simple_api = {
66 .ok = rtio_simple_ok,
67 .err = rtio_simple_err
68};
69
80#define RTIO_EXECUTOR_SIMPLE_DEFINE(name) \
81 struct rtio_simple_executor name = { .ctx = { .api = &z_rtio_simple_api } };
82
87#ifdef __cplusplus
88}
89#endif
90
91
92#endif /* ZEPHYR_INCLUDE_RTIO_RTIO_EXECUTOR_SIMPLE_H_ */
workaround assembler barfing for ST r
Definition: asm-macro-32-bit-gnu.h:24
void rtio_simple_ok(struct rtio *r, const struct rtio_sqe *sqe, int result)
Report a SQE has completed successfully.
void rtio_simple_err(struct rtio *r, const struct rtio_sqe *sqe, int result)
Report a SQE has completed with error.
int rtio_simple_submit(struct rtio *r)
Submit to the simple executor.
Real-Time IO device API for moving bytes with low effort.
Definition: errno.c:37
Definition: rtio.h:168
int(* submit)(struct rtio *r)
Submit the request queue to executor.
Definition: rtio.h:177
An executor does the work of executing the submissions.
Definition: rtio.h:210
Simple Executor.
Definition: rtio_executor_simple.h:57
struct rtio_executor ctx
Definition: rtio_executor_simple.h:58
A submission queue event.
Definition: rtio.h:109
An RTIO queue pair that both the kernel and application work with.
Definition: rtio.h:222