Epok Engine

EPOK RUNTIME

epok::serial_recover_dma

Function template · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function template

The resident serial handler can consume a CPU IRQ while an enabled DMA flag remains asserted in DICR.

Belongs to
epok
Header
serial_kernel.hpp
Overloads
1

Declaration

template
Declaration
template<class Memory, class Deliver> bool serial_recover_dma(Memory& memory, Deliver&& deliver)

The resident serial handler can consume a CPU IRQ while an enabled DMA flag remains asserted in DICR.

ParameterTypeMeaning
memoryMemory &Not documented; consult the linked header.
deliverDeliver &&Not documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "serial_kernel.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Memory, Deliver

// Assume these named values have been initialized with valid data:
// Memory & memory
// Deliver && deliver

auto result = epok::serial_recover_dma<Memory, Deliver>(memory, deliver);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/serial_kernel.hpp:19

Related members