Import der DLL in Visual Basic
VB Interface

resNone, noProg, progFound, MemError, progBusy, progDefect, progIdle, progProtected, eraChip, eraEEp, eraFlash, prgEEp, prgFlash, verifyEEp, verifyFlash, errPwrDown, errSignature, errProtected, errNotEmpty, errVerify, progDone, dwnLoading, dwnLoadErrP, dwnLoadErrE, dwnLoadErrF, dwnLoadErr, invFile, invFName, FileExist, notFound, invPassword, limitExc, errProgType, resOk, progNoJTAG, progNoSupply, errPwrSupply, errParm, MMCprotected, MMCnoMedia

Public Const resNone = 0
Public Const noProg = 1
Public Const progFound = 2
Public Const MemError = 3
Public Const progBusy = 4
Public Const progIdle = 5
Public Const progProtected = 6
Public Const eraChip = 7
Public Const eraEEp = 8
Public Const eraFlash = 9
Public Const prgEEp = 10
Public Const prgFlash = 11
Public Const verifyEEp = 12
Public Const verifyFlash = 13
Public Const errPwrDown = 14
Public Const errSignature = 15
Public Const errProtected = 16
Public Const errNotEmpty = 17
Public Const errVerify = 18
Public Const progDone = 19
Public Const dwnLoading = 20
Public Const dwnLoadErrP = 21
Public Const dwnLoadErrE = 22
Public Const dwnLoadErrF = 23
Public Const dwnLoadErr = 24
Public Const invFile = 25
Public Const invFName = 26
Public Const FileExist = 27
Public Const notFound = 28
Public Const invPassword = 29
Public Const limitExc = 30
Public Const errProgType = 31
Public Const resOk = 32
Public Const progNoJTAG = 33
Public Const progNoSupply = 34
Public Const errPwrSupply = 35
Public Const errParm = 36
Public Const MMCprotected = 37
Public Const MMCnoMedia = 38
 
Public Declare Sub GetProgIDs Lib "UPP_DLL.dll" (ByRef res As Integer, ByVal strRes As String)

Public Declare Sub InitChannel Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub GetProgStatus Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub ClosePort Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DeleteAfile Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal FileName As String, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub GetFileNames Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub CheckProgrammer Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub CheckAfile Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal FileName As String, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub OpenAfile Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal FileName As String, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub GetProjParams Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal FileName As String, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub GetFileState Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, 
ByVal strRes As String)

Public Declare Sub CloseAfile Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, 
ByVal strRes As String)

Public Declare Sub GetTargVolt Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef Volt As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub DownloadFile Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal FileName As String, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub AbortAl l Lib "UPP_DLL.dll" ()

Public Declare Sub ProgDevice Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub EraseDevice Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

Public Declare Sub ProgFlash Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub ProgEEprom Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub ProgFuses Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub ProgLockBits Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String) 

Public Declare Sub VerifyFlashOnly Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String) 

Public Declare Sub CheckDevice Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub ReadBackChipE Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal source As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub ReadBackChipF Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal source As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownProgBlockF Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownProgBlockE Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownOverBlockF Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownOverBlockE Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownFileBlockF Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub DownFileBlockE Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal dest As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub UpFileBlockF Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal source As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)

Public Declare Sub UpFileBlockE Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByVal source As Integer, ByVal count As Integer, ByRef  res As Integer, ByVal strRes As String)





 
JTAG Boundary Scan

Private Declare Sub JTAGBoundaryOpen Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal CpuID As Integer, ByVal BoundaryLen As Integer, ByVal SupplyVolt As Integer, ByVal SupplyCurr As Integer, ByRef res As Integer, ByVal strRes As String)

Private Declare Sub JTAGchainWrite Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByRef res As Integer, ByVal strRes As String)

Private Declare Sub JTAGchainRead Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByVal Block As Pointer, ByRef res As Integer, ByVal strRes As String)

Private Declare Sub JTAGBoundaryClose Lib "UPP_DLL.dll" (ByVal Channel As Integer, ByRef res As Integer, ByVal strRes As String)

