STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Functions
ft6x06 Private Functions

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...
 

Detailed Description

Function Documentation

void ft6x06_Init ( uint16_t  DeviceAddr)

Initialize the ft6x06 communication bus from MCU to FT6206 : ie I2C channel initialization (if required).

ft6x06 Control functions

Parameters
DeviceAddrDevice address on communication Bus (I2C slave address of FT6206).
Return values
None

Definition at line 133 of file ft6x06.c.

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.

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.

Parameters
DeviceAddrI2C FT6x06 Slave address.
Return values
TheDevice ID (two bytes).

Definition at line 176 of file ft6x06.c.

void ft6x06_Reset ( uint16_t  DeviceAddr)

Software Reset the ft6x06.

Note
: Not applicable to FT6206.
Parameters
DeviceAddrDevice address on communication Bus (I2C slave address of FT6206).
Return values
None

Definition at line 164 of file ft6x06.c.

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.

Note
: This feature is not applicable to FT6206.
Parameters
DeviceAddrDevice address on communication Bus (I2C slave address of FT6206).
Return values
None

Definition at line 330 of file ft6x06.c.

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).

Parameters
DeviceAddrDevice address on communication Bus.
Return values
Number of active touches detected (can be 0, 1 or 2).

Definition at line 214 of file ft6x06.c.

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.

Parameters
DeviceAddrDevice address on communication Bus (Slave I2C address of FT6206).
Return values
None

Definition at line 300 of file ft6x06.c.

void ft6x06_TS_EnableIT ( uint16_t  DeviceAddr)

Configure the FT6206 device to generate IT on given INT pin connected to MCU as EXTI.

Parameters
DeviceAddrDevice address on communication Bus (Slave I2C address of FT6206).
Return values
None

Definition at line 285 of file ft6x06.c.

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'.

Parameters
DeviceAddrDevice address on communication Bus.
XPointer to X position value
YPointer to Y position value
Return values
None.

Definition at line 246 of file ft6x06.c.

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.

Note
: This feature is not applicable to FT6206.
Parameters
DeviceAddrDevice address on communication Bus (I2C slave address of FT6206).
Return values
TSinterrupts status : always return 0 here

Definition at line 317 of file ft6x06.c.

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).

Configures the touch Screen IC device to start detecting touches.

Parameters
DeviceAddrDevice address on communication Bus (I2C slave address).
Return values
None.

Definition at line 192 of file ft6x06.c.