iqs620

group iqs620

Driver for the IQS620 hall effect, proximity sensor.

https://www.azoteq.com/images/stories/pdf/iqs620_datasheet.pdf The interrupt line indicates that there is an event pending, that the MCU queries over I²C. There are 2 touch buttons on the Monocle, each triggering these events:

  • TOUCH_GESTURE_TAP : 0.25s

  • TOUCH_GESTURE_DOUBLETAP : 0.25s (Both Tapped)

  • TOUCH_GESTURE_PRESS : 0.5s

  • TOUCH_GESTURE_LONGPRESS : 9.5s

  • TOUCH_GESTURE_LONGBOTH : 9.5s (Both Pressed)

Functions

void iqs620_init(void)

Initialise the chip as well as the iqs620 instance.

void iqs620_reset(void)
void iqs620_callback_button_pressed(uint8_t button)
void iqs620_callback_button_released(uint8_t button)
uint32_t iqs620_get_id(void)

Get the product number ID.

uint16_t iqs620_get_count(uint8_t channel)

Get the raw counts for tuning thresholds.

Parameters

channel – Sensor channel number to read the data from