EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
TOUCH_Pos_TypeDef Struct Reference

Detailed Description

Touch panel position structure

Definition at line 47 of file touch.h.

#include <touch.h>

Data Fields

uint16_t adcx
 
uint16_t adcy
 
uint8_t pen
 
uint16_t x
 
uint16_t y
 

Field Documentation

uint16_t TOUCH_Pos_TypeDef::adcx

ADC X readings

Definition at line 50 of file touch.h.

Referenced by ADC0_IRQHandler(), TOUCH_GetPos(), and TOUCH_RecalculatePosition().

uint16_t TOUCH_Pos_TypeDef::adcy

ADC Y readings

Definition at line 51 of file touch.h.

Referenced by ADC0_IRQHandler(), TOUCH_GetPos(), and TOUCH_RecalculatePosition().

uint8_t TOUCH_Pos_TypeDef::pen

0=not pressed, 1=touched

Definition at line 52 of file touch.h.

Referenced by ADC0_IRQHandler(), TOUCH_GetPos(), TOUCH_RecalculatePosition(), and TOUCH_StateChanged().

uint16_t TOUCH_Pos_TypeDef::x

x position

Definition at line 48 of file touch.h.

Referenced by ADC0_IRQHandler(), TOUCH_GetPos(), TOUCH_RecalculatePosition(), and TOUCH_StateChanged().

uint16_t TOUCH_Pos_TypeDef::y

y position

Definition at line 49 of file touch.h.

Referenced by ADC0_IRQHandler(), TOUCH_GetPos(), TOUCH_RecalculatePosition(), and TOUCH_StateChanged().


The documentation for this struct was generated from the following file: