Nexus Embedded Platform 1.0.0
Statically assembled reusable embedded mechanisms
Loading...
Searching...
No Matches
spi_owner.h File Reference

Explicit polling SPI executor for the bounded owner adapter. More...

Go to the source code of this file.

Data Structures

struct  nx_spi_owner_operation_t
 Caller-owned SPI transaction descriptor, borrowed until SETTLED. More...
struct  nx_spi_owner_executor_t
 Exact polling executor storage; no payload copy or queue. More...

Functions

nx_owner_executor_port_t nx_spi_owner_executor_port (nx_spi_owner_executor_t *executor, const nx_spi_port_t *port)
 Bind an explicit synchronous SPI execution adapter.

Detailed Description

Explicit polling SPI executor for the bounded owner adapter.

Author
Nexus Team

Definition in file spi_owner.h.

Function Documentation

◆ nx_spi_owner_executor_port()

nx_owner_executor_port_t nx_spi_owner_executor_port ( nx_spi_owner_executor_t * executor,
const nx_spi_port_t * port )

Bind an explicit synchronous SPI execution adapter.

Parameters
[out]executorFresh storage with no outstanding operation
[in]portController exclusively serviced by this owner
Returns
Port for nx_bus_owner_init, or a zero port for invalid input
Note
start executes a real CPU-active polling transaction and releases all IO buffers before returning. Owner service later publishes its caller-owned request. Polling cannot be preempted by another task's cancel; once the polling call returns, its result is final despite later cancellation or publication delay. Do not claim IRQ/DMA mode or low-CPU asynchronous hardware execution. Endpoints must prove their controller identity before any wire effect; distinct chip selects on this controller remain valid. The controller and executor outlive owner shutdown and all observers.