ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_modem_at_internal.h
Go to the documentation of this file.
1
15
16#pragma once
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <stdint.h>
23
24#include "ra8_attributes.h"
25
40
74priv_modem_classify(const char* line, const char* cmd_echo, const char* expected_response);
75
100uint16_t priv_modem_str_len(const char* s);
101
124uint8_t priv_modem_starts_with(const char* hay, const char* needle);
125
153uint8_t priv_modem_str_eq(const char* a, const char* b);
154
155#include <stddef.h>
156
182void priv_modem_capture_line(const char* line, char* capture, size_t capture_len, size_t* used);
183
218uint8_t priv_modem_reset_line_should_clear(const void* line_buf, uint16_t line_buf_len);
219
254uint8_t priv_modem_payload_prefix_matches(const char* line, const char* expected_response);
255
289uint8_t priv_modem_capture_should_clear(const void* capture, size_t capture_len);
290
291#ifdef __cplusplus
292}
293#endif
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.