Atmel Software Framework

at42qt1060.h File Reference
#include <stdint.h>

Macros

#define AT42QT1060_ACTIVE_LEVEL_MASK   0x1C
 
#define AT42QT1060_AKS_MASK   0x19
 
#define AT42QT1060_CAL   0x80
 
#define AT42QT1060_CALIBRATE   0x0C
 
#define AT42QT1060_CHIP_ID   0x00
 
#define AT42QT1060_DETECTION_MASK   0x1B
 
#define AT42QT1060_DETECTION_STATUS   0x04
 
#define AT42QT1060_DEVICE_MINOR_VERSION   0x00
 
#define AT42QT1060_DEVICE_VERSION   0x03
 
#define AT42QT1060_DI   0x1E
 
#define AT42QT1060_DRIFT_OPTION   0x0E
 
#define AT42QT1060_INPUT_PORT_STATUS   0x05
 
#define AT42QT1060_IO_0   0x01
 
#define AT42QT1060_IO_1   0x02
 
#define AT42QT1060_IO_2   0x04
 
#define AT42QT1060_IO_3   0x08
 
#define AT42QT1060_IO_4   0x10
 
#define AT42QT1060_IO_5   0x20
 
#define AT42QT1060_IO_6   0x40
 
#define AT42QT1060_IO_MASK   0x17
 
#define AT42QT1060_KEY_0   0x01
 
#define AT42QT1060_KEY_0_NTHR   0x10
 
#define AT42QT1060_KEY_0_REF_DATA_LSB   0x34
 
#define AT42QT1060_KEY_0_REF_DATA_MSB   0x35
 
#define AT42QT1060_KEY_0_SIGNAL_LSB   0x28
 
#define AT42QT1060_KEY_0_SIGNAL_MSB   0x29
 
#define AT42QT1060_KEY_1   0x02
 
#define AT42QT1060_KEY_1_NTHR   0x11
 
#define AT42QT1060_KEY_1_REF_DATA_LSB   0x36
 
#define AT42QT1060_KEY_1_REF_DATA_MSB   0x37
 
#define AT42QT1060_KEY_1_SIGNAL_LSB   0x2A
 
#define AT42QT1060_KEY_1_SIGNAL_MSB   0x2B
 
#define AT42QT1060_KEY_2   0x04
 
#define AT42QT1060_KEY_2_NTHR   0x12
 
#define AT42QT1060_KEY_2_REF_DATA_LSB   0x38
 
#define AT42QT1060_KEY_2_REF_DATA_MSB   0x39
 
#define AT42QT1060_KEY_2_SIGNAL_LSB   0x2C
 
#define AT42QT1060_KEY_2_SIGNAL_MSB   0x2D
 
#define AT42QT1060_KEY_3   0x08
 
#define AT42QT1060_KEY_3_NTHR   0x13
 
#define AT42QT1060_KEY_3_REF_DATA_LSB   0x3A
 
#define AT42QT1060_KEY_3_REF_DATA_MSB   0x3B
 
#define AT42QT1060_KEY_3_SIGNAL_LSB   0x2E
 
#define AT42QT1060_KEY_3_SIGNAL_MSB   0x2F
 
#define AT42QT1060_KEY_4   0x10
 
#define AT42QT1060_KEY_4_NTHR   0x14
 
#define AT42QT1060_KEY_4_REF_DATA_LSB   0x3C
 
#define AT42QT1060_KEY_4_REF_DATA_MSB   0x3D
 
#define AT42QT1060_KEY_4_SIGNAL_LSB   0x30
 
#define AT42QT1060_KEY_4_SIGNAL_MSB   0x31
 
#define AT42QT1060_KEY_5   0x20
 
#define AT42QT1060_KEY_5_NTHR   0x15
 
#define AT42QT1060_KEY_5_REF_DATA_LSB   0x3E
 
#define AT42QT1060_KEY_5_REF_DATA_MSB   0x3F
 
#define AT42QT1060_KEY_5_SIGNAL_LSB   0x32
 
#define AT42QT1060_KEY_5_SIGNAL_MSB   0x33
 
#define AT42QT1060_KEY_MASK   0x18
 
#define AT42QT1060_LP_MODE   0x16
 
#define AT42QT1060_MINOR_VERSION   0x02
 
#define AT42QT1060_POS_RECALIBRATION_DELAY   0x0F
 
#define AT42QT1060_PWM_LEVEL   0x1F
 
#define AT42QT1060_PWM_MASK   0x1A
 
#define AT42QT1060_RESET   0x0D
 
#define AT42QT1060_USER_OUTPUT_BUFFER   0x1D
 
#define AT42QT1060_VERSION   0x01
 

Functions

void at42qt1060_calibrate (void)
 Starts a re-calibration or the sensor. More...
 
uint8_t at42qt1060_get_detect_status (void)
 Gets the touch detect status of the sensor. More...
 
void at42qt1060_init (int32_t fcpu)
 Initialize touch sensor with default configuration values. More...
 
uint8_t at42qt1060_read_reg (uint8_t reg_index)
 Read register data. More...
 
void at42qt1060_register_eic_int (void(*touch_detect_callback)(void))
 Register a interrupt handler for the EIC controller. More...
 
void at42qt1060_register_int (void(*touch_detect_callback)(void))
 Register a pin interrupt handler. More...
 
void at42qt1060_reset (void)
 Performs a software reset of the touch sensor. More...
 
void at42qt1060_set_low_power_mode (uint8_t lp_mode)
 Sets the current power mode of the device. More...
 
void at42qt1060_write_reg (uint8_t reg_index, uint8_t data)
 Write data to a sensor register. More...