SAME54P20A Test Project
Data Structures | Macros
ac.h File Reference

Component description for AC. More...

Go to the source code of this file.

Data Structures

union  AC_CTRLA_Type
 
union  AC_CTRLB_Type
 
union  AC_EVCTRL_Type
 
union  AC_INTENCLR_Type
 
union  AC_INTENSET_Type
 
union  AC_INTFLAG_Type
 
union  AC_STATUSA_Type
 
union  AC_STATUSB_Type
 
union  AC_DBGCTRL_Type
 
union  AC_WINCTRL_Type
 
union  AC_SCALER_Type
 
union  AC_COMPCTRL_Type
 
union  AC_SYNCBUSY_Type
 
union  AC_CALIB_Type
 
struct  Ac
 AC hardware registers. More...
 

Macros

#define AC_U2501
 
#define REV_AC   0x100
 
#define AC_CTRLA_OFFSET   0x00
 (AC_CTRLA offset) Control A
 
#define AC_CTRLA_RESETVALUE   _U_(0x00)
 (AC_CTRLA reset_value) Control A
 
#define AC_CTRLA_SWRST_Pos   0
 (AC_CTRLA) Software Reset
 
#define AC_CTRLA_SWRST   (_U_(0x1) << AC_CTRLA_SWRST_Pos)
 
#define AC_CTRLA_ENABLE_Pos   1
 (AC_CTRLA) Enable
 
#define AC_CTRLA_ENABLE   (_U_(0x1) << AC_CTRLA_ENABLE_Pos)
 
#define AC_CTRLA_MASK   _U_(0x03)
 (AC_CTRLA) MASK Register
 
#define AC_CTRLB_OFFSET   0x01
 (AC_CTRLB offset) Control B
 
#define AC_CTRLB_RESETVALUE   _U_(0x00)
 (AC_CTRLB reset_value) Control B
 
#define AC_CTRLB_START0_Pos   0
 (AC_CTRLB) Comparator 0 Start Comparison
 
#define AC_CTRLB_START0   (_U_(1) << AC_CTRLB_START0_Pos)
 
#define AC_CTRLB_START1_Pos   1
 (AC_CTRLB) Comparator 1 Start Comparison
 
#define AC_CTRLB_START1   (_U_(1) << AC_CTRLB_START1_Pos)
 
#define AC_CTRLB_START_Pos   0
 (AC_CTRLB) Comparator x Start Comparison
 
#define AC_CTRLB_START_Msk   (_U_(0x3) << AC_CTRLB_START_Pos)
 
#define AC_CTRLB_START(value)   (AC_CTRLB_START_Msk & ((value) << AC_CTRLB_START_Pos))
 
#define AC_CTRLB_MASK   _U_(0x03)
 (AC_CTRLB) MASK Register
 
#define AC_EVCTRL_OFFSET   0x02
 (AC_EVCTRL offset) Event Control
 
#define AC_EVCTRL_RESETVALUE   _U_(0x0000)
 (AC_EVCTRL reset_value) Event Control
 
#define AC_EVCTRL_COMPEO0_Pos   0
 (AC_EVCTRL) Comparator 0 Event Output Enable
 
#define AC_EVCTRL_COMPEO0   (_U_(1) << AC_EVCTRL_COMPEO0_Pos)
 
#define AC_EVCTRL_COMPEO1_Pos   1
 (AC_EVCTRL) Comparator 1 Event Output Enable
 
#define AC_EVCTRL_COMPEO1   (_U_(1) << AC_EVCTRL_COMPEO1_Pos)
 
#define AC_EVCTRL_COMPEO_Pos   0
 (AC_EVCTRL) Comparator x Event Output Enable
 
#define AC_EVCTRL_COMPEO_Msk   (_U_(0x3) << AC_EVCTRL_COMPEO_Pos)
 
#define AC_EVCTRL_COMPEO(value)   (AC_EVCTRL_COMPEO_Msk & ((value) << AC_EVCTRL_COMPEO_Pos))
 
#define AC_EVCTRL_WINEO0_Pos   4
 (AC_EVCTRL) Window 0 Event Output Enable
 
#define AC_EVCTRL_WINEO0   (_U_(1) << AC_EVCTRL_WINEO0_Pos)
 
#define AC_EVCTRL_WINEO_Pos   4
 (AC_EVCTRL) Window x Event Output Enable
 
#define AC_EVCTRL_WINEO_Msk   (_U_(0x1) << AC_EVCTRL_WINEO_Pos)
 
