Cypress CapSense Middleware Library 2.0
CapSense Structures

General Description

The CapSense structures.

Data Structures

struct  cy_stc_capsense_adaptive_filter_config_t
 Declares Adaptive Filter configuration parameters. More...
 
struct  cy_stc_capsense_advanced_centroid_config_t
 Declares Advanced Centroid configuration parameters. More...
 
struct  cy_stc_capsense_position_t
 Declares position structure that keep information of a single touch. More...
 
struct  cy_stc_capsense_touch_t
 Declares touch structure used to store positions of Touchpad, Matrix buttons and Slider widgets. More...
 
struct  cy_stc_capsense_auto_tune_config_t
 Declares HW SmartSense data structure for CSD widgets. More...
 
struct  cy_stc_capsense_smartsense_csd_noise_envelope_t
 Declares Noise envelope data structure for CSD widgets when SmartSense is enabled. More...
 
struct  cy_stc_capsense_smartsense_update_thresholds_t
 Declares Update Thresholds structure. More...
 
struct  cy_stc_capsense_ballistic_config_t
 Declares Ballistics Multiplier Configuration data structure. More...
 
struct  cy_stc_capsense_ballistic_context_t
 Declares Ballistics Multiplier Configuration data structure. More...
 
struct  cy_stc_capsense_ballistic_delta_t
 Declares Ballistic Displacement structure. More...
 
struct  cy_stc_capsense_sensor_context_t
 Sensor context structure. More...
 
struct  cy_stc_capsense_csx_touch_history_t
 CSX Touchpad touch tracking history. More...
 
struct  cy_stc_capsense_csx_touch_buffer_t
 Internal CSX Touchpad buffer structure for CSX for Touchpads' processing. More...
 
struct  cy_stc_capsense_widget_context_t
 Widget context structure. More...
 
struct  cy_stc_capsense_pin_config_t
 Pin configuration structure. More...
 
struct  cy_stc_capsense_electrode_config_t
 Electrode objects configuration structure. More...
 
struct  cy_stc_capsense_advanced_touchpad_config_t
 Configuration structure of advanced touchpad. More...
 
struct  cy_stc_capsense_widget_config_t
 Widget configuration structure. More...
 
struct  cy_stc_capsense_idac_gain_table_t
 Declares the IDAC gain table. More...
 
struct  cy_stc_capsense_common_config_t
 Common configuration structure. More...
 
struct  cy_stc_active_scan_sns_t
 Declares active sensor details. More...
 
struct  cy_stc_capsense_internal_context_t
 Declares internal Context Data Structure. More...
 
struct  cy_stc_capsense_common_context_t
 Declares top-level Context Data Structure. More...
 
struct  cy_stc_capsense_context_t
 Declares top-level CapSense context data structure. More...
 
struct  cy_stc_capsense_fptr_config_t
 Function pointers configuration structure. More...
 

Typedefs

typedef void(* cy_capsense_callback_t) (cy_stc_active_scan_sns_t *ptrActiveScan)
 Provides the typedef for the callback function that is intended to be called when the cy_en_capsense_callback_event_t events occurs.
 
typedef void(* cy_capsense_tuner_send_callback_t) (void *context)
 Provides the typedef for the callback function that is called by the Cy_CapSense_RunTuner() function to establish communication with the CapSense Tuner tool to monitor CapSense operation. More...
 
typedef void(* cy_capsense_tuner_receive_callback_t) (uint8_t **commandPacket, uint8_t **tunerPacket, void *context)
 Provides the typedef for the callback function that is called by the Cy_CapSense_RunTuner() function to establish communication with the CapSense Tuner tool to support life-time tunning. More...
 
