|
| 1 | +/***************************************************************************//** |
| 2 | +* \file cy_capsense_centroid.h |
| 3 | +* \version 1.1 |
| 4 | +* |
| 5 | +* \brief |
| 6 | +* This file provides the function prototypes for the centroid calculation |
| 7 | +* methods. |
| 8 | +* |
| 9 | +******************************************************************************** |
| 10 | +* \copyright |
| 11 | +* Copyright 2018-2019 Cypress Semiconductor Corporation |
| 12 | +* |
| 13 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 14 | +* you may not use this file except in compliance with the License. |
| 15 | +* You may obtain a copy of the License at |
| 16 | +* |
| 17 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 18 | +* |
| 19 | +* Unless required by applicable law or agreed to in writing, software |
| 20 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 21 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 22 | +* See the License for the specific language governing permissions and |
| 23 | +* limitations under the License. |
| 24 | +*******************************************************************************/ |
| 25 | + |
| 26 | +#if !defined(CY_CAPSENSE_CENTROID_H) |
| 27 | +#define CY_CAPSENSE_CENTROID_H |
| 28 | + |
| 29 | +#include "cy_capsense_lib.h" |
| 30 | +#include "cy_capsense_common.h" |
| 31 | +#include "cy_capsense_structure.h" |
| 32 | + |
| 33 | +#if defined(__cplusplus) |
| 34 | +extern "C" { |
| 35 | +#endif |
| 36 | + |
| 37 | + |
| 38 | +/******************************************************************************* |
| 39 | +* Function Prototypes |
| 40 | +*******************************************************************************/ |
| 41 | + |
| 42 | +/******************************************************************************* |
| 43 | +* Function Prototypes - internal functions |
| 44 | +*******************************************************************************/ |
| 45 | + |
| 46 | +/******************************************************************************/ |
| 47 | +/** \cond SECTION_CAPSENSE_INTERNAL */ |
| 48 | +/** \addtogroup group_capsense_internal *//** \{ */ |
| 49 | +/******************************************************************************/ |
| 50 | + |
| 51 | +void Cy_CapSense_DpCentroidLinear( |
| 52 | + cy_stc_capsense_touch_t * newTouch, |
| 53 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 54 | +void Cy_CapSense_DpCentroidRadial( |
| 55 | + cy_stc_capsense_touch_t * newTouch, |
| 56 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 57 | +void Cy_CapSense_DpCentroidDiplex( |
| 58 | + cy_stc_capsense_touch_t * newTouch, |
| 59 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 60 | +void Cy_CapSense_DpCentroidTouchpad( |
| 61 | + cy_stc_capsense_touch_t * newTouch, |
| 62 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 63 | +void Cy_CapSense_DpAdvancedCentroidTouchpad( |
| 64 | + cy_stc_capsense_touch_t * newTouch, |
| 65 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 66 | +void Cy_CapSense_DpFindLocalMaxDd( |
| 67 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 68 | +void Cy_CapSense_DpCalcTouchPadCentroid( |
| 69 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 70 | +void Cy_CapSense_DpTouchTracking( |
| 71 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 72 | +void Cy_CapSense_DpFilterTouchRecord( |
| 73 | + const cy_stc_capsense_widget_config_t * ptrWdConfig); |
| 74 | +void Cy_CapSense_InitPositionFilters( |
| 75 | + uint32_t filterConfig, |
| 76 | + const cy_stc_capsense_position_t * ptrInput, |
| 77 | + cy_stc_capsense_position_t * ptrHistory); |
| 78 | +void Cy_CapSense_RunPositionFilters( |
| 79 | + const cy_stc_capsense_widget_config_t * ptrWdConfig, |
| 80 | + cy_stc_capsense_position_t * ptrInput, |
| 81 | + cy_stc_capsense_position_t * ptrHistory); |
| 82 | +void Cy_CapSense_RunPositionFiltersRadial( |
| 83 | + const cy_stc_capsense_widget_config_t * ptrWdConfig, |
| 84 | + cy_stc_capsense_position_t * ptrInput, |
| 85 | + cy_stc_capsense_position_t * ptrHistory); |
| 86 | +void Cy_CapSense_ProcessPositionFilters( |
| 87 | + cy_stc_capsense_touch_t * newTouch, |
| 88 | + const cy_stc_capsense_widget_config_t * ptrWdConfig, |
| 89 | + cy_stc_capsense_context_t * context); |
| 90 | + |
| 91 | +/** \} \endcond */ |
| 92 | + |
| 93 | +#if defined(__cplusplus) |
| 94 | +} |
| 95 | +#endif |
| 96 | + |
| 97 | +#endif /* CY_CAPSENSE_CENTROID_H */ |
| 98 | + |
| 99 | + |
| 100 | +/* [] END OF FILE */ |
0 commit comments