#define AC_EVCTRL_WINEO(value)   (AC_EVCTRL_WINEO_Msk & ((value) << AC_EVCTRL_WINEO_Pos))
 
#define AC_EVCTRL_COMPEI0_Pos   8
 (AC_EVCTRL) Comparator 0 Event Input Enable
 
#define AC_EVCTRL_COMPEI0   (_U_(1) << AC_EVCTRL_COMPEI0_Pos)
 
#define AC_EVCTRL_COMPEI1_Pos   9
 (AC_EVCTRL) Comparator 1 Event Input Enable
 
#define AC_EVCTRL_COMPEI1   (_U_(1) << AC_EVCTRL_COMPEI1_Pos)
 
#define AC_EVCTRL_COMPEI_Pos   8
 (AC_EVCTRL) Comparator x Event Input Enable
 
#define AC_EVCTRL_COMPEI_Msk   (_U_(0x3) << AC_EVCTRL_COMPEI_Pos)
 
#define AC_EVCTRL_COMPEI(value)   (AC_EVCTRL_COMPEI_Msk & ((value) << AC_EVCTRL_COMPEI_Pos))
 
#define AC_EVCTRL_INVEI0_Pos   12
 (AC_EVCTRL) Comparator 0 Input Event Invert Enable
 
#define AC_EVCTRL_INVEI0   (_U_(1) << AC_EVCTRL_INVEI0_Pos)
 
#define AC_EVCTRL_INVEI1_Pos   13
 (AC_EVCTRL) Comparator 1 Input Event Invert Enable
 
#define AC_EVCTRL_INVEI1   (_U_(1) << AC_EVCTRL_INVEI1_Pos)
 
#define AC_EVCTRL_INVEI_Pos   12
 (AC_EVCTRL) Comparator x Input Event Invert Enable
 
#define AC_EVCTRL_INVEI_Msk   (_U_(0x3) << AC_EVCTRL_INVEI_Pos)
 
#define AC_EVCTRL_INVEI(value)   (AC_EVCTRL_INVEI_Msk & ((value) << AC_EVCTRL_INVEI_Pos))
 
#define AC_EVCTRL_MASK   _U_(0x3313)
 (AC_EVCTRL) MASK Register
 
#define AC_INTENCLR_OFFSET   0x04
 (AC_INTENCLR offset) Interrupt Enable Clear
 
#define AC_INTENCLR_RESETVALUE   _U_(0x00)
 (AC_INTENCLR reset_value) Interrupt Enable Clear
 
#define AC_INTENCLR_COMP0_Pos   0
 (AC_INTENCLR) Comparator 0 Interrupt Enable
 
#define AC_INTENCLR_COMP0   (_U_(1) << AC_INTENCLR_COMP0_Pos)
 
#define AC_INTENCLR_COMP1_Pos   1
 (AC_INTENCLR) Comparator 1 Interrupt Enable
 
#define AC_INTENCLR_COMP1   (_U_(1) << AC_INTENCLR_COMP1_Pos)
 
#define AC_INTENCLR_COMP_Pos   0
 (AC_INTENCLR) Comparator x Interrupt Enable
 
#define AC_INTENCLR_COMP_Msk   (_U_(0x3) << AC_INTENCLR_COMP_Pos)
 
#define AC_INTENCLR_COMP(value)   (AC_INTENCLR_COMP_Msk & ((value) << AC_INTENCLR_COMP_Pos))
 
#define AC_INTENCLR_WIN0_Pos   4
 (AC_INTENCLR) Window 0 Interrupt Enable
 
#define AC_INTENCLR_WIN0   (_U_(1) << AC_INTENCLR_WIN0_Pos)
 
#define AC_INTENCLR_WIN_Pos   4
 (AC_INTENCLR) Window x Interrupt Enable
 
#define AC_INTENCLR_WIN_Msk   (_U_(0x1) << AC_INTENCLR_WIN_Pos)
 
#define AC_INTENCLR_WIN(value)   (AC_INTENCLR_WIN_Msk & ((value) << AC_INTENCLR_WIN_Pos))
 
#define AC_INTENCLR_MASK   _U_(0x13)
 (AC_INTENCLR) MASK Register
 
#define AC_INTENSET_OFFSET   0x05
 (AC_INTENSET offset) Interrupt Enable Set
 
#define AC_INTENSET_RESETVALUE   _U_(0x00)
 (AC_INTENSET reset_value) Interrupt Enable Set
 
