DMA channels: the completion event, the port hooks, the praet dispatch table, and the schedule and descriptors under them. More...
#include "mmgr.h"#include "memoriam_praetereo/praet_descriptor.h"#include "memoriam_praetereo/praet_ordo.h"Go to the source code of this file.
Data Structures | |
| struct | mmgr_praet_event |
| What the port layer reports when a transfer finishes. More... | |
| struct | PraetCallbackCfg |
| A completion callback and the pointer handed back to it. More... | |
| struct | PraetCfg |
| Arguments for opening a channel, and for polling one. More... | |
| struct | PraetTransferCfg |
| Arguments for submitting a transfer, and for closing a channel. More... | |
| struct | MemoriamPraetereoNs |
| Type of the praet dispatch table. More... | |
Typedefs | |
| typedef void(*) | mmgr_praet_callback(const mmgr_praet_event *event, void *user) |
| Reports a finished transfer to whatever registered this callback. | |
Functions | |
| embed_bool | mmgr_praet_open (const PraetCfg *args) |
| Opens args->channel and registers args->on_complete against it. | |
| embed_bool | mmgr_praet_tx_submit (const PraetTransferCfg *args) |
| Submits args->bytes of args->buf on args->channel. | |
| void | mmgr_praet_close (const PraetTransferCfg *args) |
| Closes args->channel. | |
| void | mmgr_praet_poll (const PraetCfg *args) |
| Drives the port layer's poll hook. | |
| embed_bool | mmgr_praet_hw_open (const PraetCfg *args) |
| Opens a DMA channel on real hardware. | |
| embed_bool | mmgr_praet_hw_tx_submit (const PraetTransferCfg *args) |
| Submits a transfer on real hardware. | |
| void | mmgr_praet_hw_close (const PraetTransferCfg *args) |
| Closes a DMA channel on real hardware. | |
| void | mmgr_praet_hw_poll (const PraetCfg *args) |
| Advances whatever polling the port layer needs. | |
Variables | |
| static const MemoriamPraetereoNs | praet |
| Dispatch table instance named praet. | |
DMA channels: the completion event, the port hooks, the praet dispatch table, and the schedule and descriptors under them.
Definition in file memoriam_praetereo.h.
| typedef void(*) mmgr_praet_callback(const mmgr_praet_event *event, void *user) |
Reports a finished transfer to whatever registered this callback.
| [in] | event | The completion event [BORROWS]. |
| [in] | user | The pointer registered alongside this callback [BORROWS]. |
Definition at line 54 of file memoriam_praetereo.h.
| embed_bool mmgr_praet_open | ( | const PraetCfg * | args | ) |
Opens args->channel and registers args->on_complete against it.
| [in] | args | Channel, peripheral, loopback flag and completion callback [BORROWS]. |
References mmgr_praet_open().
Referenced by mmgr_praet_open().
| embed_bool mmgr_praet_tx_submit | ( | const PraetTransferCfg * | args | ) |
Submits args->bytes of args->buf on args->channel.
| [in] | args | Channel, buffer and byte count [BORROWS]. |
References mmgr_praet_tx_submit().
Referenced by mmgr_praet_tx_submit().
| void mmgr_praet_close | ( | const PraetTransferCfg * | args | ) |
Closes args->channel.
| [in] | args | Channel to close [BORROWS]. |
References mmgr_praet_close().
Referenced by mmgr_praet_close().
| void mmgr_praet_poll | ( | const PraetCfg * | args | ) |
Drives the port layer's poll hook.
| [in] | args | Channel to poll [BORROWS]. |
References mmgr_praet_poll().
Referenced by mmgr_praet_poll().
| embed_bool mmgr_praet_hw_open | ( | const PraetCfg * | args | ) |
Opens a DMA channel on real hardware.
| [in] | args | Channel, peripheral, loopback flag and completion callback, as mmgr_praet_open forwards them [BORROWS]. |
References mmgr_praet_hw_open().
Referenced by mmgr_praet_hw_open().
| embed_bool mmgr_praet_hw_tx_submit | ( | const PraetTransferCfg * | args | ) |
Submits a transfer on real hardware.
| [in] | args | Channel, buffer and byte count, as mmgr_praet_tx_submit forwards them [BORROWS]. |
References mmgr_praet_hw_tx_submit().
Referenced by mmgr_praet_hw_tx_submit().
| void mmgr_praet_hw_close | ( | const PraetTransferCfg * | args | ) |
Closes a DMA channel on real hardware.
| [in] | args | Channel to close, as mmgr_praet_close forwards it [BORROWS]. |
References mmgr_praet_hw_close().
Referenced by mmgr_praet_hw_close().
| void mmgr_praet_hw_poll | ( | const PraetCfg * | args | ) |
Advances whatever polling the port layer needs.
| [in] | args | Channel to poll, exactly as the caller gave it [BORROWS]. |
References mmgr_praet_hw_poll().
Referenced by mmgr_praet_hw_poll().
|
static |
Dispatch table instance named praet.
Definition at line 204 of file memoriam_praetereo.h.