Declares internal Context Data Structure.
Data Fields | |
cy_capsense_callback_t | ptrSSCallback |
Pointer to a user's Start Sample callback function. More... | |
cy_capsense_callback_t | ptrEOSCallback |
Pointer to a user's End Of Scan callback function. More... | |
cy_capsense_tuner_send_callback_t | ptrTunerSendCallback |
Pointer to a user's tuner callback function. More... | |
cy_capsense_tuner_receive_callback_t | ptrTunerReceiveCallback |
Pointer to a user's tuner callback function. More... | |
void(* | ptrISRCallback )(void *context) |
Pointer to the scan interrupt handler. | |
uint32_t | csdRegConfig |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwHsPSelScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwHsPSelCmodInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwHsPSelCtankInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwBypSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwResScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwResInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwDsiSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegAmuxbufInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwAmuxbufSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwShieldSelScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegHscmpInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegHscmpScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdIdacAConfig |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdIdacBConfig |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwCmpPSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwCmpNSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegIoSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegRefgen |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csdRegSwRefGenSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegConfigInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegConfigScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegSwResInit |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegSwResPrech |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegSwResScan |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegAMuxBuf |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegRefgen |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegRefgenSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegSwCmpNSel |
Internal pre-calculated data for faster operation. More... | |
uint32_t | csxRegSwRefGenSel |
Internal pre-calculated data for faster operation. More... | |
uint16_t | csdVrefVoltageMv |
Internal pre-calculated data for faster operation. More... | |
uint8_t | csdCmodConnection |
Internal pre-calculated data for faster operation. More... | |
uint8_t | csdCshConnection |
Internal pre-calculated data for faster operation. More... | |
uint8_t | csdVrefGain |
Internal pre-calculated data for faster operation. More... | |
cy_capsense_ds_init_callback_t | ptrEODsInitCallback |
Pointer to a user's End Of Data Structure Initialization callback function. More... | |
uint32_t | snsCtlReg [1] |
Keeps value of non-retention SNS_CTL register for LFT mode. | |
uint32_t | activeWakeupTimer |
The wakeup timer value for the ACTIVE scan mode in microseconds. More... | |
uint32_t | activeWakeupTimerCycles |
The wakeup timer value for the ACTIVE scan mode in ILO cycles. More... | |
uint32_t | wotScanInterval |
Scan refresh interval (us) while in Wake-on-Touch mode. More... | |
uint32_t | wotScanIntervalCycles |
The scan refresh interval value for the Wake-on-Touch scan mode in ILO cycles. More... | |
uint32_t | iloCompensationFactor |
The ILO compensation factor value, calculated as actual ILO frequency (Hz) * 2^14 / 1000000. More... | |
uint16_t | numCoarseInitChargeCycles |
Configure duration of Cmod initialization, phase 1. More... | |
uint16_t | numCoarseInitSettleCycles |
Configure duration of Cmod initialization, phase 2. More... | |
uint16_t | currentSlotIndex |
Current slot ID. More... | |
uint16_t | endSlotIndex |
The last slot ID for the current frame. More... | |
uint16_t | numValidSlots |
Number of valid slots. More... | |
uint16_t | firstValidSlot |
The first valid slots ID. More... | |
uint16_t | lfsrPoly |
LFSR Polynomial. More... | |
uint16_t | numFineInitWaitCycles |
Number of ProDummy Wait Cycles. More... | |
uint16_t | numEpiCycles |
Number of clk_mod cycles to be run during EPILOGUE. More... | |
uint16_t | numProWaitKrefDelayPrs |
Number of Kref/4 ProDummy Wait Cycles if PRS is enabled. More... | |
uint16_t | numProWaitKrefDelay |
Number of Kref/4 ProDummy Wait Cycles if PRS is disabled. More... | |
uint16_t | numEpiKrefDelayPrs |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is enabled. More... | |
uint16_t | numEpiKrefDelay |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is disabled. More... | |
uint16_t | numSlots |
The number of slots in the current frame. More... | |
uint16_t | startSlotIndex |
The start slot ID for the current scan. More... | |
uint16_t | wotTimeout |
The number of frames to be scanned in Wake-on-Touch mode when there is no touch. More... | |
uint8_t | intrIsxInactSnsConn |
Internal inactive electrode connection for ISX scan: More... | |
uint8_t | numFineInitCycles |
Number of ProDummy SubConversions. More... | |
uint8_t | lfsrScale |
LFSR Scale value. More... | |
uint8_t | cdacDitherSeed |
Dither CDAC Seed. More... | |
uint8_t | cdacDitherPoly |
Dither CDAC Polynomial. More... | |
uint8_t | modClk |
The modulator clock divider. More... | |
uint8_t | scanSingleSlot |
Request of scanning just one slot with keeping HW configuration after scan: More... | |
uint8_t | numProOffsetCycles |
Maximum number of clk_mod cycles for the PRO_OFFSET state. More... | |
uint8_t | proOffsetCdacComp |
Compensation CAPDAC size during PRO_OFFSET. More... | |
uint8_t | hwConfigState |
Contains the current hw state, it is configured or not and if yes then to what operation. More... | |
uint8_t | slotAutoCalibrMode |
The slot auto-calibration mode: More... | |
uint8_t | intrCsdRawTarget |
Internal auto-calibration target in percentage for CSD widgets. More... | |
uint8_t | intrCsxRawTarget |
Internal auto-calibration target in percentage for CSX widgets. More... | |
uint8_t | intrIsxRawTarget |
Internal auto-calibration target in percentage for ISX widgets. More... | |
uint8_t | numSenseMethod |
The number of sense methods, used in the project. More... | |
uint8_t | mapSenseMethod [CY_CAPSENSE_REG_MODE_NUMBER] |
The map array of sense methods, used in the project. More... | |
uint8_t | csdCdacDitherEn |
Enabled CDAC dithering for CSD sensing method. More... | |
uint8_t | csxCdacDitherEn |
Enabled CDAC dithering for CSX sensing method. More... | |
uint8_t | isxCdacDitherEn |
Enabled CDAC dithering for ISX sensing method. More... | |
uint8_t | bslnCoefSlow |
Baseline IIR filter coefficient (slow) for Low power widget. More... | |
uint8_t | bslnCoefFast |
Baseline IIR filter coefficient (fast) for Low power widget. More... | |
uint8_t | bslnUpdateDelay |
Specifies the value from which timer is decremented from on consecutive scans where the baseline update IIR produces a zero. More... | |
uint8_t | iirCoeffLp |
Rawcount IIR filter coefficient for Low power widget. More... | |
uint8_t | firstActSubFrame |
The flag for a first Active sub-frame. More... | |
uint8_t | numFunc |
The number of pin functions, used in the project. More... | |
uint8_t | mapPinState [CY_CAPSENSE_CTRLMUX_PIN_STATE_NUMBER] |
The map array of CTRLMUX pin functions, used in the project. More... | |
uint8_t | operatingMode |
The internal fifth-generation low power CAPSENSE™ HW block operating mode. More... | |
uint8_t | mrssStateAfterScan |
Defines the MRSS state after scan frame is complete. More... | |
uint8_t | repeatScanEn |
Defines if repeating the previous scan is allowed for the RepeatScan() function usage. | |
uint8_t | intrCsdInactSnsConn |
Internal inactive electrode connection for CSD scan: More... | |
uint8_t | intrCsxInactSnsConn |
Internal inactive electrode connection for CSX scan: More... | |
uint8_t | hwIirInit |
Flag to reset/initialize HW IIR filter for active widgets during calibration, first scan, etc. More... | |
cy_capsense_callback_t cy_stc_capsense_internal_context_t::ptrSSCallback |
Pointer to a user's Start Sample callback function.
Refer to Callbacks section
cy_capsense_callback_t cy_stc_capsense_internal_context_t::ptrEOSCallback |
Pointer to a user's End Of Scan callback function.
Refer to Callbacks section
cy_capsense_tuner_send_callback_t cy_stc_capsense_internal_context_t::ptrTunerSendCallback |
Pointer to a user's tuner callback function.
Refer to Callbacks section
cy_capsense_tuner_receive_callback_t cy_stc_capsense_internal_context_t::ptrTunerReceiveCallback |
Pointer to a user's tuner callback function.
Refer to Callbacks section
uint32_t cy_stc_capsense_internal_context_t::csdRegConfig |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwHsPSelScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwHsPSelCmodInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwHsPSelCtankInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwBypSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwResScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwResInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwDsiSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegAmuxbufInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwAmuxbufSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwShieldSelScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegHscmpInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegHscmpScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdIdacAConfig |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdIdacBConfig |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwCmpPSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwCmpNSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegIoSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegRefgen |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csdRegSwRefGenSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegConfigInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegConfigScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegSwResInit |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegSwResPrech |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegSwResScan |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegAMuxBuf |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegRefgen |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegRefgenSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegSwCmpNSel |
Internal pre-calculated data for faster operation.
uint32_t cy_stc_capsense_internal_context_t::csxRegSwRefGenSel |
Internal pre-calculated data for faster operation.
uint16_t cy_stc_capsense_internal_context_t::csdVrefVoltageMv |
Internal pre-calculated data for faster operation.
uint8_t cy_stc_capsense_internal_context_t::csdCmodConnection |
Internal pre-calculated data for faster operation.
uint8_t cy_stc_capsense_internal_context_t::csdCshConnection |
Internal pre-calculated data for faster operation.
uint8_t cy_stc_capsense_internal_context_t::csdVrefGain |
Internal pre-calculated data for faster operation.
cy_capsense_ds_init_callback_t cy_stc_capsense_internal_context_t::ptrEODsInitCallback |
Pointer to a user's End Of Data Structure Initialization callback function.
Refer to Callbacks section
uint32_t cy_stc_capsense_internal_context_t::activeWakeupTimer |
The wakeup timer value for the ACTIVE scan mode in microseconds.
uint32_t cy_stc_capsense_internal_context_t::activeWakeupTimerCycles |
The wakeup timer value for the ACTIVE scan mode in ILO cycles.
uint32_t cy_stc_capsense_internal_context_t::wotScanInterval |
Scan refresh interval (us) while in Wake-on-Touch mode.
uint32_t cy_stc_capsense_internal_context_t::wotScanIntervalCycles |
The scan refresh interval value for the Wake-on-Touch scan mode in ILO cycles.
uint32_t cy_stc_capsense_internal_context_t::iloCompensationFactor |
The ILO compensation factor value, calculated as actual ILO frequency (Hz) * 2^14 / 1000000.
uint16_t cy_stc_capsense_internal_context_t::numCoarseInitChargeCycles |
Configure duration of Cmod initialization, phase 1.
uint16_t cy_stc_capsense_internal_context_t::numCoarseInitSettleCycles |
Configure duration of Cmod initialization, phase 2.
uint16_t cy_stc_capsense_internal_context_t::currentSlotIndex |
Current slot ID.
uint16_t cy_stc_capsense_internal_context_t::endSlotIndex |
The last slot ID for the current frame.
uint16_t cy_stc_capsense_internal_context_t::numValidSlots |
Number of valid slots.
uint16_t cy_stc_capsense_internal_context_t::firstValidSlot |
The first valid slots ID.
uint16_t cy_stc_capsense_internal_context_t::lfsrPoly |
LFSR Polynomial.
uint16_t cy_stc_capsense_internal_context_t::numFineInitWaitCycles |
Number of ProDummy Wait Cycles.
uint16_t cy_stc_capsense_internal_context_t::numEpiCycles |
Number of clk_mod cycles to be run during EPILOGUE.
uint16_t cy_stc_capsense_internal_context_t::numProWaitKrefDelayPrs |
Number of Kref/4 ProDummy Wait Cycles if PRS is enabled.
uint16_t cy_stc_capsense_internal_context_t::numProWaitKrefDelay |
Number of Kref/4 ProDummy Wait Cycles if PRS is disabled.
uint16_t cy_stc_capsense_internal_context_t::numEpiKrefDelayPrs |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is enabled.
uint16_t cy_stc_capsense_internal_context_t::numEpiKrefDelay |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is disabled.
uint16_t cy_stc_capsense_internal_context_t::numSlots |
The number of slots in the current frame.
uint16_t cy_stc_capsense_internal_context_t::startSlotIndex |
The start slot ID for the current scan.
uint16_t cy_stc_capsense_internal_context_t::wotTimeout |
The number of frames to be scanned in Wake-on-Touch mode when there is no touch.
The maximum value is limited to the 14 bits, the applicable range is [1..16383].
uint8_t cy_stc_capsense_internal_context_t::intrIsxInactSnsConn |
Internal inactive electrode connection for ISX scan:
uint8_t cy_stc_capsense_internal_context_t::numFineInitCycles |
Number of ProDummy SubConversions.
uint8_t cy_stc_capsense_internal_context_t::lfsrScale |
LFSR Scale value.
uint8_t cy_stc_capsense_internal_context_t::cdacDitherSeed |
Dither CDAC Seed.
uint8_t cy_stc_capsense_internal_context_t::cdacDitherPoly |
Dither CDAC Polynomial.
uint8_t cy_stc_capsense_internal_context_t::modClk |
The modulator clock divider.
uint8_t cy_stc_capsense_internal_context_t::scanSingleSlot |
Request of scanning just one slot with keeping HW configuration after scan:
uint8_t cy_stc_capsense_internal_context_t::numProOffsetCycles |
Maximum number of clk_mod cycles for the PRO_OFFSET state.
uint8_t cy_stc_capsense_internal_context_t::proOffsetCdacComp |
Compensation CAPDAC size during PRO_OFFSET.
uint8_t cy_stc_capsense_internal_context_t::hwConfigState |
Contains the current hw state, it is configured or not and if yes then to what operation.
uint8_t cy_stc_capsense_internal_context_t::slotAutoCalibrMode |
The slot auto-calibration mode:
uint8_t cy_stc_capsense_internal_context_t::intrCsdRawTarget |
Internal auto-calibration target in percentage for CSD widgets.
uint8_t cy_stc_capsense_internal_context_t::intrCsxRawTarget |
Internal auto-calibration target in percentage for CSX widgets.
uint8_t cy_stc_capsense_internal_context_t::intrIsxRawTarget |
Internal auto-calibration target in percentage for ISX widgets.
uint8_t cy_stc_capsense_internal_context_t::numSenseMethod |
The number of sense methods, used in the project.
uint8_t cy_stc_capsense_internal_context_t::mapSenseMethod[CY_CAPSENSE_REG_MODE_NUMBER] |
The map array of sense methods, used in the project.
uint8_t cy_stc_capsense_internal_context_t::csdCdacDitherEn |
Enabled CDAC dithering for CSD sensing method.
uint8_t cy_stc_capsense_internal_context_t::csxCdacDitherEn |
Enabled CDAC dithering for CSX sensing method.
uint8_t cy_stc_capsense_internal_context_t::isxCdacDitherEn |
Enabled CDAC dithering for ISX sensing method.
uint8_t cy_stc_capsense_internal_context_t::bslnCoefSlow |
Baseline IIR filter coefficient (slow) for Low power widget.
uint8_t cy_stc_capsense_internal_context_t::bslnCoefFast |
Baseline IIR filter coefficient (fast) for Low power widget.
uint8_t cy_stc_capsense_internal_context_t::bslnUpdateDelay |
Specifies the value from which timer is decremented from on consecutive scans where the baseline update IIR produces a zero.
uint8_t cy_stc_capsense_internal_context_t::iirCoeffLp |
Rawcount IIR filter coefficient for Low power widget.
uint8_t cy_stc_capsense_internal_context_t::firstActSubFrame |
The flag for a first Active sub-frame.
It is used for Active Low Refresh-rate scans
uint8_t cy_stc_capsense_internal_context_t::numFunc |
The number of pin functions, used in the project.
uint8_t cy_stc_capsense_internal_context_t::mapPinState[CY_CAPSENSE_CTRLMUX_PIN_STATE_NUMBER] |
The map array of CTRLMUX pin functions, used in the project.
uint8_t cy_stc_capsense_internal_context_t::operatingMode |
The internal fifth-generation low power CAPSENSE™ HW block operating mode.
uint8_t cy_stc_capsense_internal_context_t::mrssStateAfterScan |
Defines the MRSS state after scan frame is complete.
By default MRSS is left enabled
uint8_t cy_stc_capsense_internal_context_t::intrCsdInactSnsConn |
Internal inactive electrode connection for CSD scan:
uint8_t cy_stc_capsense_internal_context_t::intrCsxInactSnsConn |
Internal inactive electrode connection for CSX scan:
uint8_t cy_stc_capsense_internal_context_t::hwIirInit |
Flag to reset/initialize HW IIR filter for active widgets during calibration, first scan, etc.