unsigned int HAL_TouchscreenType(void)
| Entry | |
|---|---|
| - |
| Exit | |
|---|---|
| Bits 0-7 | Touchscreen type |
| 0 => none | |
| 1 => resistive | |
| Bit 8 | Interrupt operation supported |
| Bit 9 | Calibration not required |
| Bits 10-15 | Reserved |
| Bits 16-21 | Bits of precision available |
| Bits 22-31 | Reserved |
This is an internal call for OS use only and should not be used by user code.
Returns a flags word indicating the type of touchscreen.
“Calibration not required” indicates that the raw values returned map linearly onto the screen display area to a usable accuracy as follows:
X,Y (00000000,00000000) = bottom left of display area X,Y (FFFFFFFF,FFFFFFFF) = top right of display area Pres 00000000-1FFFFFFF = no touch Pres 20000000-3FFFFFFF = light touch Pres 3FFFFFFF-7FFFFFFF = touch Pres 80000000-FFFFFFFF = firm touch