#define AC_INTENSET_COMP0_Pos   0
 (AC_INTENSET) Comparator 0 Interrupt Enable
 
#define AC_INTENSET_COMP0   (_U_(1) << AC_INTENSET_COMP0_Pos)
 
#define AC_INTENSET_COMP1_Pos   1
 (AC_INTENSET) Comparator 1 Interrupt Enable
 
#define AC_INTENSET_COMP1   (_U_(1) << AC_INTENSET_COMP1_Pos)
 
#define AC_INTENSET_COMP_Pos   0
 (AC_INTENSET) Comparator x Interrupt Enable
 
#define AC_INTENSET_COMP_Msk   (_U_(0x3) << AC_INTENSET_COMP_Pos)
 
#define AC_INTENSET_COMP(value)   (AC_INTENSET_COMP_Msk & ((value) << AC_INTENSET_COMP_Pos))
 
#define AC_INTENSET_WIN0_Pos   4
 (AC_INTENSET) Window 0 Interrupt Enable
 
#define AC_INTENSET_WIN0   (_U_(1) << AC_INTENSET_WIN0_Pos)
 
#define AC_INTENSET_WIN_Pos   4
 (AC_INTENSET) Window x Interrupt Enable
 
#define AC_INTENSET_WIN_Msk   (_U_(0x1) << AC_INTENSET_WIN_Pos)
 
#define AC_INTENSET_WIN(value)   (AC_INTENSET_WIN_Msk & ((value) << AC_INTENSET_WIN_Pos))
 
#define AC_INTENSET_MASK   _U_(0x13)
 (AC_INTENSET) MASK Register
 
#define AC_INTFLAG_OFFSET   0x06
 (AC_INTFLAG offset) Interrupt Flag Status and Clear
 
#define AC_INTFLAG_RESETVALUE   _U_(0x00)
 (AC_INTFLAG reset_value) Interrupt Flag Status and Clear
 
#define AC_INTFLAG_COMP0_Pos   0
 (AC_INTFLAG) Comparator 0
 
#define AC_INTFLAG_COMP0   (_U_(1) << AC_INTFLAG_COMP0_Pos)
 
#define AC_INTFLAG_COMP1_Pos   1
 (AC_INTFLAG) Comparator 1
 
#define AC_INTFLAG_COMP1   (_U_(1) << AC_INTFLAG_COMP1_Pos)
 
#define AC_INTFLAG_COMP_Pos   0
 (AC_INTFLAG) Comparator x
 
#define AC_INTFLAG_COMP_Msk   (_U_(0x3) << AC_INTFLAG_COMP_Pos)
 
#define AC_INTFLAG_COMP(value)   (AC_INTFLAG_COMP_Msk & ((value) << AC_INTFLAG_COMP_Pos))
 
#define AC_INTFLAG_WIN0_Pos   4
 (AC_INTFLAG) Window 0
 
#define AC_INTFLAG_WIN0   (_U_(1) << AC_INTFLAG_WIN0_Pos)
 
#define AC_INTFLAG_WIN_Pos   4
 (AC_INTFLAG) Window x
 
#define AC_INTFLAG_WIN_Msk   (_U_(0x1) << AC_INTFLAG_WIN_Pos)
 
#define AC_INTFLAG_WIN(value)   (AC_INTFLAG_WIN_Msk & ((value) << AC_INTFLAG_WIN_Pos))
 
#define AC_INTFLAG_MASK   _U_(0x13)
 (AC_INTFLAG) MASK Register
 
#define AC_STATUSA_OFFSET   0x07
 (AC_STATUSA offset) Status A
 
#define AC_STATUSA_RESETVALUE   _U_(0x00)
 (AC_STATUSA reset_value) Status A
 
#define AC_STATUSA_STATE0_Pos   0
 (AC_STATUSA) Comparator 0 Current State
 
#define AC_STATUSA_STATE0   (_U_(1) << AC_STATUSA_STATE0_Pos)
 
#define AC_STATUSA_STATE1_Pos   1
 (AC_STATUSA) Comparator 1 Current State
 
#define AC_STATUSA_STATE1   (_U_(1) << AC_STATUSA_STATE1_Pos)
 
#define AC_STATUSA_STATE_Pos   0
 (AC_STATUSA) Comparator x Current State
 
#define AC_STATUSA_STATE_Msk   (_U_(0x3) << AC_STATUSA_STATE_Pos)
 
#define AC_STATUSA_STATE(value)   (AC_STATUSA_STATE_Msk & ((value) << AC_STATUSA_STATE_Pos))
 
