1/* 2* Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. 3* Licensed under the Apache License, Version 2.0 (the "License"); 4* you may not use this file except in compliance with the License. 5* You may obtain a copy of the License at 6* 7* http://www.apache.org/licenses/LICENSE-2.0 8* 9* Unless required by applicable law or agreed to in writing, software 10* distributed under the License is distributed on an "AS IS" BASIS, 11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12* See the License for the specific language governing permissions and 13* limitations under the License. 14*/ 15 16import { FileTemp } from "../../gen/datatype"; 17 18export let peripheralDumpH: FileTemp = { 19 name: 'hello_dump.h', 20 content: ` 21 /* 22 * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. 23 * Licensed under the Apache License, Version 2.0 (the "License"); 24 * you may not use this file except in compliance with the License. 25 * You may obtain a copy of the License at 26 * 27 * http://www.apache.org/licenses/LICENSE-2.0 28 * 29 * Unless required by applicable law or agreed to in writing, software 30 * distributed under the License is distributed on an "AS IS" BASIS, 31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 32 * See the License for the specific language governing permissions and 33 * limitations under the License. 34 */ 35 36#ifndef [driverUpperName]_DUMP_H 37#define [driverUpperName]_DUMP_H 38 39#include <securec.h> 40#include <stdio.h> 41#include "hdf_sbuf.h" 42 43#ifdef __cplusplus 44#if __cplusplus 45extern "C" { 46#endif 47#endif /* __cplusplus */ 48 49int32_t Get[marcoName]Dump(struct HdfSBuf *data, struct HdfSBuf *reply); 50 51#ifdef __cplusplus 52#if __cplusplus 53} 54#endif 55#endif /* __cplusplus */ 56 57#endif /* HDI_[driverUpperName]_DUMP_H */ 58 ` 59}