HPM SDK
HPMicro Software Development Kit
hpm_gt9xx.c File Reference
#include "hpm_gt9xx.h"

Functions

hpm_stat_t gt9xx_read_data (gt9xx_context_t *context, uint16_t addr, uint8_t *buf, uint32_t size)
 
hpm_stat_t gt9xx_write_data (gt9xx_context_t *context, uint16_t addr, uint8_t *buf, uint32_t size)
 
hpm_stat_t gt9xx_read_register (gt9xx_context_t *context, uint16_t reg, uint8_t *buf)
 
hpm_stat_t gt9xx_write_register (gt9xx_context_t *context, uint16_t reg, uint8_t val)
 
hpm_stat_t gt9xx_soft_reset (gt9xx_context_t *context)
 
static uint8_t gt9xx_calcualte_config_data_checksum (uint8_t *config)
 
hpm_stat_t gt9xx_read_config (gt9xx_context_t *context, uint8_t *buf, uint8_t size)
 
hpm_stat_t gt9xx_init (gt9xx_context_t *context, uint16_t width, uint16_t height)
 
hpm_stat_t gt9xx_read_touch_data (gt9xx_context_t *context, gt9xx_touch_data_t *touch_data)
 

Variables

static uint8_t g_i2c_addr
 

Function Documentation

◆ gt9xx_calcualte_config_data_checksum()

static uint8_t gt9xx_calcualte_config_data_checksum ( uint8_t *  config)
static

◆ gt9xx_init()

hpm_stat_t gt9xx_init ( gt9xx_context_t context,
uint16_t  width,
uint16_t  height 
)

◆ gt9xx_read_config()

hpm_stat_t gt9xx_read_config ( gt9xx_context_t context,
uint8_t *  buf,
uint8_t  size 
)

◆ gt9xx_read_data()

hpm_stat_t gt9xx_read_data ( gt9xx_context_t context,
uint16_t  addr,
uint8_t *  buf,
uint32_t  size 
)

◆ gt9xx_read_register()

hpm_stat_t gt9xx_read_register ( gt9xx_context_t context,
uint16_t  reg,
uint8_t *  buf 
)

◆ gt9xx_read_touch_data()

hpm_stat_t gt9xx_read_touch_data ( gt9xx_context_t context,
gt9xx_touch_data_t touch_data 
)

◆ gt9xx_soft_reset()

hpm_stat_t gt9xx_soft_reset ( gt9xx_context_t context)

◆ gt9xx_write_data()

hpm_stat_t gt9xx_write_data ( gt9xx_context_t context,
uint16_t  addr,
uint8_t *  buf,
uint32_t  size 
)

◆ gt9xx_write_register()

hpm_stat_t gt9xx_write_register ( gt9xx_context_t context,
uint16_t  reg,
uint8_t  val 
)

Variable Documentation

◆ g_i2c_addr

uint8_t g_i2c_addr
static