#define AC_STATUSA_WSTATE0_Pos   4
 (AC_STATUSA) Window 0 Current State
 
#define AC_STATUSA_WSTATE0_Msk   (_U_(0x3) << AC_STATUSA_WSTATE0_Pos)
 
#define AC_STATUSA_WSTATE0(value)   (AC_STATUSA_WSTATE0_Msk & ((value) << AC_STATUSA_WSTATE0_Pos))
 
#define AC_STATUSA_WSTATE0_ABOVE_Val   _U_(0x0)
 (AC_STATUSA) Signal is above window
 
#define AC_STATUSA_WSTATE0_INSIDE_Val   _U_(0x1)
 (AC_STATUSA) Signal is inside window
 
#define AC_STATUSA_WSTATE0_BELOW_Val   _U_(0x2)
 (AC_STATUSA) Signal is below window
 
#define AC_STATUSA_WSTATE0_ABOVE   (AC_STATUSA_WSTATE0_ABOVE_Val << AC_STATUSA_WSTATE0_Pos)
 
#define AC_STATUSA_WSTATE0_INSIDE   (AC_STATUSA_WSTATE0_INSIDE_Val << AC_STATUSA_WSTATE0_Pos)
 
#define AC_STATUSA_WSTATE0_BELOW   (AC_STATUSA_WSTATE0_BELOW_Val << AC_STATUSA_WSTATE0_Pos)
 
#define AC_STATUSA_MASK   _U_(0x33)
 (AC_STATUSA) MASK Register
 
#define AC_STATUSB_OFFSET   0x08
 (AC_STATUSB offset) Status B
 
#define AC_STATUSB_RESETVALUE   _U_(0x00)
 (AC_STATUSB reset_value) Status B
 
#define AC_STATUSB_READY0_Pos   0
 (AC_STATUSB) Comparator 0 Ready
 
#define AC_STATUSB_READY0   (_U_(1) << AC_STATUSB_READY0_Pos)
 
#define AC_STATUSB_READY1_Pos   1
 (AC_STATUSB) Comparator 1 Ready
 
#define AC_STATUSB_READY1   (_U_(1) << AC_STATUSB_READY1_Pos)
 
#define AC_STATUSB_READY_Pos   0
 (AC_STATUSB) Comparator x Ready
 
#define AC_STATUSB_READY_Msk   (_U_(0x3) << AC_STATUSB_READY_Pos)
 
#define AC_STATUSB_READY(value)   (AC_STATUSB_READY_Msk & ((value) << AC_STATUSB_READY_Pos))
 
#define AC_STATUSB_MASK   _U_(0x03)
 (AC_STATUSB) MASK Register
 
#define AC_DBGCTRL_OFFSET   0x09
 (AC_DBGCTRL offset) Debug Control
 
#define AC_DBGCTRL_RESETVALUE   _U_(0x00)
 (AC_DBGCTRL reset_value) Debug Control
 
#define AC_DBGCTRL_DBGRUN_Pos   0
 (AC_DBGCTRL) Debug Run
 
#define AC_DBGCTRL_DBGRUN   (_U_(0x1) << AC_DBGCTRL_DBGRUN_Pos)
 
#define AC_DBGCTRL_MASK   _U_(0x01)
 (AC_DBGCTRL) MASK Register
 
#define AC_WINCTRL_OFFSET   0x0A
 (AC_WINCTRL offset) Window Control
 
#define AC_WINCTRL_RESETVALUE   _U_(0x00)
 (AC_WINCTRL reset_value) Window Control
 
#define AC_WINCTRL_WEN0_Pos   0
 (AC_WINCTRL) Window 0 Mode Enable
 
#define AC_WINCTRL_WEN0   (_U_(0x1) << AC_WINCTRL_WEN0_Pos)
 
#define AC_WINCTRL_WINTSEL0_Pos   1
 (AC_WINCTRL) Window 0 Interrupt Selection
 
#define AC_WINCTRL_WINTSEL0_Msk   (_U_(0x3) << AC_WINCTRL_WINTSEL0_Pos)
 
#define AC_WINCTRL_WINTSEL0(value)   (AC_WINCTRL_WINTSEL0_Msk & ((value) << AC_WINCTRL_WINTSEL0_Pos))
 
#define AC_WINCTRL_WINTSEL0_ABOVE_Val   _U_(0x0)
 (AC_WINCTRL) Interrupt on signal above window
 
