mikroSDK Reference Manual
|
Go to the source code of this file.
Data Structures | |
struct | tp_mikroe_calibration_data_t |
Calibration data structure. More... | |
struct | tp_mikroe_pressure_threshold_t |
Pressure threshold data structure. More... | |
struct | tp_mikroe_cfg_t |
TP_MIKROE Configuration Object. More... | |
struct | tp_mikroe_t |
TP_MIKROE Context Object. More... | |
Macros | |
#define | VREF_VALUE 3.3f |
Defines value for voltage reference. More... | |
#define | TP_MIKROE_CALIBRATION_XMIN 0 |
X coordinate of the bottom left corner of the touch panel area. More... | |
#define | TP_MIKROE_CALIBRATION_XMAX 0 |
X coordinate of the upper right corner of the touch panel area. More... | |
#define | TP_MIKROE_CALIBRATION_YMIN 0 |
Y coordinate of the bottom left corner of the touch panel area. More... | |
#define | TP_MIKROE_CALIBRATION_YMAX 0 |
Y coordinate of the upper right corner of the touch panel area. More... | |
#define | TP_MIKROE_PRESSURE_THRESHOLD_LOWER 0 |
Lower threshold value. More... | |
#define | TP_MIKROE_PRESSURE_THRESHOLD_UPPER 0 |
Upper threshold value. More... | |
#define | TP_MIKROE_MAP_PINS(tp_mikroe_cfg) |
Mapping for ADC config structure. More... | |
#define | TP_MIKROE_ADC_CONFIG(cfg) |
TP_MIKROE ADC Configuration Object. More... | |
#define | SET_PEN() gl_set_pen( GL_WHITE, 4 ); |
Configure pen for drawing arrows during touch panel calibration. More... | |
#define | DRAW_ARROW_TOP_LEFT() |
Draw top left arrow during touch panel calibration. More... | |
#define | DRAW_ARROW_TOP_RIGHT() |
Draw top right arrow during touch panel calibration. More... | |
#define | DRAW_ARROW_BOTTOM_LEFT() |
Draw bottom left arrow during touch panel calibration. More... | |
#define | DRAW_ARROW_BOTTOM_RIGHT() |
Draw bottom right arrow during touch panel calibration. More... | |
Functions | |
tp_err_t | tp_mikroe_process (tp_mikroe_t *ctx) |
Function processing events. More... | |
void | tp_mikroe_gesture (tp_mikroe_t *ctx, tp_event_t *event) |
Read gesture information. More... | |
tp_event_t | tp_mikroe_press_detect (tp_mikroe_t *ctx) |
Press detection function. More... | |
void | tp_mikroe_press_coordinates (tp_mikroe_t *ctx, tp_touch_coord_t *touch_item) |
Copies touch information from context object to touch item object. More... | |
void | tp_mikroe_calibrate (tp_t *tp_instance) |
Calibrates variables used for converting raw TP_MIKROE ADC values to pixel coordinates. More... | |
void | tp_mikroe_get_calibration_data (tp_mikroe_t *ctx, tp_mikroe_calibration_data_t *cdata) |
Utility function used for getting a copy of current calibration data. More... | |
void | tp_mikroe_set_calibration_data (tp_mikroe_t *ctx, const tp_mikroe_calibration_data_t *cdata) |
Utility function used for setting calibration data. More... | |
void | tp_mikroe_set_pressure_threshold_level (tp_mikroe_cfg_t *cfg, tp_mikroe_pressure_threshold_t pressure) |
Utility function used for setting threshold levels. More... | |
bool | tp_mikroe_check_pressure (tp_mikroe_t *ctx, uint16_t *x_pos, uint16_t *y_pos) |
Function for reading raw ADC data. More... | |
void | tp_mikroe_set_threshold (tp_mikroe_t *ctx, uint16_t threshold_upper, uint16_t threshold_lower) |
Utility function used for setting threshold levels. More... | |
void | tp_mikroe_update_ctx_coords (tp_mikroe_t *ctx, uint16_t x_pos, uint16_t y_pos) |
Converts x_pos & y_pos raw ADC values to coordinate values and stores them in 'touch point 0' ctx member. More... | |
void | tp_mikroe_calibrate_point (tp_mikroe_t *ctx, bool calibration_points_uninitialized) |
Utility function used for calibration. More... | |
char | tp_mikroe_pressure_level_detect (tp_mikroe_t *ctx) |
Function used for checking pressure levels. More... | |
void | tp_mikroe_cfg_setup (tp_mikroe_cfg_t *cfg) |
TP_MIKROE Configuration setup Function. More... | |
tp_err_t | tp_mikroe_init_tp (tp_mikroe_t *ctx, tp_mikroe_cfg_t *cfg, tp_drv_t *drv) |
TP_MIKROE Touch Panel initialization. This function initializes TP_MIKROE context object using configuration values from TP_MIKROE configuration object and allows touch panel driver interface object to be linked with TP_MIKROE driver functions. More... | |
void | tp_mikroe_default_cfg_adc (tp_mikroe_t *ctx) |
TP_MIKROE ADC pin configuration function. More... | |
#define VREF_VALUE 3.3f |
Defines value for voltage reference.
#define TP_MIKROE_CALIBRATION_XMIN 0 |
X coordinate of the bottom left corner of the touch panel area.
#define TP_MIKROE_CALIBRATION_XMAX 0 |
X coordinate of the upper right corner of the touch panel area.
#define TP_MIKROE_CALIBRATION_YMIN 0 |
Y coordinate of the bottom left corner of the touch panel area.
#define TP_MIKROE_CALIBRATION_YMAX 0 |
Y coordinate of the upper right corner of the touch panel area.
#define TP_MIKROE_PRESSURE_THRESHOLD_LOWER 0 |
Lower threshold value.
#define TP_MIKROE_PRESSURE_THRESHOLD_UPPER 0 |
Upper threshold value.
#define TP_MIKROE_MAP_PINS | ( | tp_mikroe_cfg | ) |
#define TP_MIKROE_ADC_CONFIG | ( | cfg | ) |
ADC configuration object definition for TP_MIKROE touch controller.
#define SET_PEN | ( | ) | gl_set_pen( GL_WHITE, 4 ); |
Configure pen for drawing arrows during touch panel calibration.
#define DRAW_ARROW_TOP_LEFT | ( | ) |
#define DRAW_ARROW_TOP_RIGHT | ( | ) |
#define DRAW_ARROW_BOTTOM_LEFT | ( | ) |