|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
One field of a frame. Frames are static const pc_field[], so they live in rodata.
More...
#include <frame.h>
Public Attributes | |
| uint8_t | kind |
| a pc_fk | |
| uint8_t | width |
| min digits (DEC/HEX/OCT), significant digits (G), decimals (FIX) | |
| uint16_t | len |
PC_FK_LIT: byte length of lit; gated by check_frame_specs.py. | |
| const char * | lit |
| PC_FK_LIT only. | |
One field of a frame. Frames are static const pc_field[], so they live in rodata.
len carries a literal's length, written out in the spec and verified by ci_tooling/check/check_frame_specs.py. A spec is fixed when the code is written, so having the engine re-scan each literal for its NUL at runtime is the same waste as re-parsing a format string: measured at +54% on a response frame and +184% on a literal-only one.
| uint8_t pc_field::kind |
| uint8_t pc_field::width |
| uint16_t pc_field::len |