mpr121_touchkey.h 527 B

1234567891011121314151617181920
  1. /* Header file for Freescale MPR121 Capacitive Touch Sensor */
  2. #ifndef _MPR121_TOUCHKEY_H
  3. #define _MPR121_TOUCHKEY_H
  4. /**
  5. * struct mpr121_platform_data - platform data for mpr121 sensor
  6. * @keymap: pointer to array of KEY_* values representing keymap
  7. * @keymap_size: size of the keymap
  8. * @wakeup: configure the button as a wake-up source
  9. * @vdd_uv: VDD voltage in uV
  10. */
  11. struct mpr121_platform_data {
  12. const unsigned short *keymap;
  13. unsigned int keymap_size;
  14. bool wakeup;
  15. int vdd_uv;
  16. };
  17. #endif /* _MPR121_TOUCHKEY_H */