|
1 | 1 | // Copyright (C) Microsoft Corporation, All Rights Reserved. |
| 2 | +// Copyright (C) Framework Computer Inc, All Rights Reserved. |
2 | 3 | // |
3 | 4 | // Abstract: |
4 | 5 | // |
|
13 | 14 |
|
14 | 15 | #include "AccelerometerClient.tmh" |
15 | 16 |
|
16 | | -#define SENSORV2_POOL_TAG_ACCELEROMETER '2CaL' |
| 17 | +#define FWK_SENSORS_POOL_TAG_ACCELEROMETER 'ccAF' |
17 | 18 |
|
18 | 19 | #define AccelerometerDevice_Default_MinDataInterval (4) |
19 | 20 | #define AccelerometerDevice_Default_Axis_Threshold (1.0f) |
20 | 21 | #define AccelerometerDevice_Axis_Resolution (4.0f / 65536.0f) // in delta g |
21 | 22 | #define AccelerometerDevice_Axis_Minimum (-2.0f) // in g |
22 | 23 | #define AccelerometerDevice_Axis_Maximum (2.0f) // in g |
23 | 24 |
|
24 | | -// TODO: New GUID for this? |
25 | 25 | // Accelerometer Unique ID |
26 | | -// {2BAAA1A7-6795-42A0-B830-82526CFD28D1} |
| 26 | +// {A931067B-D450-42A4-8B20-2647D4CA9D2D} |
27 | 27 | DEFINE_GUID(GUID_AccelerometerDevice_UniqueID, |
28 | | - 0x2baaa1a7, 0x6795, 0x42a0, 0xb8, 0x30, 0x82, 0x52, 0x6c, 0xfd, 0x28, 0xd1); |
| 28 | + 0xa931067b, 0xd450, 0x42a4, 0x8b, 0x20, 0x26, 0x47, 0xd4, 0xca, 0x9d, 0x2d); |
29 | 29 |
|
30 | 30 | // Sensor data |
31 | 31 | typedef enum |
@@ -111,7 +111,7 @@ AccelerometerDevice::Initialize( |
111 | 111 | MemoryAttributes.ParentObject = SensorInstance; |
112 | 112 | Status = WdfMemoryCreate(&MemoryAttributes, |
113 | 113 | PagedPool, |
114 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 114 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
115 | 115 | Size, |
116 | 116 | &MemoryHandle, |
117 | 117 | (PVOID*)&m_pEnumerationProperties); |
@@ -163,7 +163,7 @@ AccelerometerDevice::Initialize( |
163 | 163 | MemoryAttributes.ParentObject = SensorInstance; |
164 | 164 | Status = WdfMemoryCreate(&MemoryAttributes, |
165 | 165 | PagedPool, |
166 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 166 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
167 | 167 | Size, |
168 | 168 | &MemoryHandle, |
169 | 169 | (PVOID*)&m_pSupportedDataFields); |
@@ -197,7 +197,7 @@ AccelerometerDevice::Initialize( |
197 | 197 | MemoryAttributes.ParentObject = SensorInstance; |
198 | 198 | Status = WdfMemoryCreate(&MemoryAttributes, |
199 | 199 | PagedPool, |
200 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 200 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
201 | 201 | Size, |
202 | 202 | &MemoryHandle, |
203 | 203 | (PVOID*)&m_pData); |
@@ -252,7 +252,7 @@ AccelerometerDevice::Initialize( |
252 | 252 | MemoryAttributes.ParentObject = SensorInstance; |
253 | 253 | Status = WdfMemoryCreate(&MemoryAttributes, |
254 | 254 | PagedPool, |
255 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 255 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
256 | 256 | Size, |
257 | 257 | &MemoryHandle, |
258 | 258 | (PVOID*)&m_pProperties); |
@@ -295,7 +295,7 @@ AccelerometerDevice::Initialize( |
295 | 295 | MemoryAttributes.ParentObject = SensorInstance; |
296 | 296 | Status = WdfMemoryCreate(&MemoryAttributes, |
297 | 297 | PagedPool, |
298 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 298 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
299 | 299 | Size, |
300 | 300 | &MemoryHandle, |
301 | 301 | (PVOID*)&m_pDataFieldProperties); |
@@ -335,7 +335,7 @@ AccelerometerDevice::Initialize( |
335 | 335 | MemoryAttributes.ParentObject = SensorInstance; |
336 | 336 | Status = WdfMemoryCreate(&MemoryAttributes, |
337 | 337 | PagedPool, |
338 | | - SENSORV2_POOL_TAG_ACCELEROMETER, |
| 338 | + FWK_SENSORS_POOL_TAG_ACCELEROMETER, |
339 | 339 | Size, |
340 | 340 | &MemoryHandle, |
341 | 341 | (PVOID*)&m_pThresholds); |
|
0 commit comments