MTB CAT1 Peripheral driver library
SAR block instance masks

General Description

Specifies the SAR block instance.

Macros

#define CY_SAR_SAR0   (1UL)
 SAR 0 instance.
 
#define CY_SAR_SAR1   (2UL)
 SAR 1 instance.
 
#define CY_SAR_SAR2   (4UL)
 SAR 2 instance.
 
#define CY_SAR_SAR3   (8UL)
 SAR 3 instance.
 
#define CY_SAR_INSTANCE_MASK(base)   (1UL << CY_SAR_INSTANCE(base))
 Convert SAR base to instance mask. More...
 
#define CY_SAR_TIMER   (1UL<<31UL)
 Trigger source is Timer. More...
 

Macro Definition Documentation

◆ CY_SAR_INSTANCE_MASK

#define CY_SAR_INSTANCE_MASK (   base)    (1UL << CY_SAR_INSTANCE(base))

Convert SAR base to instance mask.

Could be used instead of SAR 0 - SAR 3 instance masks

◆ CY_SAR_TIMER

#define CY_SAR_TIMER   (1UL<<31UL)

Trigger source is Timer.

Used only for simultTrigSource configuration in cy_stc_sar_common_config_t