Difference between revisions of "Unit STMPE"
(One intermediate revision by the same user not shown) | |||
Line 1,993: | Line 1,993: | ||
| <code>Touch:TTouchDevice;</code> | | <code>Touch:TTouchDevice;</code> | ||
| | | | ||
+ | |- | ||
+ | |colspan="2"|''General Properties'' | ||
+ | |- | ||
+ | | <code>MaxX:Word;</code> | ||
+ | | Maximum X value for this device | ||
+ | |- | ||
+ | | <code>MaxY:Word;</code> | ||
+ | | Maximum Y value for this device | ||
+ | |- | ||
+ | | <code>MaxZ:Word;</code> | ||
+ | | Maximum Z value for this device | ||
+ | |- | ||
+ | | <code>Width:Word;</code> | ||
+ | | Screen width for this device | ||
+ | |- | ||
+ | | <code>Height:Word;</code> | ||
+ | | Screen height for this device | ||
+ | |- | ||
+ | | <code>MaxPoints:LongWord;</code> | ||
+ | | Maximum touch points for this device | ||
|- | |- | ||
|colspan="2"|''STMPE Properties'' | |colspan="2"|''STMPE Properties'' | ||
Line 2,083: | Line 2,103: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Called internally by other functions | | Called internally by other functions | ||
|- | |- | ||
Line 2,098: | Line 2,118: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE610 is connected to (Optional) | | The I2C device this STMPE610 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! SPI |
| The SPI device this STMPE610 is connected to (Optional) | | The SPI device this STMPE610 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE610 (or I2C_ADDRESS_INVALID if SPI connected) | | The I2C address for this STMPE610 (or I2C_ADDRESS_INVALID if SPI connected) | ||
|- | |- | ||
− | ! | + | ! ChipSelect |
| The SPI chip select for this STMPE610 (or SPI_CS_NONE if I2C connected) | | The SPI chip select for this STMPE610 (or SPI_CS_NONE if I2C connected) | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Either I2C or SPI must be specified but not both | | Either I2C or SPI must be specified but not both | ||
|- | |- | ||
Line 2,128: | Line 2,148: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE801 is connected to | | The I2C device this STMPE801 is connected to | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE801 | | The I2C address for this STMPE801 | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
Line 2,149: | Line 2,169: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE811 is connected to (Optional) | | The I2C device this STMPE811 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! SPI |
| The SPI device this STMPE811 is connected to (Optional) | | The SPI device this STMPE811 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE811 (or I2C_ADDRESS_INVALID if SPI connected) | | The I2C address for this STMPE811 (or I2C_ADDRESS_INVALID if SPI connected) | ||
|- | |- | ||
− | ! | + | ! ChipSelect |
| The SPI chip select for this STMPE811 (or SPI_CS_NONE if I2C connected) | | The SPI chip select for this STMPE811 (or SPI_CS_NONE if I2C connected) | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Either I2C or SPI must be specified but not both | | Either I2C or SPI must be specified but not both | ||
|- | |- | ||
Line 2,179: | Line 2,199: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! 2C |
| The I2C device this STMPE1601 is connected to | | The I2C device this STMPE1601 is connected to | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE1601 | | The I2C address for this STMPE1601 | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
Line 2,200: | Line 2,220: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE1801 is connected to | | The I2C device this STMPE1801 is connected to | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE1801 | | The I2C address for this STMPE1801 | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
Line 2,221: | Line 2,241: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE2401 is connected to | | The I2C device this STMPE2401 is connected to | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE2401 | | The I2C address for this STMPE2401 | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new GPIO device or nil on failure | | Pointer to the new GPIO device or nil on failure | ||
|- | |- | ||
Line 2,242: | Line 2,262: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! GPIO |
| The GPIO device to destroy | | The GPIO device to destroy | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,257: | Line 2,277: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE610 is connected to (Optional) | | The I2C device this STMPE610 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! SPI |
| The SPI device this STMPE610 is connected to (Optional) | | The SPI device this STMPE610 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE610 (or I2C_ADDRESS_INVALID if SPI connected) | | The I2C address for this STMPE610 (or I2C_ADDRESS_INVALID if SPI connected) | ||
|- | |- | ||
− | ! | + | ! ChipSelect |
| The SPI chip select for this STMPE610 (or SPI_CS_NONE if I2C connected) | | The SPI chip select for this STMPE610 (or SPI_CS_NONE if I2C connected) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the screen in pixels | | The width of the screen in pixels | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the screen in pixels | | The height of the screen in pixels | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new Touch device or nil on failure | | Pointer to the new Touch device or nil on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Either I2C or SPI must be specified but not both | | Either I2C or SPI must be specified but not both | ||
|- | |- | ||
Line 2,293: | Line 2,313: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! I2C |
| The I2C device this STMPE811 is connected to (Optional) | | The I2C device this STMPE811 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! SPI |
| The SPI device this STMPE811 is connected to (Optional) | | The SPI device this STMPE811 is connected to (Optional) | ||
|- | |- | ||
− | ! | + | ! Address |
| The I2C address for this STMPE811 (or I2C_ADDRESS_INVALID if SPI connected) | | The I2C address for this STMPE811 (or I2C_ADDRESS_INVALID if SPI connected) | ||
|- | |- | ||
− | ! | + | ! ChipSelect |
| The SPI chip select for this STMPE811 (or SPI_CS_NONE if I2C connected) | | The SPI chip select for this STMPE811 (or SPI_CS_NONE if I2C connected) | ||
|- | |- | ||
− | ! | + | ! Width |
| The width of the screen in pixels | | The width of the screen in pixels | ||
|- | |- | ||
− | ! | + | ! Height |
| The height of the screen in pixels | | The height of the screen in pixels | ||
|- | |- | ||
− | ! | + | ! IRQ |
| The GPIO information for the IRQ line (Optional) | | The GPIO information for the IRQ line (Optional) | ||
|- | |- | ||
− | ! | + | ! Return |
| Pointer to the new Touch device or nil on failure | | Pointer to the new Touch device or nil on failure | ||
|- | |- | ||
− | ! | + | ! Note |
| Either I2C or SPI must be specified but not both | | Either I2C or SPI must be specified but not both | ||
|- | |- | ||
Line 2,329: | Line 2,349: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Touch |
| The Touch device to destroy | | The Touch device to destroy | ||
|- | |- | ||
− | ! | + | ! Return |
| ERROR_SUCCESS if completed or another error code on failure | | ERROR_SUCCESS if completed or another error code on failure | ||
|- | |- | ||
Line 2,347: | Line 2,367: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceStart instead | + | | Not intended to be called directly by applications, use GPIODeviceStart instead. |
|- | |- | ||
|} | |} | ||
Line 2,359: | Line 2,379: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceStop instead | + | | Not intended to be called directly by applications, use GPIODeviceStop instead. |
|- | |- | ||
|} | |} | ||
Line 2,371: | Line 2,391: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceRead instead | + | | Not intended to be called directly by applications, use GPIODeviceRead instead. |
|- | |- | ||
|} | |} | ||
Line 2,383: | Line 2,403: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceWrite instead | + | | Not intended to be called directly by applications, use GPIODeviceWrite instead. |
|- | |- | ||
|} | |} | ||
Line 2,395: | Line 2,415: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceInputGet instead | + | | Not intended to be called directly by applications, use GPIODeviceInputGet instead. |
|- | |- | ||
|} | |} | ||
Line 2,407: | Line 2,427: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceOutputSet instead | + | | Not intended to be called directly by applications, use GPIODeviceOutputSet instead. |
|- | |- | ||
|} | |} | ||
Line 2,419: | Line 2,439: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODevicePullGet instead | + | | Not intended to be called directly by applications, use GPIODevicePullGet instead. |
|- | |- | ||
|} | |} | ||
Line 2,431: | Line 2,451: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODevicePullSelect instead | + | | Not intended to be called directly by applications, use GPIODevicePullSelect instead. |
|- | |- | ||
|} | |} | ||
Line 2,443: | Line 2,463: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceFunctionGet instead | + | | Not intended to be called directly by applications, use GPIODeviceFunctionGet instead. |
|- | |- | ||
|} | |} | ||
Line 2,455: | Line 2,475: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use GPIODeviceFunctionSelect instead | + | | Not intended to be called directly by applications, use GPIODeviceFunctionSelect instead. |
|- | |- | ||
|} | |} | ||
Line 2,470: | Line 2,490: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
− | | Not intended to be called directly by applications, use TouchDeviceStart instead | + | | Not intended to be called directly by applications, use TouchDeviceStart instead. |
|- | |- | ||
|} | |} | ||
Line 2,482: | Line 2,502: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! ''' | + | ! Note |
− | | Not intended to be called directly by applications, use | + | | Not intended to be called directly by applications, use TouchDeviceStop instead. |
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
+ | <pre style="border: 0; padding-bottom:0px;">function STMPETouchUpdate(Touch:PTouchDevice):LongWord;</pre> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Implementation of TouchDeviceUpdate API for STMPE</div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | ! Note | ||
+ | | Not intended to be called directly by applications, use TouchDeviceUpdate instead. | ||
|- | |- | ||
|} | |} | ||
Line 2,494: | Line 2,526: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 2,506: | Line 2,538: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| Not intended to be called directly by applications | | Not intended to be called directly by applications | ||
|- | |- | ||
Line 2,521: | Line 2,553: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,533: | Line 2,565: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,545: | Line 2,577: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,557: | Line 2,589: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,569: | Line 2,601: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,581: | Line 2,613: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,593: | Line 2,625: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 2,605: | Line 2,637: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- |
Latest revision as of 05:39, 13 September 2022
Return to Unit Reference
Contents
[hide]Description
ST Microelectronics STMPE Driver unit
The ST Microelectronics STMPE devices are a range of multi function chips that include GPIO, ADC, 4 wire touchscreen controller and PWM outputs in varying combinations. Many of the functions overlap so a pin can be used for example as a GPIO or a PWM but not both at once. The Touchscreen controller also consumes many of the GPIO pins in the models that support it. This driver supports the GPIO and Touchscreen functions of the following chips:
STMPE610 - 6 GPIO/4-wire Touch/I2C/SPI
STMPE801 - 8 GPIO/I2C
STMPE811 - 8 GPIO/4-wire Touch/I2C/SPI
STMPE1601 - 16 GPIO/4 PWM/I2C
STMPE1801 - 18 GPIO/I2C
STMPE2401 - 24 GPIO/3 PWM/I2C
STMPE2403 - 24 GPIO/3 PWM/I2C
Note: A number of variations also support Keypad, Temperature and other features which are not currently handled by this driver.
Constants
STMPE*_*
STMPE_CHIP_*
STMPE_DIR_*
STMPE_I2C_*
STMPE_SPI_*
STMPE*_REG_*
STMPE*_CHIP_ID
STMPE*_SYS_CTRL*_*
STMPE*_TSC_CTRL_*
STMPE*_TSC_CFG_*
STMPE*_ADC_CTRL1_*
STMPE*_ADC_CTRL2_*
STMPE*_FIFO_STA_*
STMPE*_INT_CTRL_*
STMPE*_INT_EN_*
STMPE*_INT_STA_*
STMPE*Offsets*
Type definitions
STMPE control
STMPE offsets
STMPE GPIO
STMPE touch
Public variables
STMPE specific variables
STMPE_SAMPLE_TIME:Byte = 4;
|
STMPE_MOD_12B:Byte = 1;
|
STMPE_REF_SEL:Byte = 0;
|
STMPE_ADC_FREQ:Byte = 2;
|
STMPE_AVE_CTRL:Byte = 3;
|
STMPE_TOUCH_DET_DELAY:Byte = 4;
|
STMPE_SETTLING:Byte = 2;
|
STMPE_FRACTION_Z:Byte = 7;
|
STMPE_I_DRIVE:Byte = 0;
|
Function declarations
Initialization functions
STMPE functions
function STMPE610GPIOCreate(I2C:PI2CDevice; SPI:PSPIDevice; Address,ChipSelect:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPE801GPIOCreate(I2C:PI2CDevice; Address:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPE811GPIOCreate(I2C:PI2CDevice; SPI:PSPIDevice; Address,ChipSelect:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPE1601GPIOCreate(I2C:PI2CDevice; Address:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPE1801GPIOCreate(I2C:PI2CDevice; Address:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPE2401GPIOCreate(I2C:PI2CDevice; Address:Word; IRQ:PGPIOInfo):PGPIODevice;
function STMPEGPIODestroy(GPIO:PGPIODevice):LongWord;
function STMPE610TouchCreate(I2C:PI2CDevice; SPI:PSPIDevice; Address,ChipSelect:Word; Width,Height:LongWord; IRQ:PGPIOInfo):PTouchDevice;
function STMPE811TouchCreate(I2C:PI2CDevice; SPI:PSPIDevice; Address,ChipSelect:Word; Width,Height:LongWord; IRQ:PGPIOInfo):PTouchDevice;
function STMPETouchDestroy(Touch:PTouchDevice):LongWord;
STMPE GPIO functions
function STMPEGPIOStart(GPIO:PGPIODevice):LongWord;
function STMPEGPIOStop(GPIO:PGPIODevice):LongWord;
function STMPEGPIORead(GPIO:PGPIODevice; Reg:LongWord):LongWord;
procedure STMPEGPIOWrite(GPIO:PGPIODevice; Reg,Value:LongWord);
function STMPEGPIOInputGet(GPIO:PGPIODevice; Pin:LongWord):LongWord;
function STMPEGPIOOutputSet(GPIO:PGPIODevice; Pin,Level:LongWord):LongWord;
function STMPEGPIOPullGet(GPIO:PGPIODevice; Pin:LongWord):LongWord;
function STMPEGPIOPullSelect(GPIO:PGPIODevice; Pin,Mode:LongWord):LongWord;
function STMPEGPIOFunctionGet(GPIO:PGPIODevice; Pin:LongWord):LongWord;
function STMPEGPIOFunctionSelect(GPIO:PGPIODevice; Pin,Mode:LongWord):LongWord;
STMPE touch functions
function STMPETouchStart(Touch:PTouchDevice):LongWord;
function STMPETouchStop(Touch:PTouchDevice):LongWord;
function STMPETouchUpdate(Touch:PTouchDevice):LongWord;
procedure STMPETouchTimer(Touch:PSTMPETouch);
procedure STMPETouchCallback(Touch:PSTMPETouch; Pin,Trigger:LongWord);
STMPE helper functions
function STMPEReadByte(Control:PSTMPEControl; Reg:Byte; Value:PByte):LongWord;
function STMPEWriteByte(Control:PSTMPEControl; Reg,Value:Byte):LongWord;
function STMPEReadWord(Control:PSTMPEControl; Reg:Byte; Value:PWord):LongWord;
function STMPEWriteWord(Control:PSTMPEControl; Reg:Byte; Value:Word):LongWord;
function STMPEReadBytes(Control:PSTMPEControl; Reg,Len:Byte; Values:PByte):LongWord;
function STMPEWriteBytes(Control:PSTMPEControl; Reg,Len:Byte; Values:PByte):LongWord;
function STMPESetBits(Control:PSTMPEControl; Reg,Mask,Value:Byte):LongWord;
function STMPEResetFIFO(Control:PSTMPEControl; Reg:Byte):LongWord;
Return to Unit Reference