STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions | Variables
ft6x06.c File Reference

This file provides a set of functions needed to manage the FT6X06 IO Expander devices. More...

#include "ft6x06.h"

Go to the source code of this file.

Macros

#define FT6x06_MAX_INSTANCE   2
 

Functions

void ft6x06_Init (uint16_t DeviceAddr)
 Initialize the ft6x06 communication bus from MCU to FT6206 : ie I2C channel initialization (if required). More...
 
void ft6x06_Reset (uint16_t DeviceAddr)
 Software Reset the ft6x06. More...
 
uint16_t ft6x06_ReadID (uint16_t DeviceAddr)
 Read the ft6x06 device ID, pre initialize I2C in case of need to be able to read the FT6206 device ID, and verify this is a FT6206. More...
 
void ft6x06_TS_Start (uint16_t DeviceAddr)
 Configures the touch Screen IC device to start detecting touches It goes through an internal calibration process (Hw calibration sequence of the touch screen). More...
 
uint8_t ft6x06_TS_DetectTouch (uint16_t DeviceAddr)
 Return if there is touches detected or not. Try to detect new touches and forget the old ones (reset internal global variables). More...
 
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'. More...
 
void ft6x06_TS_EnableIT (uint16_t DeviceAddr)
 Configure the FT6206 device to generate IT on given INT pin connected to MCU as EXTI. More...
 
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. More...
 
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. More...
 
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. More...
 

Variables

TS_DrvTypeDef ft6x06_ts_drv
 
uint8_t ft6x06 [FT6x06_MAX_INSTANCE] = {0}
 

Detailed Description

This file provides a set of functions needed to manage the FT6X06 IO Expander devices.

Author
MCD Application Team
Version
V1.0.0
Date
03-August-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 ft6x06.c.