Browse Source

sync source

master
Ian Ilkyun Oh 2 months ago
parent
commit
b5cc0586e6
  1. 1
      TestLibDlg/IncSourceTestDlg/IncSourceTestDlg.vcxproj
  2. 3
      TestLibDlg/IncSourceTestDlg/IncSourceTestDlg.vcxproj.filters
  3. 258
      TestLibDlg/IncSourceTestDlg/IncSourceTestDlgDlg.cpp
  4. 2
      TestLibDlg/IncSourceTestDlg/IncSourceTestDlgDlg.h
  5. 226
      TestLibDlg/TestLibDlg/TestLibDlg_h.h
  6. 84
      TestLibDlg/TestLibDlg/TestLibDlg_i.c
  7. 3592
      test data/XCPA2L.a2l
  8. 22922
      test data/e_sp3c_pe_atcu_asr_swp_XCP_Fill.hex

1
TestLibDlg/IncSourceTestDlg/IncSourceTestDlg.vcxproj

@ -199,6 +199,7 @@
</ResourceCompile> </ResourceCompile>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="common_def.h" />
<ClInclude Include="DlgProxy.h" /> <ClInclude Include="DlgProxy.h" />
<ClInclude Include="dwarf\data.hh" /> <ClInclude Include="dwarf\data.hh" />
<ClInclude Include="dwarf\internal.hh" /> <ClInclude Include="dwarf\internal.hh" />

3
TestLibDlg/IncSourceTestDlg/IncSourceTestDlg.vcxproj.filters

@ -132,6 +132,9 @@
<ClInclude Include="elf\to_hex.hh"> <ClInclude Include="elf\to_hex.hh">
<Filter>헤더 파일</Filter> <Filter>헤더 파일</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="common_def.h">
<Filter>헤더 파일</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="IncSourceTestDlg.cpp"> <ClCompile Include="IncSourceTestDlg.cpp">

258
TestLibDlg/IncSourceTestDlg/IncSourceTestDlgDlg.cpp

