2026-04-11 18:21:18 +08:00
|
|
|
#ifndef BLINKY_PROTOCOL_MODULE_H_
|
|
|
|
|
#define BLINKY_PROTOCOL_MODULE_H_
|
|
|
|
|
|
2026-04-15 10:23:12 +08:00
|
|
|
#include <stdbool.h>
|
2026-04-11 18:21:18 +08:00
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2026-04-15 10:23:12 +08:00
|
|
|
#include "proto_common.h"
|
|
|
|
|
|
2026-04-11 18:21:18 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-04-15 10:23:12 +08:00
|
|
|
int protocol_module_process_message(enum proto_transport transport,
|
|
|
|
|
const uint8_t *req_payload,
|
|
|
|
|
size_t req_payload_len,
|
|
|
|
|
uint8_t *rsp_payload,
|
|
|
|
|
size_t rsp_payload_buf_size,
|
|
|
|
|
size_t *rsp_payload_len);
|
2026-04-11 18:21:18 +08:00
|
|
|
|
2026-04-15 10:23:12 +08:00
|
|
|
void protocol_module_reset_transport_state(enum proto_transport transport);
|
2026-04-11 18:21:18 +08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* BLINKY_PROTOCOL_MODULE_H_ */
|