1
0
mirror of https://gitee.com/HEYAHONG/Programer_discarded.git synced 2025-05-15 03:36:54 +08:00
2019-11-20 16:29:36 +08:00

34 lines
634 B
C
Raw Permalink 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.

#ifndef PLUGIN_H_INCLUDED
#define PLUGIN_H_INCLUDED
#include "stdint.h"
//获取插件类型
/*
返回值:
0=失败
大于0表示插件类型
*/
typedef unsigned int __cdecl (*get_plugin_type_t)();
unsigned int __cdecl get_plugin_type();
//处理hex函数
/*
返回值:
小于等于0表示失败大于零表示成功修改的内容字节数
*/
typedef int __cdecl (*process_hex_t)(uint8_t *hex);
int __cdecl process_hex(uint8_t *hex);
//烧录插件
/*
小于等于0表示失败大于零表示成功写入的字节数
*/
typedef int __cdecl (*process_program_t)(const uint8_t *hex);
int __cdecl process_program(const uint8_t *hex);
#endif // PLUGIN_H_INCLUDED