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 passed back to it. More... | |
| struct | PraetCfg |
| Arguments for a channel open, and for a poll of one. More... | |
| struct | PraetTransferCfg |
| Arguments for a transfer submit, and for a channel close. 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_HOST_DEVICE embed_bool | mmgr_praet_open (const PraetCfg *args) |
| Opens args->channel and registers args->on_complete against it. | |
| EMBED_HOST_DEVICE embed_bool | mmgr_praet_tx_submit (const PraetTransferCfg *args) |
| Submits args->bytes of args->buf on args->channel. | |
| EMBED_HOST_DEVICE void | mmgr_praet_close (const PraetTransferCfg *args) |
| Closes args->channel. | |
| EMBED_HOST_DEVICE void | mmgr_praet_poll (const PraetCfg *args) |
| Drives the port layer's poll hook. | |
| EMBED_HOST_DEVICE embed_bool | mmgr_praet_hw_open (const PraetCfg *args) |
| Opens a DMA channel on real hardware. | |
| EMBED_HOST_DEVICE embed_bool | mmgr_praet_hw_tx_submit (const PraetTransferCfg *args) |
| Submits a transfer on real hardware. | |
| EMBED_HOST_DEVICE void | mmgr_praet_hw_close (const PraetTransferCfg *args) |
| Closes a DMA channel on real hardware. | |
| EMBED_HOST_DEVICE void | mmgr_praet_hw_poll (const PraetCfg *args) |
| Advances whatever poll work 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.