VSF Documented
Macros | Typedefs | Enumerations | Functions
vsf_input_cst8.c File Reference
#include "hal/vsf_hal.h"
#include "component/vsf_component.h"

Macros

#define __VSF_I2C_UTIL_CLASS_INHERIT__
 
#define __VSF_INPUT_CST8_CLASS_IMPLEMENT
 

Typedefs

typedef enum vsf_cst8_evt_t vsf_cst8_evt_t
 
typedef enum vsf_cst8_mode_t vsf_cst8_mode_t
 
typedef enum vsf_cst8_cmd_t vsf_cst8_cmd_t
 

Enumerations

enum  vsf_cst8_evt_t {
  CST8_EVT_ON_PRESS = 0x00 ,
  CST8_EVT_ON_MOVE = 0x80 ,
  CST8_EVT_ON_RELEASE = 0x40
}
 
enum  vsf_cst8_mode_t {
  CST8_MODE_GESTURE = 0x11 ,
  CST8_MODE_TOUCH = 0x60
}
 
enum  vsf_cst8_cmd_t {
  CST8_CMD_CHIPID = 0xA7 ,
  CST8_CMD_FIRMVER = 0xA9 ,
  CST8_CMD_MODE = 0xFA
}
 

Functions

vsf_err_t vk_input_cst8_init (vk_input_cst8_t *cst8, vsf_arch_prio_t prio)
 

Macro Definition Documentation

◆ __VSF_I2C_UTIL_CLASS_INHERIT__

#define __VSF_I2C_UTIL_CLASS_INHERIT__

◆ __VSF_INPUT_CST8_CLASS_IMPLEMENT

#define __VSF_INPUT_CST8_CLASS_IMPLEMENT

Typedef Documentation

◆ vsf_cst8_evt_t

◆ vsf_cst8_mode_t

◆ vsf_cst8_cmd_t

Enumeration Type Documentation

◆ vsf_cst8_evt_t

Enumerator
CST8_EVT_ON_PRESS 
CST8_EVT_ON_MOVE 
CST8_EVT_ON_RELEASE 

◆ vsf_cst8_mode_t

Enumerator
CST8_MODE_GESTURE 
CST8_MODE_TOUCH 

◆ vsf_cst8_cmd_t

Enumerator
CST8_CMD_CHIPID 
CST8_CMD_FIRMVER 
CST8_CMD_MODE 

Function Documentation

◆ vk_input_cst8_init()

vsf_err_t vk_input_cst8_init ( vk_input_cst8_t cst8,
vsf_arch_prio_t  prio 
)