📄 cpci.hpp
字号:
// Functions to access PCI Bus
#ifndef CPCI_H_
#define CPCI_H_
#include <windows.h>
// Auxiliary class CPCI
class CPCI {
private:
ULONG Bus;
ULONG Device;
ULONG Function;
public:
// Default constructor
CPCI();
// To find a Device
bool FindDevice(ULONG VendorID,ULONG DeviceID);
// Config Space access
bool ReadConfigDWORD(ULONG Reg,DWORD& Val);
bool WriteConfigDWORD(ULONG Reg,DWORD Val);
bool ReadConfigWORD(ULONG Reg,WORD& Val);
bool WriteConfigWORD(ULONG Reg,WORD Val);
bool ReadConfigBYTE(ULONG Reg,BYTE& Val);
bool WriteConfigBYTE(ULONG Reg,BYTE Val);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -