diff options
| author | David Spruill <[email protected]> | 2026-01-08 17:51:47 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-08 17:51:47 -0500 |
| commit | c5fc3ca1fd0e00a7e085ef48abfeff9c0c39817e (patch) | |
| tree | 0e650a0fee8027816bbea82ca1fd9b8e3e6ee24a /wpd/WpdBasicHardwareDriver/WpdBaseDriver.h | |
| parent | f88e4fbbd4d2671e5cd77e4f60be7a235326797e (diff) | |
| parent | ed3dbe56378117a15105099870f2397671ad99ab (diff) | |
Merge branch 'develop' into user/daspr/kmodsamplefix
Diffstat (limited to 'wpd/WpdBasicHardwareDriver/WpdBaseDriver.h')
| -rw-r--r-- | wpd/WpdBasicHardwareDriver/WpdBaseDriver.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/wpd/WpdBasicHardwareDriver/WpdBaseDriver.h b/wpd/WpdBasicHardwareDriver/WpdBaseDriver.h deleted file mode 100644 index 13dd4694..00000000 --- a/wpd/WpdBasicHardwareDriver/WpdBaseDriver.h +++ /dev/null @@ -1,69 +0,0 @@ -#pragma once - -typedef struct tagSENSOR_INFO{ - unsigned char deviceID; - unsigned short dataLength; -} SENSOR_INFO; - -class WpdBaseDriver : - public IUnknown -{ -public: - WpdBaseDriver(); - virtual ~WpdBaseDriver(); - - HRESULT Initialize(_In_ IWDFDevice *pDevice); - void Uninitialize(); - - HRESULT DispatchWpdMessage(_In_ IPortableDeviceValues* pParams, - _In_ IPortableDeviceValues* pResults); - - HRESULT ProcessReadData(_In_reads_(cbData) BYTE* pData, size_t cbData); - - RS232Target* GetRS232Target(); - -public: // IUnknown - ULONG __stdcall AddRef(); - - _At_(this, __drv_freesMem(Mem)) - ULONG __stdcall Release(); - - HRESULT __stdcall QueryInterface(REFIID riid, void** ppv); - -private: - HRESULT OnGetObjectIDsFromPersistentUniqueIDs(_In_ IPortableDeviceValues* pParams, - _In_ IPortableDeviceValues* pResults); - - HRESULT PostSensorReadingEvent(LONGLONG llSensorData, DWORD dwUpdateInterval); - -public: - - enum SensorType{ - UNKNOWN, // Unknown - COMPASS, // Compass - SENSIRON, // Temp/humidity sensor - FLEX, // Flexiforce sensor - PING, // Ultrasonic ping - PIR, // Passive infrared - MEMSIC, // 2-axis accelerometer - QTI, // Light sensor - PIEZO, // Vibration Sensor - HITACHI, // 3-axis accelerometer - }; - - SensorType m_SensorType; // enum value specifying sensor type - -private: - WpdObjectEnumerator m_ObjectEnum; - WpdObjectProperties m_ObjectProperties; - WpdCapabilities m_Capabilities; - - ULONG m_cRef; - RS232Connection m_Connection; - RS232Target m_Target; - - CComPtr<IWDFDevice> m_pWDFDevice; - CComPtr<IWpdSerializer> m_pWpdSerializer; - CComPtr<IPortableDeviceValues> m_pEventParams; -}; - |
