Contains the BSP driver for the DISCO_F413ZH board.

Dependents:   DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more

Embed: (wiki syntax)

« Back to documentation index

ft6x06.h File Reference

ft6x06.h File Reference

This file contains all the functions prototypes for the ft6x06.c IO expander driver. More...

Go to the source code of this file.

Functions

void ft6x06_Init (uint16_t DeviceAddr)
 ft6x06 Control functions
void ft6x06_Reset (uint16_t DeviceAddr)
 Software Reset the ft6x06.
uint16_t ft6x06_ReadID (uint16_t DeviceAddr)
 Read the ft6x06 device ID, pre intitalize I2C in case of need to be able to read the FT6206 device ID, and verify this is a FT6206.
void ft6x06_TS_Start (uint16_t DeviceAddr)
 Configures the touch Screen IC device to start detecting touches.
uint8_t ft6x06_TS_DetectTouch (uint16_t DeviceAddr)
 Return if there is touches detected or not.
void ft6x06_TS_GetXY (uint16_t DeviceAddr, uint16_t *X, uint16_t *Y)
 Get the touch screen X and Y positions values Manage multi touch thanks to touch Index global variable 'ft6x06_handle.currActiveTouchIdx'.
void ft6x06_TS_EnableIT (uint16_t DeviceAddr)
 Configure the FT6206 device to generate IT on given INT pin connected to MCU as EXTI.
void ft6x06_TS_DisableIT (uint16_t DeviceAddr)
 Configure the FT6206 device to stop generating IT on the given INT pin connected to MCU as EXTI.
uint8_t ft6x06_TS_ITStatus (uint16_t DeviceAddr)
 Get IT status from FT6206 interrupt status registers Should be called Following an EXTI coming to the MCU to know the detailed reason of the interrupt.
void ft6x06_TS_ClearIT (uint16_t DeviceAddr)
 Clear IT status in FT6206 interrupt status clear registers Should be called Following an EXTI coming to the MCU.
void ft6x06_TS_GetGestureID (uint16_t DeviceAddr, uint32_t *pGestureId)
 Get the last touch gesture identification (zoom, move up/down...).
void ft6x06_TS_GetTouchInfo (uint16_t DeviceAddr, uint32_t touchIdx, uint32_t *pWeight, uint32_t *pArea, uint32_t *pEvent)
 Get the touch detailed informations on touch number 'touchIdx' (0..1) This touch detailed information contains :

  • weight that was applied to this touch
  • sub-area of the touch in the touch panel
  • event of linked to the touch (press down, lift up, ...)

void TS_IO_Init (void)
 Initializes TS low level.
void TS_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data.
uint8_t TS_IO_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data.
uint16_t TS_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
 Reads multiple data with I2C communication channel from TouchScreen.
void TS_IO_Delay (uint32_t Delay)
 Delay function used in TouchScreen low level driver.

Detailed Description

This file contains all the functions prototypes for the ft6x06.c IO expander driver.

Author:
MCD Application Team
Version:
V1.0.1
Date:
03-May-2016
Attention:

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file ft6x06.h.