Skip to content

Commit

Permalink
T2: extended the sample region for #242
Browse files Browse the repository at this point in the history
  • Loading branch information
Bingxing Wang committed Feb 26, 2020
1 parent d7f4930 commit d7a3992
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/AmtPtpDeviceUsbKm/include/AppleDefinition.h
Expand Up @@ -156,8 +156,8 @@ static const struct BCM5974_CONFIG Bcm5974ConfigTable[] = {
{ SN_PRESSURE, 0, 300 },
{ SN_WIDTH, 0, 2048 },
// Oversampled - this is fine for a trackpad
{ SN_COORD, -7600, 8200 },
{ SN_COORD, -200, 9500 },
{ SN_COORD, -10000, 10000 },
{ SN_COORD, -2000, 10000 },
{ SN_ORIENT, -MAX_FINGER_ORIENTATION, MAX_FINGER_ORIENTATION }
},
/* 13 inch */
Expand Down Expand Up @@ -192,8 +192,8 @@ static const struct BCM5974_CONFIG Bcm5974ConfigTable[] = {
{ SN_PRESSURE, 0, 300 },
{ SN_WIDTH, 0, 2048 },
// Oversampled - this is fine for a trackpad
{ SN_COORD, -7600, 8200 },
{ SN_COORD, -200, 9500 },
{ SN_COORD, -10000, 10000 },
{ SN_COORD, -2000, 10000 },
{ SN_ORIENT, -MAX_FINGER_ORIENTATION, MAX_FINGER_ORIENTATION }
},
{
Expand All @@ -204,8 +204,8 @@ static const struct BCM5974_CONFIG Bcm5974ConfigTable[] = {
{ SN_PRESSURE, 0, 300 },
{ SN_WIDTH, 0, 2048 },
// Oversampled - this is fine for a trackpad
{ SN_COORD, -7600, 8200 },
{ SN_COORD, -200, 9500 },
{ SN_COORD, -10000, 10000 },
{ SN_COORD, -2000, 10000 },
{ SN_ORIENT, -MAX_FINGER_ORIENTATION, MAX_FINGER_ORIENTATION }
},
{
Expand Down
8 changes: 4 additions & 4 deletions src/AmtPtpDeviceUsbKm/include/metadata/WellspringT2.h
Expand Up @@ -25,7 +25,7 @@
/* Begin of 4 bytes */ \
/* Size is hard-coded at this moment */ \
USAGE_PAGE, 0x01, /* Usage Page: Generic Desktop */ \
LOGICAL_MAXIMUM_2, 0x80, 0x3e, /* Logical Maximum: 16000 (See defintion) */ \
LOGICAL_MAXIMUM_2, 0x20, 0x4e, /* Logical Maximum: 20000 (See defintion) */ \
REPORT_SIZE, 0x10, /* Report Size: 0x10 (2 bytes) */ \
UNIT_EXPONENT, 0x0e, /* Unit exponent: -2 */ \
UNIT, 0x11, /* Unit: SI Length (cm) */ \
Expand All @@ -34,7 +34,7 @@
REPORT_COUNT, 0x01, /* Report count: 1 */ \
INPUT, 0x02, /* Input: (Data, Var, Abs) */ \
PHYSICAL_MAXIMUM_2, 0x52, 0x03, /* Physical Maximum: 850 (See Apple Spec) */ \
LOGICAL_MAXIMUM_2, 0x10, 0x27, /* Logical Maximum: 10000 (See definition) */ \
LOGICAL_MAXIMUM_2, 0xe0, 0x2e, /* Logical Maximum: 12000 (See definition) */ \
USAGE, 0x31, /* Usage: Y */ \
INPUT, 0x02, /* Input: (Data, Var, Abs) */ \
PHYSICAL_MAXIMUM, 0x00, /* Physical Maximum: 0 */ \
Expand Down Expand Up @@ -66,7 +66,7 @@
/* Begin of 4 bytes */ \
/* Size is hard-coded at this moment */ \
USAGE_PAGE, 0x01, /* Usage Page: Generic Desktop */ \
LOGICAL_MAXIMUM_2, 0x80, 0x3e, /* Logical Maximum: 16000 (See defintion) */ \
LOGICAL_MAXIMUM_2, 0x20, 0x4e, /* Logical Maximum: 20000 (See defintion) */ \
REPORT_SIZE, 0x10, /* Report Size: 0x10 (2 bytes) */ \
UNIT_EXPONENT, 0x0e, /* Unit exponent: -2 */ \
UNIT, 0x11, /* Unit: SI Length (cm) */ \
Expand All @@ -75,7 +75,7 @@
REPORT_COUNT, 0x01, /* Report count: 1 */ \
INPUT, 0x02, /* Input: (Data, Var, Abs) */ \
PHYSICAL_MAXIMUM_2, 0x52, 0x03, /* Physical Maximum: 750 (See Apple Spec) */ \
LOGICAL_MAXIMUM_2, 0x10, 0x27, /* Logical Maximum: 10000 (See definition) */ \
LOGICAL_MAXIMUM_2, 0xe0, 0x2e, /* Logical Maximum: 12000 (See definition) */ \
USAGE, 0x31, /* Usage: Y */ \
INPUT, 0x02, /* Input: (Data, Var, Abs) */ \
/* End of 4 bytes */ \
Expand Down

0 comments on commit d7a3992

Please sign in to comment.