capsense.h

Go to the documentation of this file.
00001 /**************************************************************************/
00035 #ifndef __CAPSENSE_H_
00036 #define __CAPSENSE_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  CAPSENSE_getSegmentChannel(uint8_t capSegment);
00056 uint8_t  CAPSENSE_getButtonChannel(void);
00057 uint32_t CAPSENSE_getVal(uint8_t channel);
00058 uint32_t CAPSENSE_getNormalizedVal(uint8_t channel);
00059 bool CAPSENSE_getPressed(uint8_t channel);
00060 int32_t CAPSENSE_getSliderPosition(void);
00061 void CAPSENSE_Sense(void);
00062 void CAPSENSE_Init(void);
00063 
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067 
00071 #endif /* __CAPSENSE_H_ */