1 //------------------------------------------------------------------------------ 2 // Copyright 2012 (c) Silicon Laboratories Inc. 3 // 4 // SPDX-License-Identifier: Zlib 5 // 6 // This siHAL software is provided 'as-is', without any express or implied 7 // warranty. In no event will the authors be held liable for any damages 8 // arising from the use of this software. 9 // 10 // Permission is granted to anyone to use this software for any purpose, 11 // including commercial applications, and to alter it and redistribute it 12 // freely, subject to the following restrictions: 13 // 14 // 1. The origin of this software must not be misrepresented; you must not 15 // claim that you wrote the original software. If you use this software 16 // in a product, an acknowledgment in the product documentation would be 17 // appreciated but is not required. 18 // 2. Altered source versions must be plainly marked as such, and must not be 19 // misrepresented as being the original software. 20 // 3. This notice may not be removed or altered from any source distribution. 21 //------------------------------------------------------------------------------ 22 23 // Version: 1 24 25 #ifndef __SI32_CAPSENSE_A_SUPPORT_H__ 26 #define __SI32_CAPSENSE_A_SUPPORT_H__ 27 28 #include <stdint.h> 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 //----------------------------------------------------------------------------- 35 // Define Conversion Rate Enum type 36 37 typedef enum SI32_CAPSENSE_A_CONVERSION_RATE_Enum 38 { 39 SI32_CAPSENSE_A_CONVERSION_RATE_12_CLOCKS_12_BITS = 0, 40 SI32_CAPSENSE_A_CONVERSION_RATE_13_CLOCKS_13_BITS = 1, 41 SI32_CAPSENSE_A_CONVERSION_RATE_14_CLOCKS_14_BITS = 2, 42 SI32_CAPSENSE_A_CONVERSION_RATE_16_CLOCKS_16_BITS = 3 43 } SI32_CAPSENSE_A_CONVERSION_RATE_Enum_Type; 44 45 //----------------------------------------------------------------------------- 46 // Define Accumulator Mode Enum type 47 48 typedef enum SI32_CAPSENSE_A_ACCUMULATOR_MODE_Enum 49 { 50 SI32_CAPSENSE_A_ACCUMULATOR_MODE_1_SAMPLE = 0, 51 SI32_CAPSENSE_A_ACCUMULATOR_MODE_4_SAMPLES = 1, 52 SI32_CAPSENSE_A_ACCUMULATOR_MODE_8_SAMPLES = 2, 53 SI32_CAPSENSE_A_ACCUMULATOR_MODE_16_SAMPLES = 3, 54 SI32_CAPSENSE_A_ACCUMULATOR_MODE_32_SAMPLES = 4, 55 SI32_CAPSENSE_A_ACCUMULATOR_MODE_64_SAMPLES = 5 56 } SI32_CAPSENSE_A_ACCUMULATOR_MODE_Enum_Type; 57 58 //----------------------------------------------------------------------------- 59 // Define Pin Monitor Mode Enum type 60 61 typedef enum SI32_CAPSENSE_A_PIN_MONITOR_MODE_Enum 62 { 63 SI32_CAPSENSE_A_PIN_MONITOR_MODE_RETRY_ON_PIN_STATE_CHANGE = 0, 64 SI32_CAPSENSE_A_PIN_MONITOR_MODE_RETRY_UP_TO_TWICE = 1, 65 SI32_CAPSENSE_A_PIN_MONITOR_MODE_RETRY_UP_TO_4_TIMES = 2, 66 SI32_CAPSENSE_A_PIN_MONITOR_MODE_IGNORE_STATE_CHANGE = 3 67 } SI32_CAPSENSE_A_PIN_MONITOR_MODE_Enum_Type; 68 69 #ifdef __cplusplus 70 } 71 #endif 72 73 #endif // __SI32_CAPSENSE_A_SUPPORT_H__ 74 75 //-eof-------------------------------------------------------------------------- 76