71 "PRAET_SETTLE_MICROS was not set and took the library default of 0, so this build waits for nothing after an attach. Set it to what your engine takes to come up."
72#endif
73
74/**
75 * @brief Microseconds an active channel may go with no kick from the port before it reads stalled.
76 *
77 * @note A watchdog window and not a transfer length. The port kicks this whenever the engine shows a
78 * sign of life. A window that goes unkicked says the channel stopped, and it never
79 * says the transfer finished. Completion arrives from the port, because how long a transfer
80 * takes is not something this library can know.
81 * @note That is also why the width is not a problem. A watchdog window is short deliberately. So the
82 * 65 millisecond ceiling a 16-bit word puts on a microsecond count is far above any value
83 * worth a place here. A transfer's runtime has no bound at all.
89 "PRAET_KEEPALIVE_MICROS was not set and took the library default of 1000. Set it to how long a moving channel may go unkicked on your part before it has stopped."
90#endif
91
92/**
93 * @brief Whether a stalled transfer can go back or come out scrubbed.
94 *
95 * @note The capability switch. Off is what a caller gets with no answer. Recovery costs
96 * three arrays per channel and a caller who never said where the bytes were cannot back
97 * anything out of them.
98 * @note With it on, submit takes the start and the length, kick reports how far the engine got, and
99 * praet_ordo_resolve exists. With it off none of those members are in the context and none
100 * of those entries exist. A call site that wanted them fails to compile and does not
101 * link against a version that records nothing.
107 "PRAET_RECOVERY was not set and took the library default of 0. A stalled transfer cannot be backed out or scrubbed in this build. Set it to 1 to have that machinery, 0 to say you meant to leave it out."
108#endif
109
110// A capability switch is on or off, and a third value is somebody reading it as a count or a channel
111// number. Every test on it below would take the on arm silently. This one stops where it is
112// and stays out of the basket. Every gate after it would answer a question about a
115#error "PRAET_RECOVERY must be 0 or 1. It is a capability switch, not a count."
116#endif
117
118// The boundary word check is not a build knob and has no default. Each context answers it once, in
119// the declaration, with a token nobody writes by accident. See PraetOrdoContext in
120// praet_ordo.h. A -D that sets it here reads as a build-wide switch, which it is not
121#ifdef PRAET_RECOVERY_CRC
122#error \
123 "PRAET_RECOVERY_CRC is not a build knob. The boundary word check is answered per context, in the declaration: PraetOrdoContext(name, AD_VERBI_CONFINIUM_RESTITUE_PAULATIM_CRC_ENABLE) or the DISABLE token."