Nexus Embedded Platform
0.1.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
spi_async_owner.h
Go to the documentation of this file.
1
6
#ifndef NEXUS_COMPONENTS_SPI_ASYNC_OWNER_H
7
#define NEXUS_COMPONENTS_SPI_ASYNC_OWNER_H
8
9
#include "
nexus/components/spi_owner.h
"
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
21
typedef
struct
{
22
const
nx_spi_port_t
*
port
;
23
nx_spi_request_t
inner
;
24
bool
pending
;
25
}
nx_spi_async_owner_executor_t
;
26
41
nx_owner_executor_port_t
42
nx_spi_async_owner_executor_port
(
nx_spi_async_owner_executor_t
* executor,
43
const
nx_spi_port_t
* port);
44
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif
/* NEXUS_COMPONENTS_SPI_ASYNC_OWNER_H */
nx_spi_port_t
struct nx_spi_port nx_spi_port_t
Definition
spi.h:17
nx_spi_async_owner_executor_port
nx_owner_executor_port_t nx_spi_async_owner_executor_port(nx_spi_async_owner_executor_t *executor, const nx_spi_port_t *port)
Bind one async-capable bus to an explicit owner executor.
spi_owner.h
Explicit polling SPI executor for the bounded owner adapter.
nx_owner_executor_port_t
One real execution owner, injected without OS dependency.
Definition
bus_owner.h:49
nx_spi_async_owner_executor_t
Exact async storage independent of the polling adapter.
Definition
spi_async_owner.h:21
nx_spi_async_owner_executor_t::port
const nx_spi_port_t * port
Definition
spi_async_owner.h:22
nx_spi_async_owner_executor_t::inner
nx_spi_request_t inner
Definition
spi_async_owner.h:23
nx_spi_async_owner_executor_t::pending
bool pending
Definition
spi_async_owner.h:24
nx_spi_request_t
Caller-owned finite SPI request with one whole-CS interval.
Definition
spi.h:32
components
bus_owner
include
nexus
components
spi_async_owner.h
Generated by
1.14.0