| 
    upm
    1.3.0
    
   Sensor/Actuator repository for libmraa (v1.7.0) 
   | 
 
API for the Atmel AT42QT1070 QTouch Sensor. More...
This class implements support for the Atmel AT42QT1070 QTouch sensor, which supports 7 capacitive buttons.
It was developed using a Grove-Q Touch Sensor board.
Public Member Functions | |
| AT42QT1070 (int bus, uint8_t address=AT42QT1070_DEFAULT_I2C_ADDR) | |
| ~AT42QT1070 () | |
| bool | writeByte (uint8_t reg, uint8_t byte) | 
| bool | writeWord (uint8_t reg, uint16_t word) | 
| uint8_t | readByte (uint8_t reg) | 
| uint16_t | readWord (uint8_t reg) | 
| uint8_t | readChipID (void) | 
| void | updateState () | 
| uint8_t | getLPMode (void) | 
| uint8_t | setLPMode (uint8_t mode) | 
| uint8_t | getAVE (uint8_t key) | 
| uint8_t | setAVE (uint8_t key, uint8_t ave) | 
| uint8_t | getAKSGroup (uint8_t key) | 
| uint8_t | setAKSGroup (uint8_t key, uint8_t group) | 
| bool | isOverflowed () | 
| bool | isCalibrating () | 
| bool | reset () | 
| bool | calibrate () | 
| uint8_t | getButtons () | 
| AT42QT1070 | ( | int | bus, | 
| uint8_t | address = AT42QT1070_DEFAULT_I2C_ADDR  | 
        ||
| ) | 
AT42QT1070 constructor
| bus | I2C bus to use | 
| address | Address for this sensor | 
| ~AT42QT1070 | ( | ) | 
AT42QT1070 destructor
| bool writeByte | ( | uint8_t | reg, | 
| uint8_t | byte | ||
| ) | 
Writes a byte value into the register
| reg | Register location to write into | 
| byte | Byte to write | 
| bool writeWord | ( | uint8_t | reg, | 
| uint16_t | word | ||
| ) | 
Writes a word value into the register. Note: the device must have the auto-increment bit set in the MODE1 register to work.
| reg | Register location to write into | 
| word | Word to write | 
| uint8_t readByte | ( | uint8_t | reg | ) | 
Read a byte value from the register
| reg | Register location to read from | 
| uint16_t readWord | ( | uint8_t | reg | ) | 
Read a word value from the register. Note: the device must have the auto-increment bit set in the MODE1 register to work.
| reg | Register location to read from | 
| uint8_t readChipID | ( | void | ) | 
Reads the Chip ID register on the sensor
| void updateState | ( | ) | 
Reads the current touch status and detection state
| uint8_t getLPMode | ( | void | ) | 
Reads the current low-power mode setting
| uint8_t setLPMode | ( | uint8_t | mode | ) | 
Changes the low-pomer mode setting on the sensor
| mode | dDsired new mode | 
| uint8_t getAVE | ( | uint8_t | key | ) | 
Reads the current averaging factor setting for a key
| key | Key being read | 
| uint8_t setAVE | ( | uint8_t | key, | 
| uint8_t | ave | ||
| ) | 
Changes the averaging factor setting for a key
| key | Key being changed | 
| ave | New averaging factor | 
| uint8_t getAKSGroup | ( | uint8_t | key | ) | 
Reads the AKS group of which a key is part
| key | Key (0-6) being queried | 
| uint8_t setAKSGroup | ( | uint8_t | key, | 
| uint8_t | group | ||
| ) | 
Changes the AKS group of which a key is part
| key | Key (0-6) being changed | 
| group | New group for the key | 
      
  | 
  inline | 
Returns the overflow indicator
      
  | 
  inline | 
Returns the calibrating indicator
| bool reset | ( | ) | 
Issues a reset command
| bool calibrate | ( | ) | 
Issues a calibrate command
      
  | 
  inline | 
Gets the current button states
 1.8.6