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

📄 gpiodriver.h

📁 一个基于windows mobile 的GPS 接受IC 驱动程序。
💻 H
字号:
#ifndef GPIO_DRIVER_H__          // {
#define GPIO_DRIVER_H__

#include "xllp_ssp.h"
#include "bulverde_gpio.h"

#include "oalintr.h"

typedef struct
{
	volatile XLLP_GPIO_T*   v_pGPIORegs;
    BOOL   mbSignaledPower;
    BOOL   mbClosed;
	DWORD  mFlags;
    BOOL   mbDebug;

    void ctor(DWORD dwContext)
    {
		mFlags = dwContext;
        if (mFlags & 1) mbDebug    = true;
    };

} GPIO_DEVICE_CONTEXT;

//-----------------------------------------------------------------------------
//
//                  getGpioDeviceContext()
//
//  Convert a hDeviceContext into a GPIO device driver structure pointer.
//
//-----------------------------------------------------------------------------

inline GPIO_DEVICE_CONTEXT* getGpioDeviceContext(DWORD hDeviceContext)
{
    return reinterpret_cast<GPIO_DEVICE_CONTEXT*> (hDeviceContext);
}

#endif // GPIO_DRIVER_H__   }

⌨️ 快捷键说明

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