EFM32 Wonder Gecko Software Documentation  efm32wg-doc-5.1.2
capsense.h
Go to the documentation of this file.
1 /**************************************************************************/
18 #ifndef __CAPSENSE_H_
19 #define __CAPSENSE_H_
20 
21 #include <stdint.h>
22 #include <stdbool.h>
23 #include "capsenseconfig.h"
24 
25 /***************************************************************************/
30 /***************************************************************************/
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 uint32_t CAPSENSE_getVal(uint8_t channel);
40 uint32_t CAPSENSE_getNormalizedVal(uint8_t channel);
41 bool CAPSENSE_getPressed(uint8_t channel);
42 int32_t CAPSENSE_getSliderPosition(void);
43 void CAPSENSE_Sense(void);
44 void CAPSENSE_Init(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
53 #endif /* __CAPSENSE_H_ */
uint32_t CAPSENSE_getVal(uint8_t channel)
Get the current channelValue for a channel.
Definition: capsense.c:121
bool CAPSENSE_getPressed(uint8_t channel)
Get the state of the Gecko Button.
Definition: capsense.c:143
void CAPSENSE_Init(void)
Initializes the capacitive sense system.
Definition: capsense.c:290
int32_t CAPSENSE_getSliderPosition(void)
Get the position of the slider.
Definition: capsense.c:164
void CAPSENSE_Sense(void)
This function iterates through all the capsensors and reads and initiates a reading. Uses EM1 while waiting for the result from each sensor.
Definition: capsense.c:250
uint32_t CAPSENSE_getNormalizedVal(uint8_t channel)
Get the current normalized channelValue for a channel.
Definition: capsense.c:131