#define AC_WINCTRL_WINTSEL0_INSIDE_Val   _U_(0x1)
 (AC_WINCTRL) Interrupt on signal inside window
 
#define AC_WINCTRL_WINTSEL0_BELOW_Val   _U_(0x2)
 (AC_WINCTRL) Interrupt on signal below window
 
#define AC_WINCTRL_WINTSEL0_OUTSIDE_Val   _U_(0x3)
 (AC_WINCTRL) Interrupt on signal outside window
 
#define AC_WINCTRL_WINTSEL0_ABOVE   (AC_WINCTRL_WINTSEL0_ABOVE_Val << AC_WINCTRL_WINTSEL0_Pos)
 
#define AC_WINCTRL_WINTSEL0_INSIDE   (AC_WINCTRL_WINTSEL0_INSIDE_Val << AC_WINCTRL_WINTSEL0_Pos)
 
#define AC_WINCTRL_WINTSEL0_BELOW   (AC_WINCTRL_WINTSEL0_BELOW_Val << AC_WINCTRL_WINTSEL0_Pos)
 
#define AC_WINCTRL_WINTSEL0_OUTSIDE   (AC_WINCTRL_WINTSEL0_OUTSIDE_Val << AC_WINCTRL_WINTSEL0_Pos)
 
#define AC_WINCTRL_MASK   _U_(0x07)
 (AC_WINCTRL) MASK Register
 
#define AC_SCALER_OFFSET   0x0C
 (AC_SCALER offset) Scaler n
 
#define AC_SCALER_RESETVALUE   _U_(0x00)
 (AC_SCALER reset_value) Scaler n
 
#define AC_SCALER_VALUE_Pos   0
 (AC_SCALER) Scaler Value
 
#define AC_SCALER_VALUE_Msk   (_U_(0x3F) << AC_SCALER_VALUE_Pos)
 
#define AC_SCALER_VALUE(value)   (AC_SCALER_VALUE_Msk & ((value) << AC_SCALER_VALUE_Pos))
 
#define AC_SCALER_MASK   _U_(0x3F)
 (AC_SCALER) MASK Register
 
#define AC_COMPCTRL_OFFSET   0x10
 (AC_COMPCTRL offset) Comparator Control n
 
#define AC_COMPCTRL_RESETVALUE   _U_(0x00000000)
 (AC_COMPCTRL reset_value) Comparator Control n
 
#define AC_COMPCTRL_ENABLE_Pos   1
 (AC_COMPCTRL) Enable
 
#define AC_COMPCTRL_ENABLE   (_U_(0x1) << AC_COMPCTRL_ENABLE_Pos)
 
#define AC_COMPCTRL_SINGLE_Pos   2
 (AC_COMPCTRL) Single-Shot Mode
 
#define AC_COMPCTRL_SINGLE   (_U_(0x1) << AC_COMPCTRL_SINGLE_Pos)
 
#define AC_COMPCTRL_INTSEL_Pos   3
 (AC_COMPCTRL) Interrupt Selection
 
#define AC_COMPCTRL_INTSEL_Msk   (_U_(0x3) << AC_COMPCTRL_INTSEL_Pos)
 
#define AC_COMPCTRL_INTSEL(value)   (AC_COMPCTRL_INTSEL_Msk & ((value) << AC_COMPCTRL_INTSEL_Pos))
 
#define AC_COMPCTRL_INTSEL_TOGGLE_Val   _U_(0x0)
 (AC_COMPCTRL) Interrupt on comparator output toggle
 
#define AC_COMPCTRL_INTSEL_RISING_Val   _U_(0x1)
 (AC_COMPCTRL) Interrupt on comparator output rising
 
#define AC_COMPCTRL_INTSEL_FALLING_Val   _U_(0x2)
 (AC_COMPCTRL) Interrupt on comparator output falling
 
#define AC_COMPCTRL_INTSEL_EOC_Val   _U_(0x3)
 (AC_COMPCTRL) Interrupt on end of comparison (single-shot mode only)
 
#define AC_COMPCTRL_INTSEL_TOGGLE   (AC_COMPCTRL_INTSEL_TOGGLE_Val << AC_COMPCTRL_INTSEL_Pos)
 
#define AC_COMPCTRL_INTSEL_RISING   (AC_COMPCTRL_INTSEL_RISING_Val << AC_COMPCTRL_INTSEL_Pos)
 
#define AC_COMPCTRL_INTSEL_FALLING   (AC_COMPCTRL_INTSEL_FALLING_Val << AC_COMPCTRL_INTSEL_Pos)
 
