00001 /**************************************************************************/ 00018 #ifndef __CAPLESENSE_H_ 00019 #define __CAPLESENSE_H_ 00020 00021 #include <stdint.h> 00022 #include <stdbool.h> 00023 00024 /***************************************************************************/ 00029 /***************************************************************************/ 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 uint8_t CAPLESENSE_getSegmentChannel(uint8_t capSegment); 00039 uint32_t CAPLESENSE_getVal(uint8_t channel); 00040 uint32_t CAPLESENSE_getNormalizedVal(uint8_t channel); 00041 int32_t CAPLESENSE_getSliderPosition(void); 00042 void CAPLESENSE_Init(bool sleep); 00043 void CAPLESENSE_setupLESENSE(bool sleep); 00044 void CAPLESENSE_setupCallbacks(void (*scanCb)(void), void (*chCb)(void)); 00045 void CAPLESENSE_Sleep(void); 00046 00047 #ifdef __cplusplus 00048 } 00049 #endif 00050 00054 #endif /* __CAPSENSE_H_ */