📄 halsimu.h
字号:
#ifndef HALSIMU__H/* ============================================================================ Project Name : jayaCard Module Name : proto/hal/simu/halsimu.h Version : $Id: halsimu.h,v 1.21 2004/01/11 09:56:33 dgil Exp $ Description: Hardware Abstract Layer - SIMULATOR. The Original Code is jayaCard code. The Initial Developer of the Original Code is Gilles Dumortier. Portions created by the Initial Developer are Copyright (C) 2002-2004 the Initial Developer. All Rights Reserved. Contributor(s): This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see http://www.gnu.org/licenses/gpl.html History Rev Description 020203 dgil wrote it from scratch ============================================================================*/#define HALSIMU__H/* ========================================================================= Simulator overview : Local / Global variable ------------------------------------------------ for each variable, we create also a C++ object which manage the allocation of the variable in the simulated memory. Note that the content of the variable is in the C variable BUT the mechanism to check where is the variable placed in memory is done by the C++ object. SIMUMSG ---------------------------------------------------------------- see the hal/simu/DESIGN file EEPROM simulation ------------------------------------------------------ see the hal/simu/FORMAT file ========================================================================= */#include <stdio.h>#include <stdlib.h>/* ========================================================================= EEPROM Simulation ========================================================================= */#include "simueep.h"#include "simuXMLeep.h"/* ========================================================================= socket (reader <-> simulator) and messaging ========================================================================= */#include "socket.h"#include "simumsg.h"extern SOCKET socketCard;#include "simudisp.h"/* ========================================================================= replace exit(acode); with this ========================================================================= */void simu_exit(int acode);/* ========================================================================= Control-C handler ========================================================================= */#ifdef WIN32BOOL WINAPI ControlHandler ( DWORD dwCtrlType );#else#include <signal.h>void sigint_handler(int signum);#endif/* ========================================================================= */#endif/* defined HALSIMU__H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -