25 lines
507 B
C++
25 lines
507 B
C++
//
|
||
// 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;
|
||
};
|
||
|
||
|
||
#endif //RTTHREAD_HEAD_SERVICE_IMPL_H
|