#define AC_COMPCTRL_INTSEL_EOC   (AC_COMPCTRL_INTSEL_EOC_Val << AC_COMPCTRL_INTSEL_Pos)
 
#define AC_COMPCTRL_RUNSTDBY_Pos   6
 (AC_COMPCTRL) Run in Standby
 
#define AC_COMPCTRL_RUNSTDBY   (_U_(0x1) << AC_COMPCTRL_RUNSTDBY_Pos)
 
#define AC_COMPCTRL_MUXNEG_Pos   8
 (AC_COMPCTRL) Negative Input Mux Selection
 
#define AC_COMPCTRL_MUXNEG_Msk   (_U_(0x7) << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG(value)   (AC_COMPCTRL_MUXNEG_Msk & ((value) << AC_COMPCTRL_MUXNEG_Pos))
 
#define AC_COMPCTRL_MUXNEG_PIN0_Val   _U_(0x0)
 (AC_COMPCTRL) I/O pin 0
 
#define AC_COMPCTRL_MUXNEG_PIN1_Val   _U_(0x1)
 (AC_COMPCTRL) I/O pin 1
 
#define AC_COMPCTRL_MUXNEG_PIN2_Val   _U_(0x2)
 (AC_COMPCTRL) I/O pin 2
 
#define AC_COMPCTRL_MUXNEG_PIN3_Val   _U_(0x3)
 (AC_COMPCTRL) I/O pin 3
 
#define AC_COMPCTRL_MUXNEG_GND_Val   _U_(0x4)
 (AC_COMPCTRL) Ground
 
#define AC_COMPCTRL_MUXNEG_VSCALE_Val   _U_(0x5)
 (AC_COMPCTRL) VDD scaler
 
#define AC_COMPCTRL_MUXNEG_BANDGAP_Val   _U_(0x6)
 (AC_COMPCTRL) Internal bandgap voltage
 
#define AC_COMPCTRL_MUXNEG_DAC_Val   _U_(0x7)
 (AC_COMPCTRL) DAC output
 
#define AC_COMPCTRL_MUXNEG_PIN0   (AC_COMPCTRL_MUXNEG_PIN0_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_PIN1   (AC_COMPCTRL_MUXNEG_PIN1_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_PIN2   (AC_COMPCTRL_MUXNEG_PIN2_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_PIN3   (AC_COMPCTRL_MUXNEG_PIN3_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_GND   (AC_COMPCTRL_MUXNEG_GND_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_VSCALE   (AC_COMPCTRL_MUXNEG_VSCALE_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_BANDGAP   (AC_COMPCTRL_MUXNEG_BANDGAP_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXNEG_DAC   (AC_COMPCTRL_MUXNEG_DAC_Val << AC_COMPCTRL_MUXNEG_Pos)
 
#define AC_COMPCTRL_MUXPOS_Pos   12
 (AC_COMPCTRL) Positive Input Mux Selection
 
#define AC_COMPCTRL_MUXPOS_Msk   (_U_(0x7) << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_MUXPOS(value)   (AC_COMPCTRL_MUXPOS_Msk & ((value) << AC_COMPCTRL_MUXPOS_Pos))
 
#define AC_COMPCTRL_MUXPOS_PIN0_Val   _U_(0x0)
 (AC_COMPCTRL) I/O pin 0
 
#define AC_COMPCTRL_MUXPOS_PIN1_Val   _U_(0x1)
 (AC_COMPCTRL) I/O pin 1
 
#define AC_COMPCTRL_MUXPOS_PIN2_Val   _U_(0x2)
 (AC_COMPCTRL) I/O pin 2
 
#define AC_COMPCTRL_MUXPOS_PIN3_Val   _U_(0x3)
 (AC_COMPCTRL) I/O pin 3
 
#define AC_COMPCTRL_MUXPOS_VSCALE_Val   _U_(0x4)
 (AC_COMPCTRL) VDD Scaler
 
#define AC_COMPCTRL_MUXPOS_PIN0   (AC_COMPCTRL_MUXPOS_PIN0_Val << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_MUXPOS_PIN1   (AC_COMPCTRL_MUXPOS_PIN1_Val << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_MUXPOS_PIN2   (AC_COMPCTRL_MUXPOS_PIN2_Val << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_MUXPOS_PIN3   (AC_COMPCTRL_MUXPOS_PIN3_Val << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_MUXPOS_VSCALE   (AC_COMPCTRL_MUXPOS_VSCALE_Val << AC_COMPCTRL_MUXPOS_Pos)
 
