Difference between revisions of "Unit FT5x06Touch"
From Ultibo.org
Line 26: | Line 26: | ||
---- | ---- | ||
− | '' | + | |
+ | '''FT5x06 registers''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PFT5X06Registers = ^TFT5X06Registers;</code> | ||
+ | |||
+ | <code>TFT5X06Registers = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Threshold:Byte;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>ReportRate:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Gain:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Offset:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>OffsetX:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>OffsetY:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NumX:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NumY:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''FT5x06 parameters''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PFT5X06Parameters = ^TFT5X06Parameters;</code> | ||
+ | |||
+ | <code>TFT5X06Parameters = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>Threshold:Byte;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>ReportRate:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Gain:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>Offset:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>OffsetX:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>OffsetY:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NumX:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>NumY:Byte;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | |||
+ | '''FT5x06 touch''' | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
+ | <code>PFT5X06Touch = ^TFT5X06Touch;</code> | ||
+ | |||
+ | <code>TFT5X06Touch = record</code> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | |colspan="2"|''Touch Properties'' | ||
+ | |- | ||
+ | | <code>Touch:TTouchDevice;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"|''I2C Properties'' | ||
+ | |- | ||
+ | | <code>I2C:PI2CDevice;</code> | ||
+ | | The I2C device this device is connected to | ||
+ | |- | ||
+ | | <code>Address:Word;</code> | ||
+ | | The I2C address of the device | ||
+ | |- | ||
+ | |colspan="2"|''General Properties'' | ||
+ | |- | ||
+ | | <code>IRQ:TGPIOInfo;</code> | ||
+ | | The GPIO information for the IRQ line (Optional) | ||
+ | |- | ||
+ | | <code>RST:TGPIOInfo;</code> | ||
+ | | The GPIO information for the Reset line (Optional) | ||
+ | |- | ||
+ | | <code>Timer:TTimerHandle;</code> | ||
+ | | Handle for touch release timer | ||
+ | |- | ||
+ | | <code>MaxX:Word;</code> | ||
+ | | Maximum X value from current configuration | ||
+ | |- | ||
+ | | <code>MaxY:Word;</code> | ||
+ | | Maximum Y value from current configuration | ||
+ | |- | ||
+ | | <code>Width:Word;</code> | ||
+ | | Screen width value supplied during create | ||
+ | |- | ||
+ | | <code>Height:Word;</code> | ||
+ | | Screen height value supplied during create | ||
+ | |- | ||
+ | | <code>MaxPoints:LongWord;</code> | ||
+ | | Maximum touch points for this device | ||
+ | |- | ||
+ | | <code>LastPoints:LongWord;</code> | ||
+ | | Points reported in last input report | ||
+ | |- | ||
+ | |colspan="2"|''FT5x06 Properties'' | ||
+ | |- | ||
+ | | <code>Version:LongWord;</code> | ||
+ | | Version constant for this device (eg FT5X06_EDT_M06) | ||
+ | |- | ||
+ | | <code>ModelName:String;</code> | ||
+ | | Model name string for this device | ||
+ | |- | ||
+ | | <code>FirmwareVersion:String;</code> | ||
+ | | Firmware version string for this device | ||
+ | |- | ||
+ | | <code>Registers:TFT5X06Registers;</code> | ||
+ | | Register addresses for this device | ||
+ | |- | ||
+ | | <code>Parameters:TFT5X06Parameters;</code> | ||
+ | | Configuration parameters for this device | ||
+ | |- | ||
+ | | <code>SwapReportXY:Boolean;</code> | ||
+ | | If True swap the X and Y values in the input report | ||
+ | |- | ||
+ | | <code>InvertReportX:Boolean;</code> | ||
+ | | If True invert the X value in the input report | ||
+ | |- | ||
+ | | <code>InvertReportY:Boolean;</code> | ||
+ | | If True invert the Y value in the input report | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Public variables === | === Public variables === |
Revision as of 01:07, 5 August 2022
Return to Unit Reference
Contents
[hide]Description
EDT FocalTech FT5x06 I2C Touchscreen Driver unit
The EDT FocalTech FT5x06 I2C controllers are a range of capacitive touchscreen controllers that include multipoint touch support and are used by a variety of small LCD displays. The exact features and capability of each device can be found by checking the datasheets which can be obtained online.
This driver is compatible with the following devices:
edt,edt-ft5206 (5 touch points) edt,edt-ft5306 (5 touch points) edt,edt-ft5406 (5 touch points) edt,edt-ft5506 (10 touch points) evervision,ev-ft5726 (10 touch points) focaltech,ft6236 (2 touch points)
Constants
To be documented
Type definitions
FT5x06 registers
FT5x06 parameters
FT5x06 touch
Public variables
To be documented
Function declarations
Initialization functions
FT5x06 functions
[Expand]
function FT5X06TouchCreate(I2C:PI2CDevice; Address:Word; Width,Height:LongWord; IRQ,RST:PGPIOInfo):PTouchDevice;
Description: Create, register and start a new FT5x06 Touch device connected to the specified I2C device
[Expand]
function FT5X06TouchDestroy(Touch:PTouchDevice):LongWord;
Description: Stop, deregister and destroy a FT5x06 Touch device created by this driver
FT5x06 touch functions
[Expand]
function FT5X06TouchStart(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceStart API for FT5x06 Touch device
[Expand]
function FT5X06TouchStop(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceStop API for FT5x06 Touch device
[Expand]
function FT5X06TouchUpdate(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceUpdate API for FT5x06 Touch device
[Expand]
procedure FT5X06TouchTimer(Touch:PFT5X06Touch);
Description: Touch device timer event handler for FT5x06 Touch device
[Expand]
procedure FT5X06TouchCallback(Touch:PFT5X06Touch; Pin,Trigger:LongWord);
Description: Touch device event callback (Interrupt) handler for FT5x06 Touch device
Return to Unit Reference