00001 /**************************************************************************/ 00035 #ifndef __CAPLESENSE_H_ 00036 #define __CAPLESENSE_H_ 00037 00038 #include <stdint.h> 00039 #include <stdbool.h> 00040 00041 /***************************************************************************/ 00046 /***************************************************************************/ 00051 #ifdef __cplusplus 00052 extern "C" { 00053 #endif 00054 00055 uint8_t CAPLESENSE_getSegmentChannel(uint8_t capSegment); 00056 uint32_t CAPLESENSE_getVal(uint8_t channel); 00057 uint32_t CAPLESENSE_getNormalizedVal(uint8_t channel); 00058 int32_t CAPLESENSE_getSliderPosition(void); 00059 void CAPLESENSE_Init(bool sleep); 00060 void CAPLESENSE_setupLESENSE(bool sleep); 00061 void CAPLESENSE_setupCallbacks(void (*scanCb)(void), void (*chCb)(void)); 00062 void CAPLESENSE_Sleep(void); 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00071 #endif /* __CAPSENSE_H_ */