WebRadioApp  0.1
Collaboration diagram for EW_BSP_TOUCH:

Data Structures

struct  XTouchData
 
struct  XTouchEvent
 

Macros

#define TS_I2C_ADDRESS   0x70U
 
#define NO_OF_FINGERS   FT6X06_MAX_NB_TOUCH
 
#define DELTA_TOUCH   16
 
#define DELTA_TIME   500
 
#define EW_BSP_TOUCH_IDLE   0
 
#define EW_BSP_TOUCH_HOLD   4
 
#define EW_BSP_TOUCH_DOWN   1
 
#define EW_BSP_TOUCH_MOVE   2
 
#define EW_BSP_TOUCH_UP   3
 

Functions

void EwBspTouchInit (int aWidth, int aHeight)
 Initializes the touch driver. More...
 
void EwBspTouchDone (void)
 Terminates the touch driver. More...
 
int EwBspTouchGetEvents (XTouchEvent **aTouchEvent)
 The function EwBspTouchGetEvents reads the current touch positions from the touch driver and returns the current touch position and touch status of the different fingers. The returned number of touch events indicates the number of XTouchEvent that contain position and status information. The orientation of the touch positions is adjusted to match GUI coordinates. If the hardware supports only single touch, the finger number is always 0. More...
 
void EwBspTouchEventHandler (int aEventId)
 

Variables

static int TouchAreaWidth = 0
 
static int TouchAreaHeight = 0
 
static XTouchEvent TouchEvent [NO_OF_FINGERS]
 
static XTouchData TouchData [NO_OF_FINGERS]
 
static FT6X06_Object_t FT6X06Obj
 

Detailed Description

Macro Definition Documentation

◆ DELTA_TIME

#define DELTA_TIME   500

additional touch flag to indicate idle state

◆ DELTA_TOUCH

#define DELTA_TOUCH   16

◆ EW_BSP_TOUCH_DOWN

#define EW_BSP_TOUCH_DOWN   1

◆ EW_BSP_TOUCH_HOLD

#define EW_BSP_TOUCH_HOLD   4

structure to store internal touch information for one finger

◆ EW_BSP_TOUCH_IDLE

#define EW_BSP_TOUCH_IDLE   0

additional touch flag to indicate hold state

◆ EW_BSP_TOUCH_MOVE

#define EW_BSP_TOUCH_MOVE   2

◆ EW_BSP_TOUCH_UP

#define EW_BSP_TOUCH_UP   3

◆ NO_OF_FINGERS

#define NO_OF_FINGERS   FT6X06_MAX_NB_TOUCH

◆ TS_I2C_ADDRESS

#define TS_I2C_ADDRESS   0x70U

Function Documentation

◆ EwBspTouchDone()

void EwBspTouchDone ( void  )

Terminates the touch driver.


Here is the caller graph for this function:

◆ EwBspTouchEventHandler()

void EwBspTouchEventHandler ( int  aEventId)

◆ EwBspTouchGetEvents()

int EwBspTouchGetEvents ( XTouchEvent **  aTouchEvent)

The function EwBspTouchGetEvents reads the current touch positions from the touch driver and returns the current touch position and touch status of the different fingers. The returned number of touch events indicates the number of XTouchEvent that contain position and status information. The orientation of the touch positions is adjusted to match GUI coordinates. If the hardware supports only single touch, the finger number is always 0.

Parameters
aTouchEventPointer to return array of XTouchEvent.
Returns
int - Returns the number of detected touch events, otherwise 0.

References CPU_LOAD_SET_ACTIVE, CPU_LOAD_SET_IDLE, DELTA_TIME, DELTA_TOUCH, EW_BSP_TOUCH_DOWN, EW_BSP_TOUCH_HOLD, EW_BSP_TOUCH_IDLE, EW_BSP_TOUCH_MOVE, EW_BSP_TOUCH_UP, EwGetTicks(), XTouchEvent::Finger, FT6X06Obj, NO_OF_FINGERS, XTouchData::State, XTouchEvent::State, XTouchData::Ticks, TouchAreaHeight, TouchAreaWidth, TouchData, TouchEvent, XTouchData::TouchId, XTouchData::XPos, XTouchEvent::XPos, XTouchData::YPos, and XTouchEvent::YPos.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EwBspTouchInit()

void EwBspTouchInit ( int  aWidth,
int  aHeight 
)

Initializes the touch driver.

Parameters
aWidthWidth of the toucharea (framebuffer) in pixel.
aHeightWidth of the toucharea (framebuffer) in pixel.

References FT6X06Obj, TouchAreaHeight, TouchAreaWidth, TouchEvent, and TS_I2C_ADDRESS.

Here is the caller graph for this function:

Variable Documentation

◆ FT6X06Obj

FT6X06_Object_t FT6X06Obj
static

◆ TouchAreaHeight

int TouchAreaHeight = 0
static

◆ TouchAreaWidth

int TouchAreaWidth = 0
static

◆ TouchData

XTouchData TouchData[NO_OF_FINGERS]
static

◆ TouchEvent

XTouchEvent TouchEvent[NO_OF_FINGERS]
static