@ -361,12 +361,268 @@ void CIncSourceTestDlgDlg::loadA2lFile(std::string strFilePath)
std::cout << block.AsString() << std::endl; std::cout << block.AsString() << std::endl;
AddLogString(string_format("IF_DATA : %s", block.Protocol().c_str())); AddLogString(string_format("IF_DATA : %s", block.Protocol().c_str()));
AddLogString(string_format("block.ItemList().size() : %d", block.ItemList().size())); AddLogString(string_format("block.ItemList().size() : %d", block.ItemList().size()));
for (int i = 0; i < block.ItemList().size(); i++) { for (int i = 0; i < block.ItemList().size(); i++) {
AddLogString(string_format("%d block.ItemList() : %s", i, block.ItemList()[i].BlockName.c_str())); AddLogString(string_format("%d block.ItemList() : %s", i, block.ItemList()[i].BlockName.c_str()));
AddLogString(string_format("block.ItemList()[i].ItemList.size() : %d", block.ItemList()[i].ItemList.size())); AddLogString(string_format("block.ItemList()[i].ItemList.size() : %d", block.ItemList()[i].ItemList.size()));
// 1. protocol layer
if (block.ItemList()[i].BlockName == "PROTOCOL_LAYER") {
for (int j = 0; j < block.ItemList()[i].ItemList.size(); j++) {
TRACE("[%d] %s\n", j, block.ItemList()[i].ItemList[j].Value.c_str());
switch (j) {
case 0: // version
m_stA2LProtocolLayer.m_nXCPProtocolVersion = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 1: // t1
m_stA2LProtocolLayer.m_nTimeout_T1 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 2: // t2
m_stA2LProtocolLayer.m_nTimeout_T2 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 3: // t3
m_stA2LProtocolLayer.m_nTimeout_T3 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 4: // t4
m_stA2LProtocolLayer.m_nTimeout_T4 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 5: // t5
m_stA2LProtocolLayer.m_nTimeout_T5 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 6: // t6
m_stA2LProtocolLayer.m_nTimeout_T6 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 7: // t7
m_stA2LProtocolLayer.m_nTimeout_T7 = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 8: // max cto
m_stA2LProtocolLayer.m_cMAX_CTO = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
case 9: // max dto
m_stA2LProtocolLayer.m_nMAX_DTO = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
break;
default: // optional command
if (block.ItemList()[i].ItemList[j].Value == "BYTE_ORDER_MSB_LAST") {
m_stA2LProtocolLayer.m_nByteOrderMSBType = A2L_BYTE_ORDER_MSB_TYPE::BYTE_ORDER_MSB_LAST;
}
else if (block.ItemList()[i].ItemList[j].Value == "BYTE_ORDER_MSB_FIRST") {
m_stA2LProtocolLayer.m_nByteOrderMSBType = A2L_BYTE_ORDER_MSB_TYPE::BYTE_ORDER_MSB_FIRST;
}
else if (block.ItemList()[i].ItemList[j].Value == "ADDRESS_GRANULARITY_BYTE") {
m_stA2LProtocolLayer.m_nAddressGranularityType = A2L_ADDRESS_GRANULARITY_TYPE::ADDRESS_GRANULARITY_BYTE;
}
else if (block.ItemList()[i].ItemList[j].Value == "ADDRESS_GRANULARITY_WORD") {
m_stA2LProtocolLayer.m_nAddressGranularityType = A2L_ADDRESS_GRANULARITY_TYPE::ADDRESS_GRANULARITY_WORD;
}
else if (block.ItemList()[i].ItemList[j].Value == "ADDRESS_GRANULARITY_DWORD") {
m_stA2LProtocolLayer.m_nAddressGranularityType = A2L_ADDRESS_GRANULARITY_TYPE::ADDRESS_GRANULARITY_DWORD;
}
else if (block.ItemList()[i].ItemList[j].Value == "OPTIONAL_CMD") {
j++;
TRACE("[%d] %s\n", j, block.ItemList()[i].ItemList[j].Value.c_str());
if (block.ItemList()[i].ItemList[j].Value == "GET_COMM_MODE_INFO") { // 0xFB
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_COMM_MODE_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_ID") { // 0xFA
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_ID);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_REQUEST") { // 0xF9
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_REQUEST);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_SEED") { // 0xF8
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_SEED);
}
else if (block.ItemList()[i].ItemList[j].Value == "UNLOCK") { // 0xF7
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::UNLOCK);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_MTA") { // 0xF6
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_MTA);
}
else if (block.ItemList()[i].ItemList[j].Value == "UPLOAD") { // 0xF5
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::UPLOAD);
}
else if (block.ItemList()[i].ItemList[j].Value == "SHORT_UPLOAD") { // 0xF4
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SHORT_UPLOAD);
}
else if (block.ItemList()[i].ItemList[j].Value == "BUILD_CHECKSUM") { // 0xF3
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::BUILD_CHECKSUM);
}
else if (block.ItemList()[i].ItemList[j].Value == "TRANSPORT_LAYER_CMD") { // 0xF2
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::TRANSPORT_LAYER_CMD);
}
else if (block.ItemList()[i].ItemList[j].Value == "USER_CMD") { // 0xF1
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::USER_CMD);
}
else if (block.ItemList()[i].ItemList[j].Value == "DOWNLOAD") { // 0xF0
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::DOWNLOAD);
}
else if (block.ItemList()[i].ItemList[j].Value == "DOWNLOAD") { // 0xF0
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::DOWNLOAD);
}
else if (block.ItemList()[i].ItemList[j].Value == "DOWNLOAD_NEXT") { // 0xEF
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::DOWNLOAD_NEXT);
}
else if (block.ItemList()[i].ItemList[j].Value == "DOWNLOAD_MAX") { // 0xEE
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::DOWNLOAD_MAX);
}
else if (block.ItemList()[i].ItemList[j].Value == "SHORT_DOWNLOAD") { // 0xED
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SHORT_DOWNLOAD);
}
else if (block.ItemList()[i].ItemList[j].Value == "MODIFY_BITS") { // 0xEC
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::MODIFY_BITS);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_CAL_PAGE") { // 0xEB
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_CAL_PAGE);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_CAL_PAGE") { // 0xEA
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_CAL_PAGE);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_PAG_PROCESSOR_INFO") { // 0xE9
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_PAG_PROCESSOR_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_SEGMENT_INFO") { // 0xE8
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_SEGMENT_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_PAGE_INFO") { // 0xE7
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_PAGE_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_SEGMENT_MODE") { // 0xE6
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_SEGMENT_MODE);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_SEGMENT_MODE") { // 0xE5
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_SEGMENT_MODE);
}
else if (block.ItemList()[i].ItemList[j].Value == "COPY_CAL_PAGE") { // 0xE4
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::COPY_CAL_PAGE);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_DAQ_PTR") { // 0xE2
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_DAQ_PTR);
}
else if (block.ItemList()[i].ItemList[j].Value == "WRITE_DAQ") { // 0xE1
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::WRITE_DAQ);
}
else if (block.ItemList()[i].ItemList[j].Value == "SET_DAQ_LIST_MODE") { // 0xE0
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_DAQ_LIST_MODE);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_LIST_MODE") { // 0xDF
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_LIST_MODE);
}
else if (block.ItemList()[i].ItemList[j].Value == "START_STOP_DAQ_LIST") { // 0xDE
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::START_STOP_DAQ_LIST);
}
else if (block.ItemList()[i].ItemList[j].Value == "START_STOP_SYNCH") { // 0xDD
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::START_STOP_SYNCH);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_CLOCK") { // 0xDC
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_CLOCK);
}
else if (block.ItemList()[i].ItemList[j].Value == "READ_DAQ") { // 0xDB
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::READ_DAQ);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_PROCESSOR_INFO") { // 0xDA
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_PROCESSOR_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_RESOLUTION_INFO") { // 0xD9
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_RESOLUTION_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_LIST_INFO") { // 0xD8
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_LIST_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_DAQ_EVENT_INFO") { // 0xD7
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_DAQ_EVENT_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "FREE_DAQ") { // 0xD6
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::FREE_DAQ);
}
else if (block.ItemList()[i].ItemList[j].Value == "ALLOC_DAQ") { // 0xD5
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::ALLOC_DAQ);
}
else if (block.ItemList()[i].ItemList[j].Value == "ALLOC_ODT") { // 0xD4
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::ALLOC_ODT);
}
else if (block.ItemList()[i].ItemList[j].Value == "ALLOC_ODT_ENTRY") { // 0xD3
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::ALLOC_ODT_ENTRY);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_START") { // 0xD2
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_START);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_CLEAR") { // 0xD1
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_CLEAR);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM") { // 0xD0
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_RESET") { // 0xCF
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_RESET);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_PGM_PROCESSOR_INFO") { // 0xCE
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_PGM_PROCESSOR_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "GET_SECTOR_INFO") { // 0xCD
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::GET_SECTOR_INFO);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_PREPARE") { // 0xCC
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_PREPARE);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_FORMAT") { // 0xCB
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_FORMAT);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_NEXT") { // 0xCA
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_NEXT);
}
else if (block.ItemList()[i].ItemList[j].Value == "DOWNLOAD_NEXT") { // 0xEF
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::SET_DAQ_LIST_MODE);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_MAX") { // 0xC9
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_MAX);
}
else if (block.ItemList()[i].ItemList[j].Value == "PROGRAM_VERIFY") { // 0xC8
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::PROGRAM_VERIFY);
}
else if (block.ItemList()[i].ItemList[j].Value == "WRITE_DAQ_MULTIPLE") { // 0xC7
m_stA2LProtocolLayer.m_nOptionalCommandList.push_back(A2L_OPTIONAL_COMMAND_TYPE::WRITE_DAQ_MULTIPLE);
}
}
else if (block.ItemList()[i].ItemList[j].Value == "COMMUNICATION_MODE_SUPPORTED") {
j++;
TRACE("[%d] %s\n", j, block.ItemList()[i].ItemList[j].Value.c_str());
if (block.ItemList()[i].ItemList[j].Value == "BLOCK") {
j++;
if (block.ItemList()[i].ItemList[j].Value == "SLAVE") {
j++;
}
if (block.ItemList()[i].ItemList[j].Value == "MASTER") {
j++;
m_stA2LProtocolLayer.m_stCommunicationModeSupported.m_cMaster_MAX_BS = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
j++;
m_stA2LProtocolLayer.m_stCommunicationModeSupported.m_cMaster_MIN_ST = atoi(block.ItemList()[i].ItemList[j].Value.c_str());
}
}
}
else if (block.ItemList()[i].ItemList[j].Value == "SEED_AND_KEY_EXTERNAL_FUNCTION") {
j++;
TRACE("[%d] %s\n", j, block.ItemList()[i].ItemList[j].Value.c_str());
m_stA2LProtocolLayer.m_strSeedAndKeyExternalFunction = block.ItemList()[i].ItemList[j].Value;
}
break;
}
}
}
// 3. DAQ
if (block.ItemList()[i].BlockName == "DAQ") {
}
for (int j = 0; j < block.ItemList()[i].ItemList.size(); j++) { for (int j = 0; j < block.ItemList()[i].ItemList.size(); j++) {
// check digit // check digit
bool bIsDigit = true; bool bIsDigit = true;
@ -398,6 +654,8 @@ void CIncSourceTestDlgDlg::loadA2lFile(std::string strFilePath)
AddLogString(""); AddLogString("");
} }
return;
AddLogString(""); AddLogString("");
const auto& axis_list = module->AxisPtss(); const auto& axis_list = module->AxisPtss();
//EXPECT_GT(axis_list.size(), 1); //EXPECT_GT(axis_list.size(), 1);

