Select one of the symbols to view example projects that use it.
 
Outline
#include <OTM8009TouchController.hpp>
#include "stm32469i_eval.h"
#include "stm32469i_eval_ts.h"
OTM8009TouchController::init()
OTM8009TouchController::sampleTouch(int32_t &, int32_t &)
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/target/OTM8009TouchController.cpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * @attention * * Copyright (c) 2018 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ #include <OTM8009TouchController.hpp> extern "C" { #include "stm32469i_eval.h" #include "stm32469i_eval_ts.h" uint32_t LCD_GetXSize(); uint32_t LCD_GetYSize(); }extern "C" { ... } void OTM8009TouchController::init() { BSP_TS_Init(LCD_GetXSize(), LCD_GetYSize()); }{ ... } bool OTM8009TouchController::sampleTouch(int32_t& x, int32_t& y) { TS_StateTypeDef state; BSP_TS_GetState(&state); if (state.touchDetected) { x = state.touchX[0]; y = state.touchY[0]; return true; }if (state.touchDetected) { ... } return false; }{ ... }