typedef void(* cy_func_capsense_csd_setup_widget_ptr_t) (uint32_t widgetId, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSDSetupWidget() function.
 
typedef void(* cy_func_capsense_csd_scan_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSDScan() function.
 
typedef uint32_t(* cy_func_capsense_dp_process_csd_widget_raw_counts_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsdWidgetRawCounts() function.
 
typedef void(* cy_func_capsense_dp_process_csd_widget_status_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsdWidgetStatus() function.
 
typedef void(* cy_func_capsense_csd_disable_mode_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSDDisableMode() function.
 
typedef void(* cy_func_capsense_csd_initialize_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSDInitialize() function.
 
typedef void(* cy_func_capsense_csd_scan_isr_ptr_t) (void *capsenseContext)
 The type of a pointer to the Cy_CapSense_CSDScanISR() function.
 
typedef void(* cy_func_capsense_csx_setup_widget_ptr_t) (uint32_t widgetId, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSXSetupWidget() function.
 
typedef void(* cy_func_capsense_csx_scan_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSXScan() function.
 
typedef uint32_t(* cy_capsense_dp_process_csx_widget_raw_counts_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsxWidgetRawCounts() function.
 
typedef void(* cy_func_capsense_dp_process_csx_widget_status_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsxWidgetStatus() function.
 
typedef void(* cy_func_capsense_csx_initialize_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSXInitialize() function.
 
typedef void(* cy_func_capsense_csx_disablemode_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSXDisableMode() function.
 
typedef void(* cy_func_capsense_csx_scan_isr_ptr_t) (void *capsenseContext)
 The type of a pointer to the Cy_CapSense_CSXScanISR() function.
 
typedef void(* cy_func_capsense_adaptive_filter_initialize_lib_ptr_t) (const cy_stc_capsense_adaptive_filter_config_t *config, cy_stc_capsense_position_t *context)
 The type of a pointer to the Cy_CapSense_AdaptiveFilterInitialize_Lib() function.
 
typedef void(* cy_func_capsense_adaptive_filter_run_lib_ptr_t) (const cy_stc_capsense_adaptive_filter_config_t *config, cy_stc_capsense_position_t *context, uint32_t *currentX, uint32_t *currentY)
 The type of a pointer to the Cy_CapSense_AdaptiveFilterRun_Lib() function.
 
typedef void(* cy_func_capsense_ballistic_multiplier_lib_ptr_t) (const cy_stc_capsense_ballistic_config_t *config, const cy_stc_capsense_touch_t *touch, cy_stc_capsense_ballistic_delta_t *delta, uint32_t timestamp, cy_stc_capsense_ballistic_context_t *context)
 The type of a pointer to the Cy_CapSense_BallisticMultiplier_Lib() function.
 
typedef void(* cy_func_capsense_initialize_all_filters_ptr_t) (const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_InitializeAllFilters() function.
 
typedef void(* cy_func_capsense_ft_run_enabled_filters_internal_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_sensor_context_t *ptrSnsContext, uint16_t *ptrSnsRawHistory, uint8_t *ptrSnsRawHistoryLow)
 The type of a pointer to the Cy_CapSense_FtRunEnabledFiltersInternal() function.
 
typedef void(* cy_func_capsense_process_position_filters_ptr_t) (cy_stc_capsense_touch_t *newTouch, const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_ProcessPositionFilters() function.
 
typedef void(* cy_func_capsense_run_position_filters_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_position_t *ptrInput, cy_stc_capsense_position_t *ptrHistory, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_RunPositionFilters() function.
 
typedef void(* cy_func_capsense_init_position_filters_ptr_t) (uint32_t filterConfig, const cy_stc_capsense_position_t *ptrInput, cy_stc_capsense_position_t *ptrHistory)
 The type of a pointer to the Cy_CapSense_InitPositionFilters() function.
 
typedef void(* cy_func_capsense_dp_process_button_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessButton() function.
 
typedef void(* cy_func_capsense_dp_process_slider_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessSlider() function.
 
typedef void(* cy_func_capsense_dp_process_csd_matrix_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsdMatrix() function.
 
typedef void(* cy_func_capsense_dp_process_csd_touchpad_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsdTouchpad() function.
 
typedef void(* cy_func_capsense_dp_advanced_centroid_touchpad_ptr_t) (cy_stc_capsense_touch_t *newTouch, const cy_stc_capsense_widget_config_t *ptrWdConfig)
 The type of a pointer to the Cy_CapSense_DpAdvancedCentroidTouchpad() function.
 
typedef void(* cy_func_capsense_dp_process_proximity_ptr_t) (cy_stc_capsense_widget_config_t const *ptrWdConfig)
 The type of a pointer to the Cy_CapSense_DpProcessProximity() function.
 
typedef void(* cy_func_capsense_dp_process_csx_touchpad_ptr_t) (const cy_stc_capsense_widget_config_t *ptrWdConfig, const cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_DpProcessCsxTouchpad() function.
 
typedef cy_status(* cy_func_capsense_calibrate_all_csd_widgets_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CalibrateAllCsdWidgets() function.
 
typedef cy_status(* cy_func_capsense_csd_calibrate_widget_ptr_t) (uint32_t widgetId, uint32_t target, cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CSDCalibrateWidget() function.
 
typedef cy_status(* cy_func_capsense_calibrate_all_csx_widgets_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_CalibrateAllCsxWidgets() function.
 
typedef cy_status(* cy_func_capsense_ss_auto_tune_ptr_t) (cy_stc_capsense_context_t *context)
 The type of a pointer to the Cy_CapSense_SsAutoTune() function.
 
typedef void(* cy_func_capsense_run_noise_envelope_lib_ptr_t) (uint16_t rawCount, uint16_t sigPFC, cy_stc_capsense_smartsense_csd_noise_envelope_t *ptrNoiseEnvelope)
 The type of a pointer to the Cy_CapSense_RunNoiseEnvelope_Lib() function.
 
typedef void(* cy_func_capsense_dp_update_thresholds_ptr_t) (cy_stc_capsense_widget_context_t *ptrWdContext, const cy_stc_capsense_smartsense_csd_noise_envelope_t *ptrNoiseEnvelope, uint32_t startFlag)
 The type of a pointer to the Cy_CapSense_DpUpdateThresholds() function.
 
typedef void(* cy_func_capsense_initialize_noise_envelope_lib_ptr_t) (uint16_t rawCount, uint16_t sigPFC, cy_stc_capsense_smartsense_csd_noise_envelope_t *ptrNoiseEnvelope)
 The type of a pointer to the Cy_CapSense_InitializeNoiseEnvelope_Lib() function.
 

Typedef Documentation

◆ cy_capsense_tuner_send_callback_t

typedef void(* cy_capsense_tuner_send_callback_t) (void *context)

Provides the typedef for the callback function that is called by the Cy_CapSense_RunTuner() function to establish communication with the CapSense Tuner tool to monitor CapSense operation.

Refer to Callbacks section.

◆ cy_capsense_tuner_receive_callback_t

typedef void(* cy_capsense_tuner_receive_callback_t) (uint8_t **commandPacket, uint8_t **tunerPacket, void *context)

Provides the typedef for the callback function that is called by the Cy_CapSense_RunTuner() function to establish communication with the CapSense Tuner tool to support life-time tunning.

Refer to Callbacks section.