arc/pipeline.hpp
Descriptor endpoint composition and 2D row binding.
Fit
- Use it when a pointer crosses cache, DMA, PSRAM, flash mapping, or another core boundary.
- Do not start here when ordinary stack/local data stays inside one task and never crosses a hardware owner.
- Verification focus: confirm alignment, capability flags, cache ownership, and completion tickets before reusing buffers.
Arc Contract
- Header:
arc/pipeline.hpp - Module group: Memory, DMA, And Placement
- CMake feature:
memory - Closest example:
examples/esp32s3/copy
Declare arc_requires(main_requires core memory) in the component that includes this header.
CMake And Include
cmake
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/arc-deps.cmake)
arc_requires(main_requires core memory)
idf_component_register(
SRCS "app_main.cpp"
REQUIRES ${main_requires}
)cpp
#include "arc/pipeline.hpp"Source Landmarks
Source landmarks: DmaEndpoint, Pipeline, Dma2dWindow.
Start From Zero
- Start from the closest example or the root project listed below.
- Load the ESP-IDF environment with
. ./env.sh. - Add the include and CMake feature only in the component that owns this lane.
- Keep board topology, buffers, and ownership in one visible owner type.
- Move from build proof to hardware proof only after the wiring or runtime dependency is known.
Owner Skeleton
cpp
namespace app {
void boot()
{
// Put board policy, buffer ownership, and failure handling here.
// Keep Core 1 hot work separate from Core 0 service work.
}
}
extern "C" void app_main()
{
app::boot();
}Step-By-Step Check
- Decide whether this module owns silicon, memory, protocol bytes, or policy only.
- Name the owner type once, close to the board topology.
- Allocate any DMA or shared buffers before the hardware starts.
- Initialize with the recoverable path while bringing up the board.
- Switch to the fail-fast path only after the topology is treated as fixed.
- Log from Core 0 after the hot path has handed off a compact event or snapshot.
Build Or Example
The closest shipped example is examples/esp32s3/copy.
sh
. ./env.sh
idf.py -C examples/esp32s3/copy build
idf.py -C examples/esp32s3/copy -p /dev/ttyACM0 flash monitorRuntime Check
The build command proves the dependency path. Runtime proof still needs the actual board condition that matches this module: attached device, loopback, radio peer, flash partition, sleep wake source, or captured serial/network output. Do not turn the example command into a performance or hardware claim without that evidence.