cmvr_head/applications/erpc/service/include/head_service_impl.h

26 lines
564 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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;
int64_t sum_i32(const list_int32_1_t* arr) override;
};
#endif //RTTHREAD_HEAD_SERVICE_IMPL_H