#define AC_COMPCTRL_SWAP_Pos   15
 (AC_COMPCTRL) Swap Inputs and Invert
 
#define AC_COMPCTRL_SWAP   (_U_(0x1) << AC_COMPCTRL_SWAP_Pos)
 
#define AC_COMPCTRL_SPEED_Pos   16
 (AC_COMPCTRL) Speed Selection
 
#define AC_COMPCTRL_SPEED_Msk   (_U_(0x3) << AC_COMPCTRL_SPEED_Pos)
 
#define AC_COMPCTRL_SPEED(value)   (AC_COMPCTRL_SPEED_Msk & ((value) << AC_COMPCTRL_SPEED_Pos))
 
#define AC_COMPCTRL_SPEED_HIGH_Val   _U_(0x3)
 (AC_COMPCTRL) High speed
 
#define AC_COMPCTRL_SPEED_HIGH   (AC_COMPCTRL_SPEED_HIGH_Val << AC_COMPCTRL_SPEED_Pos)
 
#define AC_COMPCTRL_HYSTEN_Pos   19
 (AC_COMPCTRL) Hysteresis Enable
 
#define AC_COMPCTRL_HYSTEN   (_U_(0x1) << AC_COMPCTRL_HYSTEN_Pos)
 
#define AC_COMPCTRL_HYST_Pos   20
 (AC_COMPCTRL) Hysteresis Level
 
#define AC_COMPCTRL_HYST_Msk   (_U_(0x3) << AC_COMPCTRL_HYST_Pos)
 
#define AC_COMPCTRL_HYST(value)   (AC_COMPCTRL_HYST_Msk & ((value) << AC_COMPCTRL_HYST_Pos))
 
#define AC_COMPCTRL_HYST_HYST50_Val   _U_(0x0)
 (AC_COMPCTRL) 50mV
 
#define AC_COMPCTRL_HYST_HYST100_Val   _U_(0x1)
 (AC_COMPCTRL) 100mV
 
#define AC_COMPCTRL_HYST_HYST150_Val   _U_(0x2)
 (AC_COMPCTRL) 150mV
 
#define AC_COMPCTRL_HYST_HYST50   (AC_COMPCTRL_HYST_HYST50_Val << AC_COMPCTRL_HYST_Pos)
 
#define AC_COMPCTRL_HYST_HYST100   (AC_COMPCTRL_HYST_HYST100_Val << AC_COMPCTRL_HYST_Pos)
 
#define AC_COMPCTRL_HYST_HYST150   (AC_COMPCTRL_HYST_HYST150_Val << AC_COMPCTRL_HYST_Pos)
 
#define AC_COMPCTRL_FLEN_Pos   24
 (AC_COMPCTRL) Filter Length
 
#define AC_COMPCTRL_FLEN_Msk   (_U_(0x7) << AC_COMPCTRL_FLEN_Pos)
 
#define AC_COMPCTRL_FLEN(value)   (AC_COMPCTRL_FLEN_Msk & ((value) << AC_COMPCTRL_FLEN_Pos))
 
#define AC_COMPCTRL_FLEN_OFF_Val   _U_(0x0)
 (AC_COMPCTRL) No filtering
 
#define AC_COMPCTRL_FLEN_MAJ3_Val   _U_(0x1)
 (AC_COMPCTRL) 3-bit majority function (2 of 3)
 
#define AC_COMPCTRL_FLEN_MAJ5_Val   _U_(0x2)
 (AC_COMPCTRL) 5-bit majority function (3 of 5)
 
#define AC_COMPCTRL_FLEN_OFF   (AC_COMPCTRL_FLEN_OFF_Val << AC_COMPCTRL_FLEN_Pos)
 
#define AC_COMPCTRL_FLEN_MAJ3   (AC_COMPCTRL_FLEN_MAJ3_Val << AC_COMPCTRL_FLEN_Pos)
 
#define AC_COMPCTRL_FLEN_MAJ5   (AC_COMPCTRL_FLEN_MAJ5_Val << AC_COMPCTRL_FLEN_Pos)
 
#define AC_COMPCTRL_OUT_Pos   28
 (AC_COMPCTRL) Output
 
#define AC_COMPCTRL_OUT_Msk   (_U_(0x3) << AC_COMPCTRL_OUT_Pos)
 
#define AC_COMPCTRL_OUT(value)   (AC_COMPCTRL_OUT_Msk & ((value) << AC_COMPCTRL_OUT_Pos))
 
