USB2XXX 1.2
USB2XXX接口函数说明文档
载入中...
搜索中...
未找到
mlx_programer.h
1
9#ifndef __MLX_PROGRAMER_H_
10#define __MLX_PROGRAMER_H_
11
12#include <stdint.h>
13#ifdef _WIN32
14#include <Windows.h>
15#else
16#include <unistd.h>
17#ifndef WINAPI
18#define WINAPI
19#endif
20#endif
33#define MLX_SUCCESS (0)
34#define MLX_ERR_OPEN_DEV (-1)
35#define MLX_ERR_INIT_DEV (-2)
36#define MLX_ERR_FILE_FORMAT (-3)
37#define MLX_ERR_BEGIN_PROG (-4)
38#define MLX_ERR_CMD_FAIL (-5)
39#define MLX_ERR_WRITE_FLASH (-6)
42#ifdef __cplusplus
43extern "C"
44{
45#endif
56int WINAPI MLX_ProgInit(int DeviceHandle, unsigned char LINChannel,unsigned char BaudRateOfKbps,unsigned char UseFastLIN);
57
68int WINAPI MLX_ProgNVRAM(int DeviceHandle, unsigned char LINChannel, const char* nvramFileName, uint8_t nad);
69
81int WINAPI MLX_ProgFlash(int DeviceHandle, unsigned char LINChannel, const char* LoaderFileName, const char* AppFileName, uint8_t nad);
82
83#ifdef __cplusplus
84}
85#endif
86
89#endif
90
int WINAPI MLX_ProgInit(int DeviceHandle, unsigned char LINChannel, unsigned char BaudRateOfKbps, unsigned char UseFastLIN)
编程初始化,必须调用
int WINAPI MLX_ProgFlash(int DeviceHandle, unsigned char LINChannel, const char *LoaderFileName, const char *AppFileName, uint8_t nad)
编程程序数据到芯片Flash
int WINAPI MLX_ProgNVRAM(int DeviceHandle, unsigned char LINChannel, const char *nvramFileName, uint8_t nad)
编程数据到芯片NVRAM