gpiodriver.h
来自「一个基于windows mobile 的GPS 接受IC 驱动程序。」· C头文件 代码 · 共 39 行
H
39 行
#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 + =
减小字号Ctrl + -
显示快捷键?