![]() |
Synergy Software Package User's Manual
|
#include <sf_touch_panel_v2_api.h>
Data Fields | |
| ssp_err_t(* | open )(sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_cfg_t const *const p_cfg) |
| Create required RTOS objects, call lower level module for hardware specific initialization, and create a thread to post touch data to user application. More... | |
| ssp_err_t(* | calibrate )(sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_calibrate_t const *const p_display, sf_touch_panel_v2_calibrate_t const *const p_touchscreen, ULONG const timeout) |
| Begin calibration routine based on provided expected and actual coordinates. More... | |
| ssp_err_t(* | start )(sf_touch_panel_v2_ctrl_t *const p_ctrl) |
| Start scanning for touch events. More... | |
| ssp_err_t(* | touchDataGet )(sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_payload_t *p_payload, ULONG const timeout) |
| Reads the touch data and fills in the touch payload data. More... | |
| ssp_err_t(* | stop )(sf_touch_panel_v2_ctrl_t *const p_ctrl) |
| Stop scanning for touch events. More... | |
| ssp_err_t(* | reset )(sf_touch_panel_v2_ctrl_t *const p_ctrl) |
| Reset touch chip if reset pin is provided. More... | |
| ssp_err_t(* | close )(sf_touch_panel_v2_ctrl_t *const p_ctrl) |
| Terminate touch thread and close channel at HAL layer. More... | |
| ssp_err_t(* | versionGet )(ssp_version_t *const p_version) |
| Gets version and stores it in provided pointer p_version. More... | |
Touch panel V2 API structure. Touch panel V2 implementations use the following API.
| ssp_err_t(* sf_touch_panel_v2_api_t::calibrate) (sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_calibrate_t const *const p_display, sf_touch_panel_v2_calibrate_t const *const p_touchscreen, ULONG const timeout) |
Begin calibration routine based on provided expected and actual coordinates.
| [in] | p_ctrl | Handle set in sf_touch_panel_v2_api_t::open. |
| [in] | p_display | Expected coordinates of the display. |
| [in] | p_touchscreen | Actual coordinates obtained from the touch driver. |
| [in] | timeout | ThreadX timeout. Select TX_NO_WAIT, a value in system clock counts between 1 and 0xFFFFFFFF, or TX_WAIT_FOREVER. |
| ssp_err_t(* sf_touch_panel_v2_api_t::close) (sf_touch_panel_v2_ctrl_t *const p_ctrl) |
Terminate touch thread and close channel at HAL layer.
| [in] | p_ctrl | Handle set in sf_touch_panel_v2_api_t::open. |
| ssp_err_t(* sf_touch_panel_v2_api_t::open) (sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_cfg_t const *const p_cfg) |
Create required RTOS objects, call lower level module for hardware specific initialization, and create a thread to post touch data to user application.
| [in,out] | p_ctrl | Pointer to a structure allocated by user. This control structure is initialized in this function. |
| [in] | p_cfg | Pointer to configuration structure. All elements of the structure must be set by user. |
| ssp_err_t(* sf_touch_panel_v2_api_t::reset) (sf_touch_panel_v2_ctrl_t *const p_ctrl) |
Reset touch chip if reset pin is provided.
| [in] | p_ctrl | Handle set in sf_touch_panel_v2_api_t::open. |
| ssp_err_t(* sf_touch_panel_v2_api_t::start) (sf_touch_panel_v2_ctrl_t *const p_ctrl) |
Start scanning for touch events.
| [in] | p_ctrl | Handle set in sf_touch_panel_v2_api_t::open. |
| ssp_err_t(* sf_touch_panel_v2_api_t::stop) (sf_touch_panel_v2_ctrl_t *const p_ctrl) |
Stop scanning for touch events.
| [in] | p_ctrl | Handle set in sf_touch_panel_v2_api_t::open. |
| ssp_err_t(* sf_touch_panel_v2_api_t::touchDataGet) (sf_touch_panel_v2_ctrl_t *const p_ctrl, sf_touch_panel_v2_payload_t *p_payload, ULONG const timeout) |
Reads the touch data and fills in the touch payload data.
| [in,out] | p_ctrl | Pointer to a structure allocated by user. This control structure is initialized in this function. |
| [out] | p_payload | Pointer to the payload to data structure. Touch data provided should be processed to logical pixel values. |
| [in] | timeout | ThreadX timeout. Select TX_NO_WAIT, a value in system clock counts between 1 and 0xFFFFFFFF, or TX_WAIT_FOREVER. |
| ssp_err_t(* sf_touch_panel_v2_api_t::versionGet) (ssp_version_t *const p_version) |
Gets version and stores it in provided pointer p_version.
| [out] | p_version | Code and API version used stored here. |