BSP library for DISCO-STM32F746NG board. Added support for on-board QSPI Flash memory MICRO N25Q128A. Ported from library BSP_DISCO_L476VG.

Dependents:   DISCO-F746NG_QSPI

Fork of BSP_DISCO_F746NG by ST

Embed: (wiki syntax)

« Back to documentation index

ft5336.c File Reference

ft5336.c File Reference

This file provides a set of functions needed to manage the FT5336 touch screen devices. More...

Go to the source code of this file.

Functions

static uint8_t ft5336_Get_I2C_InitializedStatus (void)
 Return the status of I2C was initialized or not.
static void ft5336_I2C_InitializeIfRequired (void)
 I2C initialize if needed.
static uint32_t ft5336_TS_Configure (uint16_t DeviceAddr)
 Basic static configuration of TouchScreen.
void ft5336_Init (uint16_t DeviceAddr)
 Initialize the ft5336 communication bus from MCU to FT5336 : ie I2C channel initialization (if required).
void ft5336_Reset (uint16_t DeviceAddr)
 Software Reset the ft5336.
uint16_t ft5336_ReadID (uint16_t DeviceAddr)
 Read the ft5336 device ID, pre initialize I2C in case of need to be able to read the FT5336 device ID, and verify this is a FT5336.
void ft5336_TS_Start (uint16_t DeviceAddr)
 Configures the touch Screen IC device to start detecting touches.
uint8_t ft5336_TS_DetectTouch (uint16_t DeviceAddr)
 Return if there is touches detected or not.
void ft5336_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 'ft5336_handle.currActiveTouchIdx'.
void ft5336_TS_EnableIT (uint16_t DeviceAddr)
 Configure the FT5336 device to generate IT on given INT pin connected to MCU as EXTI.
void ft5336_TS_DisableIT (uint16_t DeviceAddr)
 Configure the FT5336 device to stop generating IT on the given INT pin connected to MCU as EXTI.
uint8_t ft5336_TS_ITStatus (uint16_t DeviceAddr)
 Get IT status from FT5336 interrupt status registers Should be called Following an EXTI coming to the MCU to know the detailed reason of the interrupt.
void ft5336_TS_ClearIT (uint16_t DeviceAddr)
 Clear IT status in FT5336 interrupt status clear registers Should be called Following an EXTI coming to the MCU.
void ft5336_TS_GetGestureID (uint16_t DeviceAddr, uint32_t *pGestureId)
 Get the last touch gesture identification (zoom, move up/down...).
void ft5336_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, ...)


Detailed Description

This file provides a set of functions needed to manage the FT5336 touch screen devices.

Author:
MCD Application Team
Version:
V1.0.0
Date:
25-June-2015
Attention:

© COPYRIGHT(c) 2015 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 ft5336.c.