#define AC_COMPCTRL_OUT_OFF_Val   _U_(0x0)
 (AC_COMPCTRL) The output of COMPn is not routed to the COMPn I/O port
 
#define AC_COMPCTRL_OUT_ASYNC_Val   _U_(0x1)
 (AC_COMPCTRL) The asynchronous output of COMPn is routed to the COMPn I/O port
 
#define AC_COMPCTRL_OUT_SYNC_Val   _U_(0x2)
 (AC_COMPCTRL) The synchronous output (including filtering) of COMPn is routed to the COMPn I/O port
 
#define AC_COMPCTRL_OUT_OFF   (AC_COMPCTRL_OUT_OFF_Val << AC_COMPCTRL_OUT_Pos)
 
#define AC_COMPCTRL_OUT_ASYNC   (AC_COMPCTRL_OUT_ASYNC_Val << AC_COMPCTRL_OUT_Pos)
 
#define AC_COMPCTRL_OUT_SYNC   (AC_COMPCTRL_OUT_SYNC_Val << AC_COMPCTRL_OUT_Pos)
 
#define AC_COMPCTRL_MASK   _U_(0x373BF75E)
 (AC_COMPCTRL) MASK Register
 
#define AC_SYNCBUSY_OFFSET   0x20
 (AC_SYNCBUSY offset) Synchronization Busy
 
#define AC_SYNCBUSY_RESETVALUE   _U_(0x00000000)
 (AC_SYNCBUSY reset_value) Synchronization Busy
 
#define AC_SYNCBUSY_SWRST_Pos   0
 (AC_SYNCBUSY) Software Reset Synchronization Busy
 
#define AC_SYNCBUSY_SWRST   (_U_(0x1) << AC_SYNCBUSY_SWRST_Pos)
 
#define AC_SYNCBUSY_ENABLE_Pos   1
 (AC_SYNCBUSY) Enable Synchronization Busy
 
#define AC_SYNCBUSY_ENABLE   (_U_(0x1) << AC_SYNCBUSY_ENABLE_Pos)
 
#define AC_SYNCBUSY_WINCTRL_Pos   2
 (AC_SYNCBUSY) WINCTRL Synchronization Busy
 
#define AC_SYNCBUSY_WINCTRL   (_U_(0x1) << AC_SYNCBUSY_WINCTRL_Pos)
 
#define AC_SYNCBUSY_COMPCTRL0_Pos   3
 (AC_SYNCBUSY) COMPCTRL 0 Synchronization Busy
 
#define AC_SYNCBUSY_COMPCTRL0   (_U_(1) << AC_SYNCBUSY_COMPCTRL0_Pos)
 
#define AC_SYNCBUSY_COMPCTRL1_Pos   4
 (AC_SYNCBUSY) COMPCTRL 1 Synchronization Busy
 
#define AC_SYNCBUSY_COMPCTRL1   (_U_(1) << AC_SYNCBUSY_COMPCTRL1_Pos)
 
#define AC_SYNCBUSY_COMPCTRL_Pos   3
 (AC_SYNCBUSY) COMPCTRL x Synchronization Busy
 
#define AC_SYNCBUSY_COMPCTRL_Msk   (_U_(0x3) << AC_SYNCBUSY_COMPCTRL_Pos)
 
#define AC_SYNCBUSY_COMPCTRL(value)   (AC_SYNCBUSY_COMPCTRL_Msk & ((value) << AC_SYNCBUSY_COMPCTRL_Pos))
 
#define AC_SYNCBUSY_MASK   _U_(0x0000001F)
 (AC_SYNCBUSY) MASK Register
 
#define AC_CALIB_OFFSET   0x24
 (AC_CALIB offset) Calibration
 
#define AC_CALIB_RESETVALUE   _U_(0x0101)
 (AC_CALIB reset_value) Calibration
 
#define AC_CALIB_BIAS0_Pos   0
 (AC_CALIB) COMP0/1 Bias Scaling
 
#define AC_CALIB_BIAS0_Msk   (_U_(0x3) << AC_CALIB_BIAS0_Pos)
 
#define AC_CALIB_BIAS0(value)   (AC_CALIB_BIAS0_Msk & ((value) << AC_CALIB_BIAS0_Pos))
 
#define AC_CALIB_MASK   _U_(0x0003)
 (AC_CALIB) MASK Register
 

Detailed Description

Component description for AC.

Copyright (c) 2019 Microchip Technology Inc.

\asf_license_start

Definition in file ac.h.