EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
caplesense.h
Go to the documentation of this file.
1 /**************************************************************************/
18 #ifndef __CAPLESENSE_H_
19 #define __CAPLESENSE_H_
20 
21 #include <stdint.h>
22 #include <stdbool.h>
23 
24 /***************************************************************************/
29 /***************************************************************************/
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 uint8_t CAPLESENSE_getSegmentChannel(uint8_t capSegment);
39 uint32_t CAPLESENSE_getVal(uint8_t channel);
40 uint32_t CAPLESENSE_getNormalizedVal(uint8_t channel);
41 int32_t CAPLESENSE_getSliderPosition(void);
42 void CAPLESENSE_Init(bool sleep);
43 void CAPLESENSE_setupLESENSE(bool sleep);
44 void CAPLESENSE_setupCallbacks(void (*scanCb)(void), void (*chCb)(void));
45 void CAPLESENSE_Sleep(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
54 #endif /* __CAPSENSE_H_ */
uint32_t CAPLESENSE_getVal(uint8_t channel)
Get the current channelValue for a channel.
Definition: caplesense.c:445
void CAPLESENSE_Sleep(void)
Send the capacative sense system to sleep mode.
Definition: caplesense.c:525
uint32_t CAPLESENSE_getNormalizedVal(uint8_t channel)
Get the current normalized channelValue for a channel.
Definition: caplesense.c:455
void CAPLESENSE_setupCallbacks(void(*scanCb)(void), void(*chCb)(void))
LESENSE callback setup.
Definition: caplesense.c:347
void CAPLESENSE_setupLESENSE(bool sleep)
Setup the LESENSE for capavitive sensing.
Definition: caplesense.c:171
int32_t CAPLESENSE_getSliderPosition(void)
Get the position of the slider.
Definition: caplesense.c:468
void CAPLESENSE_Init(bool sleep)
Initializes the capacative sense system without LESENSE.
Definition: caplesense.c:536
uint8_t CAPLESENSE_getSegmentChannel(uint8_t capSegment)
Get the channelValue for a sensor segment.
Definition: caplesense.c:416