2
TestLibDlg/IncSourceTestDlg/IncSourceTestDlgDlg.h

@ -12,6 +12,7 @@
#include "a2l/a2lfile.h" #include "a2l/a2lfile.h"
#include "a2l/a2mlblock.h" #include "a2l/a2mlblock.h"
#include "a2l/ifdatablock.h" #include "a2l/ifdatablock.h"
#include "common_def.h"
using namespace std::filesystem; using namespace std::filesystem;
using namespace std::chrono_literals; using namespace std::chrono_literals;
@ -43,6 +44,7 @@ public:
protected: protected:
CIncSourceTestDlgDlgAutoProxy* m_pAutoProxy; CIncSourceTestDlgDlgAutoProxy* m_pAutoProxy;
HICON m_hIcon; HICON m_hIcon;
A2L_Protocol_Layer m_stA2LProtocolLayer;
BOOL CanExit(); BOOL CanExit();

226
TestLibDlg/TestLibDlg/TestLibDlg_h.h

@ -1,226 +0,0 @@
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0628 */
/* at Tue Jan 19 12:14:07 2038
*/
/* Compiler settings for TestLibDlg.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0628
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif /* __RPCNDR_H_VERSION__ */
#ifndef __TestLibDlg_h_h__
#define __TestLibDlg_h_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#ifndef DECLSPEC_XFGVIRT
#if defined(_CONTROL_FLOW_GUARD_XFG)
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
#else
#define DECLSPEC_XFGVIRT(base, func)
#endif
#endif
/* Forward Declarations */
#ifndef __ITestLibDlg_FWD_DEFINED__
#define __ITestLibDlg_FWD_DEFINED__
typedef interface ITestLibDlg ITestLibDlg;
#endif /* __ITestLibDlg_FWD_DEFINED__ */
#ifndef __TestLibDlg_FWD_DEFINED__
#define __TestLibDlg_FWD_DEFINED__
#ifdef __cplusplus
typedef class TestLibDlg TestLibDlg;
#else
typedef struct TestLibDlg TestLibDlg;
#endif /* __cplusplus */
#endif /* __TestLibDlg_FWD_DEFINED__ */
#ifdef __cplusplus
extern "C"{
#endif
#ifndef __TestLibDlg_LIBRARY_DEFINED__
#define __TestLibDlg_LIBRARY_DEFINED__
/* library TestLibDlg */
/* [version][uuid] */
EXTERN_C const IID LIBID_TestLibDlg;
#ifndef __ITestLibDlg_DISPINTERFACE_DEFINED__
#define __ITestLibDlg_DISPINTERFACE_DEFINED__
/* dispinterface ITestLibDlg */
/* [uuid] */
EXTERN_C const IID DIID_ITestLibDlg;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("3d30aa0d-19ce-4ca6-92b1-70a7403d578c")
ITestLibDlg : public IDispatch
{
};
#else /* C style interface */
typedef struct ITestLibDlgVtbl
{
BEGIN_INTERFACE
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
ITestLibDlg * This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
_COM_Outptr_ void **ppvObject);
DECLSPEC_XFGVIRT(IUnknown, AddRef)
ULONG ( STDMETHODCALLTYPE *AddRef )(
ITestLibDlg * This);
DECLSPEC_XFGVIRT(IUnknown, Release)
ULONG ( STDMETHODCALLTYPE *Release )(
ITestLibDlg * This);
DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount)
HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
ITestLibDlg * This,
/* [out] */ UINT *pctinfo);
DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo)
HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
ITestLibDlg * This,
/* [in] */ UINT iTInfo,
/* [in] */ LCID lcid,
/* [out] */ ITypeInfo **ppTInfo);
DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames)
HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
ITestLibDlg * This,
/* [in] */ REFIID riid,
/* [size_is][in] */ LPOLESTR *rgszNames,
/* [range][in] */ UINT cNames,
/* [in] */ LCID lcid,
/* [size_is][out] */ DISPID *rgDispId);
DECLSPEC_XFGVIRT(IDispatch, Invoke)
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
ITestLibDlg * This,
/* [annotation][in] */
_In_ DISPID dispIdMember,
/* [annotation][in] */
_In_ REFIID riid,
/* [annotation][in] */
_In_ LCID lcid,
/* [annotation][in] */
_In_ WORD wFlags,
/* [annotation][out][in] */
_In_ DISPPARAMS *pDispParams,
/* [annotation][out] */
_Out_opt_ VARIANT *pVarResult,
/* [annotation][out] */
_Out_opt_ EXCEPINFO *pExcepInfo,
/* [annotation][out] */
_Out_opt_ UINT *puArgErr);
END_INTERFACE
} ITestLibDlgVtbl;
interface ITestLibDlg
{
CONST_VTBL struct ITestLibDlgVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define ITestLibDlg_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define ITestLibDlg_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define ITestLibDlg_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define ITestLibDlg_GetTypeInfoCount(This,pctinfo) \
( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) )
#define ITestLibDlg_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) )
#define ITestLibDlg_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) )
#define ITestLibDlg_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __ITestLibDlg_DISPINTERFACE_DEFINED__ */
EXTERN_C const CLSID CLSID_TestLibDlg;
#ifdef __cplusplus
class DECLSPEC_UUID("faa0893c-64ec-4ba5-b1f0-18ed8cb7f106")
TestLibDlg;
#endif
#endif /* __TestLibDlg_LIBRARY_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif

84
TestLibDlg/TestLibDlg/TestLibDlg_i.c

@ -1,84 +0,0 @@
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 8.01.0628 */
/* at Tue Jan 19 12:14:07 2038
*/
/* Compiler settings for TestLibDlg.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.01.0628
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
#ifdef __cplusplus
extern "C"{
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifdef _MIDL_USE_GUIDDEF_
#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
#else // !_MIDL_USE_GUIDDEF_
#ifndef __IID_DEFINED__
#define __IID_DEFINED__
typedef struct _IID
{
unsigned long x;
unsigned short s1;
unsigned short s2;
unsigned char c[8];
} IID;
#endif // __IID_DEFINED__
#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
EXTERN_C __declspec(selectany) const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
#endif // !_MIDL_USE_GUIDDEF_
MIDL_DEFINE_GUID(IID, LIBID_TestLibDlg,0xe6371bfe,0x4bde,0x4d88,0xb4,0x04,0x1d,0x2f,0x22,0x2f,0x1d,0xdf);
MIDL_DEFINE_GUID(IID, DIID_ITestLibDlg,0x3d30aa0d,0x19ce,0x4ca6,0x92,0xb1,0x70,0xa7,0x40,0x3d,0x57,0x8c);
MIDL_DEFINE_GUID(CLSID, CLSID_TestLibDlg,0xfaa0893c,0x64ec,0x4ba5,0xb1,0xf0,0x18,0xed,0x8c,0xb7,0xf1,0x06);
#undef MIDL_DEFINE_GUID
#ifdef __cplusplus
}
#endif

3592
test data/XCPA2L.a2l

File diff suppressed because it is too large

22922
test data/e_sp3c_pe_atcu_asr_swp_XCP_Fill.hex

File diff suppressed because it is too large
Loading…
Cancel
Save