32typedef enum : uint8_t {
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
ra8_modem_line_kind_t priv_modem_classify(const char *line, const char *cmd_echo, const char *expected_response)
Classify a complete (NUL-terminated) line for the FSM.
uint8_t priv_modem_capture_should_clear(const void *capture, size_t capture_len)
Pure sibling of the line-664 capture-buffer-init AND-decision.
uint8_t priv_modem_starts_with(const char *hay, const char *needle)
Return 1 iff hay begins with needle.
uint8_t priv_modem_str_eq(const char *a, const char *b)
Return 1 iff a and b are byte-for-byte equal.
uint8_t priv_modem_reset_line_should_clear(const void *line_buf, uint16_t line_buf_len)
Pure (state-free) reimplementation of internal_reset_line's line-227 buffer-clear guard.
uint16_t priv_modem_str_len(const char *s)
NUL-terminated string length, capped at UINT16_MAX.
uint8_t priv_modem_payload_prefix_matches(const char *line, const char *expected_response)
Pure sibling of the line-573 payload-prefix AND-decision.
void priv_modem_capture_line(const char *line, char *capture, size_t capture_len, size_t *used)
Append a NUL-terminated line into capture (with newline sep).
ra8_modem_line_kind_t
Result of processing a single completed line.
@ k_ra8_modem_line_kind_final_err
RA8 modem line kind final error.
@ k_ra8_modem_line_kind_final_ok
RA8 modem line kind final ok.
@ k_ra8_modem_line_kind_urc
RA8 modem line kind urc.
@ k_ra8_modem_line_kind_payload
RA8 modem line kind payload.
@ k_ra8_modem_line_kind_empty
RA8 modem line kind empty.
@ k_ra8_modem_line_kind_echo
RA8 modem line kind echo.