The schedule context: one flag word per channel, the two volatiles that coordinate the interrupt, and the reader/setter. The reader/setter is the only thing that touches either. More...
#include "mmgr.h"#include "memoriam_praetereo/praet_praefinitum.h"#include "memoriam_praetereo/praet_tabula_vexillorum.h"#include "embed_clock.h"#include "memoriam_praetereo/praet_iudex.h"#include "memoriam_praetereo/praet_procurator.h"Go to the source code of this file.
Data Structures | |
| struct | PraetOrdo |
| Everything one context schedules over. More... | |
Macros | |
| #define | PRAET_DENUNTIATIO_ATTR(message_) |
| Marks a declaration so that every use of it reports, with a message. | |
| #define | PRAET_CRC_RESPONSUM_IN_LOCO_FIGERE(token_) |
Pastes token_ onto the answer type prefix. | |
| #define | PRAET_CRC_RESPONSUM(token_) |
The answer type token_ names, after its expansion. | |
| #define | PRAET_CRC_VALUE_AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE |
| The value the AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE token is for. | |
| #define | PRAET_CRC_VALUE_AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE |
| The value the AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE token is for. | |
| #define | PRAET_CRC_VALUE_IN_LOCO_FIGERE(token_) |
Pastes token_ onto the value prefix. | |
| #define | PRAET_CRC_VALUE(token_) |
The value token_ is for, after its expansion. | |
| #define | PRAET_ORDINEM_INCIPE(crc_choice_) |
| An empty context, for a build with no recovery machinery to configure. | |
| #define | PraetOrdoContext(name_, crc_choice_) |
| Declares one schedule context and answers the boundary word question for it. | |
| #define | PraetAttach(context_, channel_, pool_, region_) |
| Attaches a channel over a declared pool, by name. | |
| #define | PraetChannel(context_, channel_, pool_) |
| Declares which pool a channel of a context is over. | |
| #define | PRAET_ALVEUS_SUPERARE(context_, channel_, pool_) |
| Names the binding of a channel's declaration, and fails where there is none. | |
| #define | PRAET_SPAN_FITS(pool_, offset_, length_) |
| Fails the build when a span runs past the pool it names. | |
| #define | PraetSubmit(context_, channel_, pool_, offset_, length_) |
| Submits a span of a declared pool on a channel attached over that pool. | |
Enumerations | |
| enum | PraetRecoveryWordBoundaryBitwiseCrc { AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE , AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE } |
| The two answers a declaration may give about the boundary word check. More... | |
Functions | |
| typedef | PRAET_DENUNTIATIO_ATTR ("AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE - this context measures no boundary word. A " "recovery is exact to the word and no " "finer") unsigned char PraetCrcResponsum_AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE |
| A type that exists only for the AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_DISABLE token. | |
| typedef | PRAET_DENUNTIATIO_ATTR ("AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE - this context checksums the word a stalled " "transfer was inside, one word, bit at a time, on the recovery path " "only") unsigned char PraetCrcResponsum_AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE |
| A type that exists only for the AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE token. | |
| EMBED_HOST_DEVICE uint16_t | praet_hw_progress (embed_word channel) |
Returns how far the port says channel has got, in bytes. | |
| EMBED_HOST_DEVICE void | praet_ordo_reset (PraetOrdo *context) |
| Clears a context back to every channel detached. | |
| EMBED_HOST_DEVICE embed_bool | praet_ordo_adnectere (PraetOrdo *context, embed_word channel, uint8_t *bound, embed_word bytes, embed_word region) |
| Attaches a channel over a block of bytes, claims its vector, and starts the settle timer. | |
| EMBED_HOST_DEVICE void | praet_ordo_separare (PraetOrdo *context, embed_word channel) |
| Asks for the detach of a channel. | |
| EMBED_HOST_DEVICE embed_bool | praet_ordo_relatio (PraetOrdo *context, embed_word channel) |
| Marks a channel busy and starts its keepalive window. | |
| EMBED_HOST_DEVICE void | praet_ordo_efficere (PraetOrdo *context, embed_word channel) |
| Feeds the watchdog for one channel. | |
| EMBED_HOST_DEVICE void | praet_ordo_completed (PraetOrdo *context, embed_word channel, embed_bool failed) |
| Reports that a channel's transfer finished. | |
| EMBED_HOST_DEVICE void | praet_ordo_advance (PraetOrdo *context, embed_word micros) |
Advances the clock by micros. | |
| EMBED_HOST_DEVICE void | praet_ordo_advance_ticks (PraetOrdo *context, embed_word ticks) |
Advances the clock by ticks, scaled against the declared frequency. | |
| EMBED_HOST_DEVICE void | praet_ordo_raise (PraetOrdo *context) |
| Is in for the interrupt that raises the set volatile. | |
| EMBED_HOST_DEVICE void | praet_ordo_poll (PraetOrdo *context) |
| Drives the port and brings every flag word up to date. The caller's poll. | |
| EMBED_HOST_DEVICE uint32_t | praet_ordo_flags (const PraetOrdo *context, embed_word channel) |
| Returns one channel's flag word. | |
The schedule context: one flag word per channel, the two volatiles that coordinate the interrupt, and the reader/setter. The reader/setter is the only thing that touches either.
Definition in file praet_ordo.h.