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 |
#define DELTA_TIME 500 |
additional touch flag to indicate idle state
#define DELTA_TOUCH 16 |
#define EW_BSP_TOUCH_DOWN 1 |
#define EW_BSP_TOUCH_HOLD 4 |
structure to store internal touch information for one finger
#define EW_BSP_TOUCH_IDLE 0 |
additional touch flag to indicate hold state
#define EW_BSP_TOUCH_MOVE 2 |
#define EW_BSP_TOUCH_UP 3 |
#define NO_OF_FINGERS FT6X06_MAX_NB_TOUCH |
#define TS_I2C_ADDRESS 0x70U |
Terminates the touch driver.
void EwBspTouchEventHandler | ( | int | aEventId | ) |
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.
aTouchEvent | Pointer to return array of XTouchEvent. |
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.
void EwBspTouchInit | ( | int | aWidth, |
int | aHeight | ||
) |
Initializes the touch driver.
aWidth | Width of the toucharea (framebuffer) in pixel. |
aHeight | Width of the toucharea (framebuffer) in pixel. |
References FT6X06Obj, TouchAreaHeight, TouchAreaWidth, TouchEvent, and TS_I2C_ADDRESS.
|
static |
|
static |
|
static |
|
static |
|
static |