⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simce.h

📁 freescale i.mx31 BSP CE5.0全部源码
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//

//------------------------------------------------------------------------------
//
//  Copyright (C) 2004, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//
//  Header:  simce.h
//
//------------------------------------------------------------------------------

#ifndef __SIMCE_H__ 
#define __SIMCE_H__


//------------------------------------------------------------------------------
// Defines

//Vendor information
#define SIM_VENDOR_NAME            "Freescale"
#define SIM_PRODUCT_NAME           "Sim"

#define SIM_REG_PATH            "Drivers\\BuiltIn\\SIM"

#define POLLING_PERIOD                      500 // 500 ms

#define SIM_REG_IOBASE_VAL_NAME     TEXT("IOBase")
#define SIM_REG_ALTIOBASE_VAL_NAME      TEXT("AlternateIOBase")
#define SIM_REG_INDEX_VAL_NAME      TEXT("Index")

#define EnterDevice(pSCE) InterlockedIncrement(&(pSCE)->ReaderExtension->d_RefCount)
#define LeaveDevice(pSCE) InterlockedDecrement(&(pSCE)->ReaderExtension->d_RefCount)

//------------------------------------------------------------------------------
// Types

//Values for READER_EXTENSION.d_uReaderState
typedef enum _READER_STATE {
    STATE_INITING = 1,
    STATE_CLOSED,
    STATE_OPENED,
    STATE_DEAD,
    STATE_REMOVED
} READER_STATE;


//------------------------------------------------------------------------------
// Functions


#endif  // __SIMCE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -