MTB CAT1 Peripheral driver library
cy_stc_mcwdt_config_t Struct Reference

Description

The MCWDT component configuration structure.

Note
Below structure variables are available for CAT1A (except TVIIBE), CAT1B and CAT1D devices.

Data Fields

uint16_t c0LowerLimit
 The sub-counter#0 lower limit value, for reset or fault. More...
 
uint16_t c0UpperLimit
 The sub-counter#0 upper limit value, for reset or fault. More...
 
uint16_t c0WarnLimit
 The sub-counter#0 warn limit value, for interrupt. More...
 
cy_en_mcwdt_lower_upper_action_t c0LowerAction
 The sub-counter#0 action. More...
 
cy_en_mcwdt_lower_upper_action_t c0UpperAction
 The sub-counter#0 action. More...
 
cy_en_mcwdt_warn_action_t c0WarnAction
 The sub-counter#0 warn action. More...
 
cy_en_mcwdt_enable_t c0AutoService
 The sub-counter#0 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_enable_t c0SleepDeepPause
 The sub-counter#0 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_enable_t c0DebugRun
 The sub-counter#0 Auto Service parameter enabled/disabled. More...
 
uint16_t c1LowerLimit
 The sub-counter#0 lower limit value, for reset or fault. More...
 
uint16_t c1UpperLimit
 The sub-counter#0 upper limit value, for reset or fault. More...
 
uint16_t c1WarnLimit
 The sub-counter#0 warn limit value, for interrupt. More...
 
cy_en_mcwdt_lower_upper_action_t c1LowerAction
 The sub-counter#1 action. More...
 
cy_en_mcwdt_lower_upper_action_t c1UpperAction
 The sub-counter#1 action. More...
 
cy_en_mcwdt_warn_action_t c1WarnAction
 The sub-counter#1 warn action. More...
 
cy_en_mcwdt_enable_t c1AutoService
 The sub-counter#1 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_enable_t c1SleepDeepPause
 The sub-counter#1 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_enable_t c1DebugRun
 The sub-counter#1 Auto Service parameter enabled/disabled. More...
 
uint32_t c2ToggleBit
 The sub-counter#2 Period / Toggle Bit value. More...
 
cy_en_mcwdt_cnt2_action_t c2Action
 The sub-counter#2 mode. More...
 
cy_en_mcwdt_enable_t c2SleepDeepPause
 The sub-counter#2 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_enable_t c2DebugRun
 The sub-counter#2 Auto Service parameter enabled/disabled. More...
 
cy_en_mcwdt_select_core_t coreSelect
 Selecting the the core. More...
 
uint16_t c0Match
 The sub-counter#0 match comparison value, for interrupt or watchdog timeout. More...
 
uint16_t c1Match
 The sub-counter#1 match comparison value, for interrupt or watchdog timeout. More...
 
uint8_t c0Mode
 The sub-counter#0 mode. More...
 
uint8_t c1Mode
 The sub-counter#1 mode. More...
 
uint8_t c2ToggleBit
 The sub-counter#2 Period / Toggle Bit value. More...
 
uint8_t c2Mode
 The sub-counter#2 mode. More...
 
uint16_t c0LowerLimitMode
 Watchdog Counter Action on service before lower limit. More...
 
uint16_t c1LowerLimitMode
 Watchdog Counter Action on service before lower limit. More...
 
bool c0c1carryoutconfig
 Carryout behaviour that applies when counter 0 and 1 are cascaded false: carry out on counter 0 match, true: carry out on counter 0 roll-over. More...
 
bool c0c1matchconfig
 Matching behaviour that applies when counter 0 and 1 are cascaded false: Match based on counter 1 alone, true: Match based on counter 1 and 0 simultaneously. More...
 
bool c1c2carryoutconfig
 Carryout behaviour that applies when counter 1 and 2 are cascaded false: carry out on counter 1 match, true: carry out on counter 1 roll-over. More...
 
bool c1c2matchconfig
 Matching behaviour that applies when counter 1 and 2 are cascaded false: Match based on counter 1 alone, true: Match based on counter 2 and 1 simultaneously. More...
 
bool c0ClearOnMatch
 The sub-counter#0 Clear On Match parameter enabled/disabled. More...
 
bool c1ClearOnMatch
 The sub-counter#1 Clear On Match parameter enabled/disabled. More...
 
bool c0c1Cascade
 The sub-counter#1 is clocked by LFCLK or from sub-counter#0 cascade. More...
 
bool c1c2Cascade
 The sub-counter#2 is clocked by LFCLK or from sub-counter#1 cascade. More...
 

Field Documentation

◆ c0LowerLimit

uint16_t cy_stc_mcwdt_config_t::c0LowerLimit

The sub-counter#0 lower limit value, for reset or fault.

Lower limit for sub-counter 0 of this MCWDT.

