Common configuration structure.
Data Fields | |
uint32_t | cpuClkHz |
CPU clock in Hz. | |
uint32_t | periClkHz |
Peripheral clock in Hz. | |
cy_stc_capsense_idac_gain_table_t | idacGainTable [CY_CAPSENSE_IDAC_GAIN_TABLE_SIZE] |
Table with the supported IDAC gains and corresponding register values. More... | |
CSD_Type * | ptrCsdBase |
Pointer to the CSD HW block register. More... | |
cy_stc_csd_context_t * | ptrCsdContext |
Pointer to the CSD driver context. More... | |
GPIO_PRT_Type * | portCmod |
Pointer to the base port register of the Cmod pin. More... | |
GPIO_PRT_Type * | portCsh |
Pointer to the base port register of the Csh pin. More... | |
GPIO_PRT_Type * | portCintA |
Pointer to the base port register of the CintA pin. More... | |
GPIO_PRT_Type * | portCintB |
Pointer to the base port register of the CintB pin. More... | |
cy_stc_capsense_channel_config_t * | ptrChConfig |
The pointer to the CAPSENSE™ enabled channel (HW block) configuration. More... | |
DMAC_Type * | ptrDmacBase |
Pointer to the DMAC HW block base register. More... | |
const uint32_t *const * | ptrDmaWrChSnsCfgAddr |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Write channel. More... | |
const uint16_t *const * | ptrDmaRdChSnsCfgAddr |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Read channel. More... | |
const uint32_t ** | ptrDmaWrChSnsCfgAddrLocal |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Write channel. More... | |
const uint16_t ** | ptrDmaRdChSnsCfgAddrLocal |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Read channel. More... | |
uint16_t * | ptrEmptyRawCount |
Pointer to the empty storage for raw count in case widget is disabled. More... | |
uint16_t | numPin |
Total number of IOs. More... | |
uint16_t | numSns |
The total number of sensors. More... | |
uint16_t | proxTouchCoeff |
Proximity touch coefficient in percentage used in smart sensing algorithm. | |
uint16_t | csdRConst |
Sensor resistance in series used by smart sensing algorithm. | |
uint16_t | vdda |
VDDA in mV. | |
uint16_t | csdVref |
Vref for CSD method. More... | |
uint16_t | numEpiCycles |
Number of clk_mod cycles to be run during EPILOGUE. 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 | numSlots |
Total number of slots. 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... | |
uint8_t | numWd |
Total number of widgets. | |
uint8_t | periDividerType |
Peripheral clock type (8- or 16-bit type) | |
uint8_t | periDividerIndex |
Peripheral divider index. | |
uint8_t | analogWakeupDelay |
Time needed to establish correct operation of CAPSENSE™ HW block block after power up or System Deep Sleep. More... | |
uint8_t | swSensorAutoResetEn |
Sensor auto reset enabled. | |
uint8_t | csdInactiveSnsConnection |
Inactive sensor connection for CSD scan: More... | |
uint8_t | csxInactiveSnsConnection |
Inactive sensor connection for CSX scan: More... | |
uint8_t | isxInactiveSnsConnection |
Inactive sensor connection for ISX scan: More... | |
uint8_t | csdShieldNumPin |
Number of shield IOs. | |
uint8_t | csxRawTarget |
Raw count target in percentage for CSX calibration. | |
uint8_t | csxCalibrationError |
Acceptable calibration error. | |
uint8_t | csdRawTarget |
Raw count target in percentage for CSD calibration. | |
uint8_t | csdCalibrationError |
Acceptable calibration error. | |
uint8_t | ssIrefSource |
Iref source. More... | |
uint8_t | ssVrefSource |
Vref source. More... | |
uint8_t | portCmodPadNum |
Number of port of dedicated Cmod pad. More... | |
uint8_t | pinCmodPad |
Position of the dedicated Cmod pad in the port. More... | |
uint8_t | portCshPadNum |
Number of port of dedicated Csh pad. More... | |
uint8_t | pinCshPad |
Position of the dedicated Csh pad in the port. More... | |
uint8_t | portShieldPadNum |
Number of port of dedicated Shield pad. More... | |
uint8_t | pinShieldPad |
Position of the dedicated Shield pad in the port. More... | |
uint8_t | portVrefExtPadNum |
Number of port of dedicated VrefExt pad. More... | |
uint8_t | pinVrefExtPad |
Position of the dedicated VrefExt pad in the port. More... | |
uint8_t | portCmodNum |
Number of port of Cmod pin. More... | |
uint8_t | pinCmod |
Position of the Cmod pin in the port. More... | |
uint8_t | portCshNum |
Number of port of Csh pin. More... | |
uint8_t | pinCsh |
Position of the Csh pin in the port. More... | |
uint8_t | pinCintA |
Position of the CintA pin in the port. More... | |
uint8_t | pinCintB |
Position of the CintB pin in the port. More... | |
uint8_t | csdShieldDelay |
Shield signal delay. More... | |
uint8_t | csdShieldSwRes |
Shield switch resistance. More... | |
uint8_t | csdInitSwRes |
Switch resistance at coarse initialization. More... | |
uint8_t | csdChargeTransfer |
IDAC sensing configuration. More... | |
uint8_t | csdIdacGainInitIndex |
IDAC gain index per idacGainTable. More... | |
uint8_t | csdIdacMin |
Min acceptable IDAC value in CSD calibration. More... | |
uint8_t | csdFineInitTime |
Number of dummy SnsClk periods at fine initialization. More... | |
uint8_t | csdMfsDividerOffsetF1 |
Frequency divider offset for channel 1. More... | |
uint8_t | csdMfsDividerOffsetF2 |
Frequency divider offset for channel 2. More... | |
uint8_t | csxFineInitTime |
Number of dummy TX periods at fine initialization. More... | |
uint8_t | csxInitSwRes |
Switch resistance at fine initialization. More... | |
uint8_t | csxScanSwRes |
Switch resistance at scanning. More... | |
uint8_t | csxInitShieldSwRes |
Switch resistance at fine initialization. More... | |
uint8_t | csxScanShieldSwRes |
Switch resistance at scanning. More... | |
uint8_t | csxMfsDividerOffsetF1 |
Frequency divider offset for channel 1. More... | |
uint8_t | csxMfsDividerOffsetF2 |
Frequency divider offset for channel 2. More... | |
uint8_t | isxRawTarget |
Raw count target in percentage for ISX calibration. More... | |
uint8_t | isxCalibrationError |
Acceptable calibration error. More... | |
uint8_t | csdShieldMode |
Shield mode. 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 | chopPolarity |
Select polarity for system level chopping. More... | |
uint8_t | numBadScans |
1 to 7, repeat scan upon "bad" scan. More... | |
uint8_t | counterMode |
Select overflow or saturate mode for raw count: More... | |
uint8_t | sensorConnection |
Sensor Connection. More... | |
uint8_t | syncClockEn |
Enable external synchronization signals. More... | |
uint8_t | syncMode |
Synchronization mode: More... | |
uint8_t | masterChannelId |
The ID of the Master channel MULTI-CHIP solution. More... | |
uint8_t | numChannels |
The number of CAPSENSE™ enabled MSCv3 blocks in the current chip. More... | |
uint8_t | channelOffset |
The ID of the first channel that belongs to the current chip. More... | |
uint8_t | syncFrameStartEn |
Enable external synchronization signals. More... | |
cy_stc_capsense_idac_gain_table_t cy_stc_capsense_common_config_t::idacGainTable[CY_CAPSENSE_IDAC_GAIN_TABLE_SIZE] |
Table with the supported IDAC gains and corresponding register values.
CSD_Type* cy_stc_capsense_common_config_t::ptrCsdBase |
Pointer to the CSD HW block register.
cy_stc_csd_context_t* cy_stc_capsense_common_config_t::ptrCsdContext |
Pointer to the CSD driver context.
GPIO_PRT_Type* cy_stc_capsense_common_config_t::portCmod |
Pointer to the base port register of the Cmod pin.
GPIO_PRT_Type* cy_stc_capsense_common_config_t::portCsh |
Pointer to the base port register of the Csh pin.
GPIO_PRT_Type* cy_stc_capsense_common_config_t::portCintA |
Pointer to the base port register of the CintA pin.
GPIO_PRT_Type* cy_stc_capsense_common_config_t::portCintB |
Pointer to the base port register of the CintB pin.
cy_stc_capsense_channel_config_t* cy_stc_capsense_common_config_t::ptrChConfig |
The pointer to the CAPSENSE™ enabled channel (HW block) configuration.
DMAC_Type* cy_stc_capsense_common_config_t::ptrDmacBase |
Pointer to the DMAC HW block base register.
const uint32_t* const* cy_stc_capsense_common_config_t::ptrDmaWrChSnsCfgAddr |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Write channel.
const uint16_t* const* cy_stc_capsense_common_config_t::ptrDmaRdChSnsCfgAddr |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Read channel.
const uint32_t** cy_stc_capsense_common_config_t::ptrDmaWrChSnsCfgAddrLocal |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Write channel.
const uint16_t** cy_stc_capsense_common_config_t::ptrDmaRdChSnsCfgAddrLocal |
Pointer to the array containing the addresses of sensor configurations used as a source for the DMA Chain Read channel.
uint16_t* cy_stc_capsense_common_config_t::ptrEmptyRawCount |
Pointer to the empty storage for raw count in case widget is disabled.
uint16_t cy_stc_capsense_common_config_t::numPin |
Total number of IOs.
uint16_t cy_stc_capsense_common_config_t::numSns |
The total number of sensors.
It is equal to the number of objects with raw count.
uint16_t cy_stc_capsense_common_config_t::csdVref |
Vref for CSD method.
uint16_t cy_stc_capsense_common_config_t::numEpiCycles |
Number of clk_mod cycles to be run during EPILOGUE.
uint16_t cy_stc_capsense_common_config_t::numCoarseInitChargeCycles |
Configure duration of Cmod initialization, phase 1.
uint16_t cy_stc_capsense_common_config_t::numCoarseInitSettleCycles |
Configure duration of Cmod initialization, phase 2.
uint16_t cy_stc_capsense_common_config_t::numSlots |
Total number of slots.
uint16_t cy_stc_capsense_common_config_t::numProWaitKrefDelayPrs |
Number of Kref/4 ProDummy Wait Cycles if PRS is enabled.
uint16_t cy_stc_capsense_common_config_t::numProWaitKrefDelay |
Number of Kref/4 ProDummy Wait Cycles if PRS is disabled.
uint16_t cy_stc_capsense_common_config_t::numEpiKrefDelayPrs |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is enabled.
uint16_t cy_stc_capsense_common_config_t::numEpiKrefDelay |
Number of Kref/4 cycles to be run during EPILOGUE if PRS is disabled.
uint8_t cy_stc_capsense_common_config_t::analogWakeupDelay |
Time needed to establish correct operation of CAPSENSE™ HW block block after power up or System Deep Sleep.
uint8_t cy_stc_capsense_common_config_t::csdInactiveSnsConnection |
Inactive sensor connection for CSD scan:
uint8_t cy_stc_capsense_common_config_t::csxInactiveSnsConnection |
Inactive sensor connection for CSX scan:
CY_CAPSENSE_SNS_CONNECTION_VDDA_BY_2 is only available for fifth-generation and fifth-generation low power CAPSENSE™.
uint8_t cy_stc_capsense_common_config_t::isxInactiveSnsConnection |
Inactive sensor connection for ISX scan:
Applicable only for fifth-generation low power CAPSENSE™.
uint8_t cy_stc_capsense_common_config_t::ssIrefSource |
Iref source.
uint8_t cy_stc_capsense_common_config_t::ssVrefSource |
Vref source.
uint8_t cy_stc_capsense_common_config_t::portCmodPadNum |
Number of port of dedicated Cmod pad.
uint8_t cy_stc_capsense_common_config_t::pinCmodPad |
Position of the dedicated Cmod pad in the port.
uint8_t cy_stc_capsense_common_config_t::portCshPadNum |
Number of port of dedicated Csh pad.
uint8_t cy_stc_capsense_common_config_t::pinCshPad |
Position of the dedicated Csh pad in the port.
uint8_t cy_stc_capsense_common_config_t::portShieldPadNum |
Number of port of dedicated Shield pad.
uint8_t cy_stc_capsense_common_config_t::pinShieldPad |
Position of the dedicated Shield pad in the port.
uint8_t cy_stc_capsense_common_config_t::portVrefExtPadNum |
Number of port of dedicated VrefExt pad.
uint8_t cy_stc_capsense_common_config_t::pinVrefExtPad |
Position of the dedicated VrefExt pad in the port.
uint8_t cy_stc_capsense_common_config_t::portCmodNum |
Number of port of Cmod pin.
uint8_t cy_stc_capsense_common_config_t::pinCmod |
Position of the Cmod pin in the port.
uint8_t cy_stc_capsense_common_config_t::portCshNum |
Number of port of Csh pin.
uint8_t cy_stc_capsense_common_config_t::pinCsh |
Position of the Csh pin in the port.
uint8_t cy_stc_capsense_common_config_t::pinCintA |
Position of the CintA pin in the port.
uint8_t cy_stc_capsense_common_config_t::pinCintB |
Position of the CintB pin in the port.
uint8_t cy_stc_capsense_common_config_t::csdShieldDelay |
Shield signal delay.
uint8_t cy_stc_capsense_common_config_t::csdShieldSwRes |
Shield switch resistance.
uint8_t cy_stc_capsense_common_config_t::csdInitSwRes |
Switch resistance at coarse initialization.
uint8_t cy_stc_capsense_common_config_t::csdChargeTransfer |
IDAC sensing configuration.
uint8_t cy_stc_capsense_common_config_t::csdIdacGainInitIndex |
IDAC gain index per idacGainTable.
uint8_t cy_stc_capsense_common_config_t::csdIdacMin |
Min acceptable IDAC value in CSD calibration.
uint8_t cy_stc_capsense_common_config_t::csdFineInitTime |
Number of dummy SnsClk periods at fine initialization.
uint8_t cy_stc_capsense_common_config_t::csdMfsDividerOffsetF1 |
Frequency divider offset for channel 1.
This value is added to base (channel 0) SnsClk divider to form channel 1 frequency
uint8_t cy_stc_capsense_common_config_t::csdMfsDividerOffsetF2 |
Frequency divider offset for channel 2.
This value is added to base (channel 0) SnsClk divider to form channel 2 frequency
uint8_t cy_stc_capsense_common_config_t::csxFineInitTime |
Number of dummy TX periods at fine initialization.
uint8_t cy_stc_capsense_common_config_t::csxInitSwRes |
Switch resistance at fine initialization.
uint8_t cy_stc_capsense_common_config_t::csxScanSwRes |
Switch resistance at scanning.
uint8_t cy_stc_capsense_common_config_t::csxInitShieldSwRes |
Switch resistance at fine initialization.
uint8_t cy_stc_capsense_common_config_t::csxScanShieldSwRes |
Switch resistance at scanning.
uint8_t cy_stc_capsense_common_config_t::csxMfsDividerOffsetF1 |
Frequency divider offset for channel 1.
This value is added to base (channel 0) Tx divider to form channel 1 frequency
uint8_t cy_stc_capsense_common_config_t::csxMfsDividerOffsetF2 |
Frequency divider offset for channel 2.
This value is added to base (channel 0) Tx divider to form channel 2 frequency
uint8_t cy_stc_capsense_common_config_t::isxRawTarget |
Raw count target in percentage for ISX calibration.
uint8_t cy_stc_capsense_common_config_t::isxCalibrationError |
Acceptable calibration error.
uint8_t cy_stc_capsense_common_config_t::csdShieldMode |
Shield mode.
uint8_t cy_stc_capsense_common_config_t::numProOffsetCycles |
Maximum number of clk_mod cycles for the PRO_OFFSET state.
uint8_t cy_stc_capsense_common_config_t::proOffsetCdacComp |
Compensation CAPDAC size during PRO_OFFSET.
uint8_t cy_stc_capsense_common_config_t::chopPolarity |
Select polarity for system level chopping.
uint8_t cy_stc_capsense_common_config_t::numBadScans |
1 to 7, repeat scan upon "bad" scan.
Disabled = 0.
uint8_t cy_stc_capsense_common_config_t::counterMode |
Select overflow or saturate mode for raw count:
uint8_t cy_stc_capsense_common_config_t::sensorConnection |
Sensor Connection.
In CS-DMA mode, sensor connection always set to CTRLMUX.
uint8_t cy_stc_capsense_common_config_t::syncClockEn |
Enable external synchronization signals.
uint8_t cy_stc_capsense_common_config_t::syncMode |
Synchronization mode:
uint8_t cy_stc_capsense_common_config_t::masterChannelId |
The ID of the Master channel MULTI-CHIP solution.
This channel will generate msc_ext_frm_start_out and msc_ext_sync_clk_out signals
uint8_t cy_stc_capsense_common_config_t::numChannels |
The number of CAPSENSE™ enabled MSCv3 blocks in the current chip.
uint8_t cy_stc_capsense_common_config_t::channelOffset |
The ID of the first channel that belongs to the current chip.
uint8_t cy_stc_capsense_common_config_t::syncFrameStartEn |
Enable external synchronization signals.