HPM SDK
HPMicro Software Development Kit
hpm_touch.h File Reference
#include "hpm_common.h"

Go to the source code of this file.

Data Structures

struct  touch_point_t
 

Enumerations

enum  { status_touch_buffer_no_ready = MAKE_STATUS(status_group_touch, 0) , status_touch_points_over_number = MAKE_STATUS(status_group_touch, 1) }
 

Functions

hpm_stat_t touch_init (I2C_Type *i2c_ptr)
 
hpm_stat_t touch_config (bool exchange_xy, bool reverse_x, bool reverse_y)
 
hpm_stat_t touch_get_data (touch_point_t *points, uint8_t *num_of_points)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
status_touch_buffer_no_ready 
status_touch_points_over_number 

Function Documentation

◆ touch_config()

hpm_stat_t touch_config ( bool  exchange_xy,
bool  reverse_x,
bool  reverse_y 
)

◆ touch_get_data()

hpm_stat_t touch_get_data ( touch_point_t points,
uint8_t *  num_of_points 
)

◆ touch_init()

hpm_stat_t touch_init ( I2C_Type i2c_ptr)