EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
cpt112s_i2c.h File Reference

Detailed Description

Driver for retrieving capsense button and slider inputs from CPT112S.

Version
5.1.1

License

Copyright 2015 Silicon Labs, Inc. http://www.silabs.com

This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file cpt112s_i2c.h.

#include <stdint.h>

Go to the source code of this file.

Macros

#define CPT112S_I2C_ADDRESS   0xE0
 
#define CPT112S_I2C_RELEASE_EVENT   1
 
#define CPT112S_I2C_RXBUFFER_SIZE   3
 
#define CPT112S_I2C_SLIDER_ACTIVITY   2
 
#define CPT112S_I2C_TOUCH_EVENT   0
 

Functions

uint16_t CPT112S_getCapsenseCurrent (void)
 
uint16_t CPT112S_getCapsensePrevious (void)
 
uint16_t CPT112S_getSliderCurrent (void)
 
uint16_t CPT112S_getSliderPrevious (void)
 
void CPT112S_init (void)
 
void CPT112S_update (void)