Range: 0 - 65535 for c0AutoService = 0 and 1 - 65535 for c0AutoService = 1. Only for CAT1C and TVIIBE devices

Range: 0 - 65535. Only for CAT1B devices

◆ c0UpperLimit

uint16_t cy_stc_mcwdt_config_t::c0UpperLimit

The sub-counter#0 upper limit value, for reset or fault.

Range: 0 - 65535 for c0AutoService = 0 and 1 - 65535 for c0AutoService = 1. Only for CAT1C and TVIIBE devices

◆ c0WarnLimit

uint16_t cy_stc_mcwdt_config_t::c0WarnLimit

The sub-counter#0 warn limit value, for interrupt.

Range: 0 - 65535 for c0AutoService = 0 and 1 - 65535 for c0AutoService = 1. Only for CAT1C and TVIIBE devices

◆ c0LowerAction

cy_en_mcwdt_lower_upper_action_t cy_stc_mcwdt_config_t::c0LowerAction

The sub-counter#0 action.

It can have the following values: cy_en_mcwdt_lower_upper_action_t. Only for CAT1C and TVIIBE devices

◆ c0UpperAction

cy_en_mcwdt_lower_upper_action_t cy_stc_mcwdt_config_t::c0UpperAction

The sub-counter#0 action.

It can have the following values: cy_en_mcwdt_lower_upper_action_t. Only for CAT1C and TVIIBE devices

◆ c0WarnAction

cy_en_mcwdt_warn_action_t cy_stc_mcwdt_config_t::c0WarnAction

The sub-counter#0 warn action.

It can have the following values: cy_en_mcwdt_warn_action_t. Only for CAT1C and TVIIBE devices

◆ c0AutoService

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c0AutoService

The sub-counter#0 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c0SleepDeepPause

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c0SleepDeepPause

The sub-counter#0 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c0DebugRun

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c0DebugRun

The sub-counter#0 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c1LowerLimit

uint16_t cy_stc_mcwdt_config_t::c1LowerLimit

The sub-counter#0 lower limit value, for reset or fault.

Lower limit for sub-counter 0 of this MCWDT.

Range: 0 - 65535 for c1AutoService = 0 and 1 - 65535 for c1AutoService = 1. Only for CAT1C and TVIIBE devices

Range: 0 - 65535. Only for CAT1B devices

◆ c1UpperLimit

uint16_t cy_stc_mcwdt_config_t::c1UpperLimit

The sub-counter#0 upper limit value, for reset or fault.

Range: 0 - 65535 for c1AutoService = 0 and 1 - 65535 for c1AutoService = 1. Only for CAT1C and TVIIBE devices

◆ c1WarnLimit

uint16_t cy_stc_mcwdt_config_t::c1WarnLimit

The sub-counter#0 warn limit value, for interrupt.

Range: 0 - 65535 for c1AutoService = 0 and 1 - 65535 for c1AutoService = 1. Only for CAT1C and TVIIBE devices

◆ c1LowerAction

cy_en_mcwdt_lower_upper_action_t cy_stc_mcwdt_config_t::c1LowerAction

The sub-counter#1 action.

It can have the following values: cy_en_mcwdt_lower_upper_action_t. Only for CAT1C and TVIIBE devices

◆ c1UpperAction

cy_en_mcwdt_lower_upper_action_t cy_stc_mcwdt_config_t::c1UpperAction

The sub-counter#1 action.

It can have the following values: cy_en_mcwdt_lower_upper_action_t. Only for CAT1C and TVIIBE devices

◆ c1WarnAction

cy_en_mcwdt_warn_action_t cy_stc_mcwdt_config_t::c1WarnAction

The sub-counter#1 warn action.

It can have the following values: cy_en_mcwdt_warn_action_t. Only for CAT1C and TVIIBE devices

◆ c1AutoService

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c1AutoService

The sub-counter#1 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c1SleepDeepPause

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c1SleepDeepPause

The sub-counter#1 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c1DebugRun

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c1DebugRun

The sub-counter#1 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c2ToggleBit [1/2]

uint32_t cy_stc_mcwdt_config_t::c2ToggleBit

The sub-counter#2 Period / Toggle Bit value.

Only for CAT1C and TVIIBE devices

◆ c2Action

cy_en_mcwdt_cnt2_action_t cy_stc_mcwdt_config_t::c2Action

The sub-counter#2 mode.

It can have the following values: cy_en_mcwdt_cnt2_action_t. Only for CAT1C and TVIIBE devices

◆ c2SleepDeepPause

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c2SleepDeepPause

The sub-counter#2 Auto Service parameter enabled/disabled.

Range: FALSE - TRUE. Only for CAT1C and TVIIBE devices

◆ c2DebugRun

cy_en_mcwdt_enable_t cy_stc_mcwdt_config_t::c2DebugRun

The sub-counter#2 Auto Service parameter enabled/disabled.

Only for CAT1C and TVIIBE devices

◆ coreSelect

