1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
//*****************************************************************************
//
// lmdfuwrap.h : A thin wrapper over the lmdfu.dll library allowing it to be
// loaded dynamically rather than statically linking to its .lib
// file.
//
// Copyright (c) 2009-2017 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 2.1.4.178 of the Tiva Firmware Development Package.
//
//*****************************************************************************
#ifndef __LMDFUWRAP_H__
#define __LMDFUWRAP_H__
//*****************************************************************************
//
// Wrapper function prototypes.
//
//*****************************************************************************
tLMDFUErr __stdcall _LMDFUInit(void);
tLMDFUErr __stdcall _LMDFUDeviceOpen(int iDeviceIndex,
tLMDFUDeviceInfo *psDevInfo,
tLMDFUHandle *phHandle);
tLMDFUErr __stdcall _LMDFUDeviceClose(tLMDFUHandle hHandle, bool bReset);
tLMDFUErr __stdcall _LMDFUDeviceStringGet(tLMDFUHandle hHandle,
unsigned char ucStringIndex,
unsigned short usLanguageID,
char *pcString,
unsigned short *pusStringLen);
tLMDFUErr __stdcall _LMDFUDeviceASCIIStringGet(tLMDFUHandle hHandle,
unsigned char ucStringIndex,
char *pcString,
unsigned short *pusStringLen);
tLMDFUErr __stdcall _LMDFUParamsGet(tLMDFUHandle hHandle,
tLMDFUParams *psParams);
tLMDFUErr __stdcall _LMDFUIsValidImage(tLMDFUHandle hHandle,
unsigned char *pcDFUImage,
unsigned long ulImageLen,
bool *pbTivaFormat);
tLMDFUErr __stdcall _LMDFUDownload(tLMDFUHandle hHandle,
unsigned char *pcDFUImage,
unsigned long ulImageLen, bool bVerify,
bool bIgnoreIDs, HWND hwndNotify);
tLMDFUErr __stdcall _LMDFUDownloadBin(tLMDFUHandle hHandle,
unsigned char *pcBinaryImage,
unsigned long ulImageLen,
unsigned long ulStartAddr,
bool bVerify, HWND hwndNotify);
tLMDFUErr __stdcall _LMDFUErase(tLMDFUHandle hHandle, unsigned long ulStartAddr,
unsigned long ulEraseLen, bool bVerify,
HWND hwndNotify);
tLMDFUErr __stdcall _LMDFUBlankCheck(tLMDFUHandle hHandle,
unsigned long ulStartAddr,
unsigned long ulLen);
tLMDFUErr __stdcall _LMDFUUpload(tLMDFUHandle hHandle, unsigned char *pcBuffer,
unsigned long ulStartAddr,
unsigned long ulImageLen, bool bRaw,
HWND hwndNotify);
tLMDFUErr __stdcall _LMDFUStatusGet(tLMDFUHandle hHandle, tDFUStatus *pStatus);
tLMDFUErr __stdcall _LMDFUModeSwitch(tLMDFUHandle hHandle);
char * __stdcall _LMDFUErrorStringGet(tLMDFUErr eError);
#endif
|