MTB CAT1 Peripheral driver library

General Description

Macros

#define CY_SAR2_STATUS_ABOVE   (PASS_SAR_CH_RESULT_ABOVE_HI_MIR_Msk)
 If this bit is true, "out of range" was detected and the value was above the High threshold. More...
 
#define CY_SAR2_STATUS_RANGE   (PASS_SAR_CH_RESULT_RANGE_INTR_MIR_Msk)
 If this bit is true, the range is detected. More...
 
#define CY_SAR2_STATUS_PULSE   (PASS_SAR_CH_RESULT_PULSE_INTR_MIR_Msk)
 If this bit is true, the pulse is detected. More...
 
#define CY_SAR2_STATUS_VALID   (PASS_SAR_CH_RESULT_VALID_MIR_Msk)
 If this bit is true, the result data is valid. More...
 
#define CY_SAR2_GRP_COMPLETE   (PASS_SAR_CH_GRP_STAT_GRP_COMPLETE_Msk)
 Group acquisition completed. More...
 
#define CY_SAR2_GRP_CANCELLED   (PASS_SAR_CH_GRP_STAT_GRP_CANCELLED_Msk)
 Group Cancelled. More...
 
#define CY_SAR2_GRP_OVERFLOW   (PASS_SAR_CH_GRP_STAT_GRP_OVERFLOW_Msk)
 Group Overflow. More...
 
#define CY_SAR2_CH_RANGE_COMPLETE   (PASS_SAR_CH_GRP_STAT_CH_RANGE_COMPLETE_Msk)
 Channel Range completed. More...
 
#define CY_SAR2_CH_PULSE_COMPLETE   (PASS_SAR_CH_GRP_STAT_CH_PULSE_COMPLETE_Msk)
 Channel Pulse completed. More...
 
#define CY_SAR2_CH_OVERFLOW   (PASS_SAR_CH_GRP_STAT_CH_OVERFLOW_Msk)
 Channel Overflow. More...
 
#define CY_SAR2_GRP_BUSY   (PASS_SAR_CH_GRP_STAT_GRP_BUSY_Msk)
 Group acquisition busy. More...
 

Macro Definition Documentation

◆ CY_SAR2_STATUS_ABOVE

#define CY_SAR2_STATUS_ABOVE   (PASS_SAR_CH_RESULT_ABOVE_HI_MIR_Msk)

If this bit is true, "out of range" was detected and the value was above the High threshold.

◆ CY_SAR2_STATUS_RANGE

#define CY_SAR2_STATUS_RANGE   (PASS_SAR_CH_RESULT_RANGE_INTR_MIR_Msk)

If this bit is true, the range is detected.

◆ CY_SAR2_STATUS_PULSE

#define CY_SAR2_STATUS_PULSE   (PASS_SAR_CH_RESULT_PULSE_INTR_MIR_Msk)

If this bit is true, the pulse is detected.

◆ CY_SAR2_STATUS_VALID

#define CY_SAR2_STATUS_VALID   (PASS_SAR_CH_RESULT_VALID_MIR_Msk)

If this bit is true, the result data is valid.

◆ CY_SAR2_GRP_COMPLETE

#define CY_SAR2_GRP_COMPLETE   (PASS_SAR_CH_GRP_STAT_GRP_COMPLETE_Msk)

Group acquisition completed.

This bit can be set for the last channel of a group if the group scan is done.

◆ CY_SAR2_GRP_CANCELLED

#define CY_SAR2_GRP_CANCELLED   (PASS_SAR_CH_GRP_STAT_GRP_CANCELLED_Msk)

Group Cancelled.

This bit can be set for the last channel of a group if the group scan was preempted and cancelled.

◆ CY_SAR2_GRP_OVERFLOW

#define CY_SAR2_GRP_OVERFLOW   (PASS_SAR_CH_GRP_STAT_GRP_OVERFLOW_Msk)

Group Overflow.

This bit can be set for the last channel of a group if the group scan is done and the Done interrupt is already (still) pending.

◆ CY_SAR2_CH_RANGE_COMPLETE

#define CY_SAR2_CH_RANGE_COMPLETE   (PASS_SAR_CH_GRP_STAT_CH_RANGE_COMPLETE_Msk)

Channel Range completed.

This bit can be set for each channel if the conversion result (after averaging) of that channel met the condition specified by the range detection mode settings of the channel.

◆ CY_SAR2_CH_PULSE_COMPLETE

#define CY_SAR2_CH_PULSE_COMPLETE   (PASS_SAR_CH_GRP_STAT_CH_PULSE_COMPLETE_Msk)

Channel Pulse completed.

This bit can be set for each channel if the positive pulse counter reaches zero.

◆ CY_SAR2_CH_OVERFLOW

#define CY_SAR2_CH_OVERFLOW   (PASS_SAR_CH_GRP_STAT_CH_OVERFLOW_Msk)

Channel Overflow.

This bit can be set for each channel if a new Pulse or Range interrupt is detected while the interrupt is still pending or when HW did not acknowledge data pickup.

◆ CY_SAR2_GRP_BUSY

#define CY_SAR2_GRP_BUSY   (PASS_SAR_CH_GRP_STAT_GRP_BUSY_Msk)

Group acquisition busy.