2025-12-24 18:28:20 +08:00
|
|
|
|
//
|
|
|
|
|
|
// Created by Administrator on 2025/12/24.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef RTTHREAD_HEAD_SERVICE_IMPL_H
|
|
|
|
|
|
#define RTTHREAD_HEAD_SERVICE_IMPL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
#include "erpc/proto/generated/head_service_interface.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class HeadServiceImpl : public erpcShim::demo_interface
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
HeadServiceImpl() = default;
|
|
|
|
|
|
virtual ~HeadServiceImpl() = default;
|
|
|
|
|
|
|
|
|
|
|
|
// 实现你 .erpc 里定义的方法(这里只举例 add)
|
|
|
|
|
|
int32_t add(int32_t a, int32_t b) override;
|
2026-01-07 11:41:07 +08:00
|
|
|
|
int64_t sum_i32(const list_int32_1_t* arr) override;
|
2025-12-24 18:28:20 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //RTTHREAD_HEAD_SERVICE_IMPL_H
|