Constants that configure the serial link shared with lsh-bridge.
More...
Variables | |
| constexpr uint16_t | PACKED_STATE_BYTES |
| Number of bytes required to represent all actuator states on wire. | |
| constexpr uint16_t | RECEIVED_DOC_MIN_SIZE |
| Calculated minimum size for the decoded bridge document. | |
| constexpr uint16_t | RECEIVED_DOC_SIZE |
| Final allocated size for the received document, ensuring a minimum of 48 bytes. | |
| constexpr uint16_t | RAW_INPUT_BUFFER_FIXED_CMD_SIZE |
| Minimum JSON-line buffer size required by the widest fixed-width command. | |
| constexpr uint16_t | RAW_INPUT_BUFFER_VARIABLE_CMD_SIZE |
Maximum JSON-line size of a packed SET_STATE command. | |
| constexpr uint16_t | RAW_INPUT_BUFFER_SIZE |
| Final allocated size for the raw serial input buffer used by the active codec. | |
Constants that configure the serial link shared with lsh-bridge.
|
constexpr |
Number of bytes required to represent all actuator states on wire.
|
constexpr |
Minimum JSON-line buffer size required by the widest fixed-width command.
Longest fixed JSON command plus null terminator: {"p":17,"t":2,"i":255,"c":255}\0
|
constexpr |
Final allocated size for the raw serial input buffer used by the active codec.
|
constexpr |
Maximum JSON-line size of a packed SET_STATE command.
Conservative worst case for {"p":12,"s":[255,...]}
\0
|
constexpr |
Calculated minimum size for the decoded bridge document.
|
constexpr |
Final allocated size for the received document, ensuring a minimum of 48 bytes.