📄 gpiodriver.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 + -