It is a best practice to allow calibration updates via the Registry (PnP keys) rather than forcing a firmware flash. You can retrieve OEM-defined calibration data during EvtDevicePrepareHardware .
#include <wdf.h>
: Calibration data is typically stored in the registry at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH\CalibrationData . If you need to migrate settings across OS versions, you can back up and import this key. 3. Best Practices for High Accuracy kmdf hid minidriver for touch i2c device calibration best
// Pseudocode inside DPC PTOUCH_REPORT rawReport = (PTOUCH_REPORT)readBuffer; rawReport->X = ApplyCalibrationX(rawReport->X, rawReport->Y); rawReport->Y = ApplyCalibrationY(rawReport->X, rawReport->Y); It is a best practice to allow calibration