cy_en_mcwdt_select_core_t cy_stc_mcwdt_config_t::coreSelect

Selecting the the core.

The DeepSleep of the core pauses this MCWDT counter only for CAT1C and TVIIBE devices

◆ c0Match

uint16_t cy_stc_mcwdt_config_t::c0Match

The sub-counter#0 match comparison value, for interrupt or watchdog timeout.

Range: 0 - 65535 for c0ClearOnMatch = 0 and 1 - 65535 for c0ClearOnMatch = 1. For CAT1A, CAT1B and CAT1D devices

◆ c1Match

uint16_t cy_stc_mcwdt_config_t::c1Match

The sub-counter#1 match comparison value, for interrupt or watchdog timeout.

Range: 0 - 65535 for c1ClearOnMatch = 0 and 1 - 65535 for c1ClearOnMatch = 1. For CAT1A, CAT1B and CAT1D devices

◆ c0Mode

uint8_t cy_stc_mcwdt_config_t::c0Mode

The sub-counter#0 mode.

It can have the following values: CY_MCWDT_MODE_NONE, CY_MCWDT_MODE_INT, CY_MCWDT_MODE_RESET and CY_MCWDT_MODE_INT_RESET. For CAT1A, CAT1B and CAT1D devices

◆ c1Mode

uint8_t cy_stc_mcwdt_config_t::c1Mode

The sub-counter#1 mode.

It can have the following values: CY_MCWDT_MODE_NONE, CY_MCWDT_MODE_INT, CY_MCWDT_MODE_RESET and CY_MCWDT_MODE_INT_RESET. For CAT1A, CAT1B and CAT1D devices

◆ c2ToggleBit [2/2]

uint8_t cy_stc_mcwdt_config_t::c2ToggleBit

The sub-counter#2 Period / Toggle Bit value.

Range: 0 - 31. For CAT1A, CAT1B and CAT1D devices

◆ c2Mode

uint8_t cy_stc_mcwdt_config_t::c2Mode

The sub-counter#2 mode.

It can have the following values: CY_MCWDT_MODE_NONE and CY_MCWDT_MODE_INT. For CAT1A, CAT1B and CAT1D devices

◆ c0LowerLimitMode

uint16_t cy_stc_mcwdt_config_t::c0LowerLimitMode

Watchdog Counter Action on service before lower limit.

Range: 0 - 2., 0 - Do nothing, 1 - Assert WDT_INTx, 2 - Assert WDT Reset. Only for CAT1B devices

◆ c1LowerLimitMode

uint16_t cy_stc_mcwdt_config_t::c1LowerLimitMode

Watchdog Counter Action on service before lower limit.

Range: 0 - 2., 0 - Do nothing, 1 - Assert WDT_INTx, 2 - Assert WDT Reset. Only for CAT1B devices

◆ c0c1carryoutconfig

bool cy_stc_mcwdt_config_t::c0c1carryoutconfig

Carryout behaviour that applies when counter 0 and 1 are cascaded false: carry out on counter 0 match, true: carry out on counter 0 roll-over.

Note
This parameter is available for devices having MXS40SSRSS IP. Only for CAT1B devices

◆ c0c1matchconfig

bool cy_stc_mcwdt_config_t::c0c1matchconfig

Matching behaviour that applies when counter 0 and 1 are cascaded false: Match based on counter 1 alone, true: Match based on counter 1 and 0 simultaneously.

Only for CAT1B devices

◆ c1c2carryoutconfig

bool cy_stc_mcwdt_config_t::c1c2carryoutconfig

Carryout behaviour that applies when counter 1 and 2 are cascaded false: carry out on counter 1 match, true: carry out on counter 1 roll-over.

Only for CAT1B devices

◆ c1c2matchconfig

bool cy_stc_mcwdt_config_t::c1c2matchconfig

Matching behaviour that applies when counter 1 and 2 are cascaded false: Match based on counter 1 alone, true: Match based on counter 2 and 1 simultaneously.

Only for CAT1B devices

◆ c0ClearOnMatch

bool cy_stc_mcwdt_config_t::c0ClearOnMatch

The sub-counter#0 Clear On Match parameter enabled/disabled.

For CAT1A, CAT1B and CAT1D devices

◆ c1ClearOnMatch

bool cy_stc_mcwdt_config_t::c1ClearOnMatch

The sub-counter#1 Clear On Match parameter enabled/disabled.

For CAT1A, CAT1B and CAT1D devices

◆ c0c1Cascade

bool cy_stc_mcwdt_config_t::c0c1Cascade

The sub-counter#1 is clocked by LFCLK or from sub-counter#0 cascade.

For CAT1A, CAT1B and CAT1D devices

◆ c1c2Cascade

bool cy_stc_mcwdt_config_t::c1c2Cascade

The sub-counter#2 is clocked by LFCLK or from sub-counter#1 cascade.

For CAT1A, CAT1B and CAT1D devices