Microchip® Advanced Software Framework

qt_i2c.h File Reference

QTouch component driver with I2C interface.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "status_codes.h"
#include "twi_master.h"
#include "conf_qt_i2c.h"

Macros

#define BOARD_QT_DEVICE_ADDRESS   0 /* QTouch device address */
 
#define BOARD_QT_TWI_INSTANCE   0 /* TWI instance */
 Checking board configuration of the QTouch device. More...
 
#define QT2160   1
 AT42QT2160 device support. More...
 

Functions

enum status_code qt_get_comm_ready (void)
 Check communication is ready and able to read Chip ID. More...
 
enum status_code qt_get_status (struct qt_status *qt_status)
 Get all status from QT device. More...
 
void qt_hardware_reset (void)
 Perform a hardware reset of the QT device. More...
 
bool qt_is_change_line_low (void)
 Check if the CHANGE line is low level. More...
 
enum status_code qt_read_regs (uint8_t reg_addr, uint8_t *read_buffer, uint8_t length)
 Read registers content from QT device. More...
 
enum status_code qt_read_setup_block (struct qt_setup_block *setup_block)
 Read entire setup block from QT device. More...
 
enum status_code qt_write_regs (uint8_t reg_addr, uint8_t *write_buffer, uint8_t length)
 Write content to QT device registers. More...
 
enum status_code qt_write_setup_block (struct qt_setup_block *setup_block)
 Write entire setup block to QT device. More...