mikroSDK Reference Manual
|
Macros | |
#define | CMP0_BASE (0x40073000u) |
#define | CMP0 ((CMP_Type *)CMP0_BASE) |
#define | CMP1_BASE (0x40073008u) |
#define | CMP1 ((CMP_Type *)CMP1_BASE) |
#define | CMP2_BASE (0x40073010u) |
#define | CMP2 ((CMP_Type *)CMP2_BASE) |
#define | CMP_BASE_ADDRS { CMP0_BASE, CMP1_BASE, CMP2_BASE } |
#define | CMP_BASE_PTRS { CMP0, CMP1, CMP2 } |
#define | CMP_IRQS { CMP0_IRQn, CMP1_IRQn, CMP2_IRQn } |
#define | CMP_SCR_SMELB_MASK 0x20u |
#define | CMP_SCR_SMELB_SHIFT 5 |
#define | CMP_MUXCR_MEN_MASK 0x40u |
#define | CMP_MUXCR_MEN_SHIFT 6 |
#define | CMP_MUXCR_PEN_MASK 0x80u |
#define | CMP_MUXCR_PEN_SHIFT 7 |
CR0 - CMP Control Register 0 | |
#define | CMP_CR0_HYSTCTR_MASK (0x3U) |
#define | CMP_CR0_HYSTCTR_SHIFT (0U) |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK (0x70U) |
#define | CMP_CR0_FILTER_CNT_SHIFT (4U) |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
#define | CMP_CR0_HYSTCTR_MASK 0x3u |
#define | CMP_CR0_HYSTCTR_SHIFT 0 |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_HYSTCTR_SHIFT))&CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK 0x70u |
#define | CMP_CR0_FILTER_CNT_SHIFT 4 |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_FILTER_CNT_SHIFT))&CMP_CR0_FILTER_CNT_MASK) |
#define | CMP_CR0_HYSTCTR_MASK (0x3U) |
#define | CMP_CR0_HYSTCTR_SHIFT (0U) |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK (0x70U) |
#define | CMP_CR0_FILTER_CNT_SHIFT (4U) |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
#define | CMP_CR0_HYSTCTR_MASK (0x3U) |
#define | CMP_CR0_HYSTCTR_SHIFT (0U) |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK (0x70U) |
#define | CMP_CR0_FILTER_CNT_SHIFT (4U) |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
#define | CMP_CR0_HYSTCTR_MASK (0x3U) |
#define | CMP_CR0_HYSTCTR_SHIFT (0U) |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK (0x70U) |
#define | CMP_CR0_FILTER_CNT_SHIFT (4U) |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
#define | CMP_CR0_HYSTCTR_MASK (0x3U) |
#define | CMP_CR0_HYSTCTR_SHIFT (0U) |
#define | CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
#define | CMP_CR0_FILTER_CNT_MASK (0x70U) |
#define | CMP_CR0_FILTER_CNT_SHIFT (4U) |
#define | CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
CR1 - CMP Control Register 1 | |
#define | CMP_CR1_EN_MASK (0x1U) |
#define | CMP_CR1_EN_SHIFT (0U) |
#define | CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
#define | CMP_CR1_OPE_MASK (0x2U) |
#define | CMP_CR1_OPE_SHIFT (1U) |
#define | CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
#define | CMP_CR1_COS_MASK (0x4U) |
#define | CMP_CR1_COS_SHIFT (2U) |
#define | CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
#define | CMP_CR1_INV_MASK (0x8U) |
#define | CMP_CR1_INV_SHIFT (3U) |
#define | CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
#define | CMP_CR1_PMODE_MASK (0x10U) |
#define | CMP_CR1_PMODE_SHIFT (4U) |
#define | CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
#define | CMP_CR1_WE_MASK (0x40U) |
#define | CMP_CR1_WE_SHIFT (6U) |
#define | CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
#define | CMP_CR1_SE_MASK (0x80U) |
#define | CMP_CR1_SE_SHIFT (7U) |
#define | CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
#define | CMP_CR1_EN_MASK 0x1u |
#define | CMP_CR1_EN_SHIFT 0 |
#define | CMP_CR1_OPE_MASK 0x2u |
#define | CMP_CR1_OPE_SHIFT 1 |
#define | CMP_CR1_COS_MASK 0x4u |
#define | CMP_CR1_COS_SHIFT 2 |
#define | CMP_CR1_INV_MASK 0x8u |
#define | CMP_CR1_INV_SHIFT 3 |
#define | CMP_CR1_PMODE_MASK 0x10u |
#define | CMP_CR1_PMODE_SHIFT 4 |
#define | CMP_CR1_WE_MASK 0x40u |
#define | CMP_CR1_WE_SHIFT 6 |
#define | CMP_CR1_SE_MASK 0x80u |
#define | CMP_CR1_SE_SHIFT 7 |
#define | CMP_CR1_EN_MASK (0x1U) |
#define | CMP_CR1_EN_SHIFT (0U) |
#define | CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
#define | CMP_CR1_OPE_MASK (0x2U) |
#define | CMP_CR1_OPE_SHIFT (1U) |
#define | CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
#define | CMP_CR1_COS_MASK (0x4U) |
#define | CMP_CR1_COS_SHIFT (2U) |
#define | CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
#define | CMP_CR1_INV_MASK (0x8U) |
#define | CMP_CR1_INV_SHIFT (3U) |
#define | CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
#define | CMP_CR1_PMODE_MASK (0x10U) |
#define | CMP_CR1_PMODE_SHIFT (4U) |
#define | CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
#define | CMP_CR1_WE_MASK (0x40U) |
#define | CMP_CR1_WE_SHIFT (6U) |
#define | CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
#define | CMP_CR1_SE_MASK (0x80U) |
#define | CMP_CR1_SE_SHIFT (7U) |
#define | CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
#define | CMP_CR1_EN_MASK (0x1U) |
#define | CMP_CR1_EN_SHIFT (0U) |
#define | CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
#define | CMP_CR1_OPE_MASK (0x2U) |
#define | CMP_CR1_OPE_SHIFT (1U) |
#define | CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
#define | CMP_CR1_COS_MASK (0x4U) |
#define | CMP_CR1_COS_SHIFT (2U) |
#define | CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
#define | CMP_CR1_INV_MASK (0x8U) |
#define | CMP_CR1_INV_SHIFT (3U) |
#define | CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
#define | CMP_CR1_PMODE_MASK (0x10U) |
#define | CMP_CR1_PMODE_SHIFT (4U) |
#define | CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
#define | CMP_CR1_TRIGM_MASK (0x20U) |
#define | CMP_CR1_TRIGM_SHIFT (5U) |
#define | CMP_CR1_TRIGM(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
#define | CMP_CR1_WE_MASK (0x40U) |
#define | CMP_CR1_WE_SHIFT (6U) |
#define | CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
#define | CMP_CR1_SE_MASK (0x80U) |
#define | CMP_CR1_SE_SHIFT (7U) |
#define | CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
#define | CMP_CR1_EN_MASK (0x1U) |
#define | CMP_CR1_EN_SHIFT (0U) |
#define | CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
#define | CMP_CR1_OPE_MASK (0x2U) |
#define | CMP_CR1_OPE_SHIFT (1U) |
#define | CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
#define | CMP_CR1_COS_MASK (0x4U) |
#define | CMP_CR1_COS_SHIFT (2U) |
#define | CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
#define | CMP_CR1_INV_MASK (0x8U) |
#define | CMP_CR1_INV_SHIFT (3U) |
#define | CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
#define | CMP_CR1_PMODE_MASK (0x10U) |
#define | CMP_CR1_PMODE_SHIFT (4U) |
#define | CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
#define | CMP_CR1_TRIGM_MASK (0x20U) |
#define | CMP_CR1_TRIGM_SHIFT (5U) |
#define | CMP_CR1_TRIGM(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
#define | CMP_CR1_WE_MASK (0x40U) |
#define | CMP_CR1_WE_SHIFT (6U) |
#define | CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
#define | CMP_CR1_SE_MASK (0x80U) |
#define | CMP_CR1_SE_SHIFT (7U) |
#define | CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
#define | CMP_CR1_EN_MASK (0x1U) |
#define | CMP_CR1_EN_SHIFT (0U) |
#define | CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
#define | CMP_CR1_OPE_MASK (0x2U) |
#define | CMP_CR1_OPE_SHIFT (1U) |
#define | CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
#define | CMP_CR1_COS_MASK (0x4U) |
#define | CMP_CR1_COS_SHIFT (2U) |
#define | CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
#define | CMP_CR1_INV_MASK (0x8U) |
#define | CMP_CR1_INV_SHIFT (3U) |
#define | CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
#define | CMP_CR1_PMODE_MASK (0x10U) |
#define | CMP_CR1_PMODE_SHIFT (4U) |
#define | CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
#define | CMP_CR1_TRIGM_MASK (0x20U) |
#define | CMP_CR1_TRIGM_SHIFT (5U) |
#define | CMP_CR1_TRIGM(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
#define | CMP_CR1_WE_MASK (0x40U) |
#define | CMP_CR1_WE_SHIFT (6U) |
#define | CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
#define | CMP_CR1_SE_MASK (0x80U) |
#define | CMP_CR1_SE_SHIFT (7U) |
#define | CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SCR - CMP Status and Control Register | |
#define | CMP_SCR_COUT_MASK (0x1U) |
#define | CMP_SCR_COUT_SHIFT (0U) |
#define | CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
#define | CMP_SCR_CFF_MASK (0x2U) |
#define | CMP_SCR_CFF_SHIFT (1U) |
#define | CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
#define | CMP_SCR_CFR_MASK (0x4U) |
#define | CMP_SCR_CFR_SHIFT (2U) |
#define | CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
#define | CMP_SCR_IEF_MASK (0x8U) |
#define | CMP_SCR_IEF_SHIFT (3U) |
#define | CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
#define | CMP_SCR_IER_MASK (0x10U) |
#define | CMP_SCR_IER_SHIFT (4U) |
#define | CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
#define | CMP_SCR_DMAEN_MASK (0x40U) |
#define | CMP_SCR_DMAEN_SHIFT (6U) |
#define | CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
#define | CMP_SCR_COUT_MASK 0x1u |
#define | CMP_SCR_COUT_SHIFT 0 |
#define | CMP_SCR_CFF_MASK 0x2u |
#define | CMP_SCR_CFF_SHIFT 1 |
#define | CMP_SCR_CFR_MASK 0x4u |
#define | CMP_SCR_CFR_SHIFT 2 |
#define | CMP_SCR_IEF_MASK 0x8u |
#define | CMP_SCR_IEF_SHIFT 3 |
#define | CMP_SCR_IER_MASK 0x10u |
#define | CMP_SCR_IER_SHIFT 4 |
#define | CMP_SCR_DMAEN_MASK 0x40u |
#define | CMP_SCR_DMAEN_SHIFT 6 |
#define | CMP_SCR_COUT_MASK (0x1U) |
#define | CMP_SCR_COUT_SHIFT (0U) |
#define | CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
#define | CMP_SCR_CFF_MASK (0x2U) |
#define | CMP_SCR_CFF_SHIFT (1U) |
#define | CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
#define | CMP_SCR_CFR_MASK (0x4U) |
#define | CMP_SCR_CFR_SHIFT (2U) |
#define | CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
#define | CMP_SCR_IEF_MASK (0x8U) |
#define | CMP_SCR_IEF_SHIFT (3U) |
#define | CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
#define | CMP_SCR_IER_MASK (0x10U) |
#define | CMP_SCR_IER_SHIFT (4U) |
#define | CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
#define | CMP_SCR_DMAEN_MASK (0x40U) |
#define | CMP_SCR_DMAEN_SHIFT (6U) |
#define | CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
#define | CMP_SCR_COUT_MASK (0x1U) |
#define | CMP_SCR_COUT_SHIFT (0U) |
#define | CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
#define | CMP_SCR_CFF_MASK (0x2U) |
#define | CMP_SCR_CFF_SHIFT (1U) |
#define | CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
#define | CMP_SCR_CFR_MASK (0x4U) |
#define | CMP_SCR_CFR_SHIFT (2U) |
#define | CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
#define | CMP_SCR_IEF_MASK (0x8U) |
#define | CMP_SCR_IEF_SHIFT (3U) |
#define | CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
#define | CMP_SCR_IER_MASK (0x10U) |
#define | CMP_SCR_IER_SHIFT (4U) |
#define | CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
#define | CMP_SCR_DMAEN_MASK (0x40U) |
#define | CMP_SCR_DMAEN_SHIFT (6U) |
#define | CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
#define | CMP_SCR_COUT_MASK (0x1U) |
#define | CMP_SCR_COUT_SHIFT (0U) |
#define | CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
#define | CMP_SCR_CFF_MASK (0x2U) |
#define | CMP_SCR_CFF_SHIFT (1U) |
#define | CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
#define | CMP_SCR_CFR_MASK (0x4U) |
#define | CMP_SCR_CFR_SHIFT (2U) |
#define | CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
#define | CMP_SCR_IEF_MASK (0x8U) |
#define | CMP_SCR_IEF_SHIFT (3U) |
#define | CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
#define | CMP_SCR_IER_MASK (0x10U) |
#define | CMP_SCR_IER_SHIFT (4U) |
#define | CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
#define | CMP_SCR_DMAEN_MASK (0x40U) |
#define | CMP_SCR_DMAEN_SHIFT (6U) |
#define | CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
#define | CMP_SCR_COUT_MASK (0x1U) |
#define | CMP_SCR_COUT_SHIFT (0U) |
#define | CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
#define | CMP_SCR_CFF_MASK (0x2U) |
#define | CMP_SCR_CFF_SHIFT (1U) |
#define | CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
#define | CMP_SCR_CFR_MASK (0x4U) |
#define | CMP_SCR_CFR_SHIFT (2U) |
#define | CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
#define | CMP_SCR_IEF_MASK (0x8U) |
#define | CMP_SCR_IEF_SHIFT (3U) |
#define | CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
#define | CMP_SCR_IER_MASK (0x10U) |
#define | CMP_SCR_IER_SHIFT (4U) |
#define | CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
#define | CMP_SCR_DMAEN_MASK (0x40U) |
#define | CMP_SCR_DMAEN_SHIFT (6U) |
#define | CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DACCR - DAC Control Register | |
#define | CMP_DACCR_VOSEL_MASK (0x3FU) |
#define | CMP_DACCR_VOSEL_SHIFT (0U) |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK (0x40U) |
#define | CMP_DACCR_VRSEL_SHIFT (6U) |
#define | CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
#define | CMP_DACCR_DACEN_MASK (0x80U) |
#define | CMP_DACCR_DACEN_SHIFT (7U) |
#define | CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
#define | CMP_DACCR_VOSEL_MASK 0x3Fu |
#define | CMP_DACCR_VOSEL_SHIFT 0 |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_DACCR_VOSEL_SHIFT))&CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK 0x40u |
#define | CMP_DACCR_VRSEL_SHIFT 6 |
#define | CMP_DACCR_DACEN_MASK 0x80u |
#define | CMP_DACCR_DACEN_SHIFT 7 |
#define | CMP_DACCR_VOSEL_MASK (0x3FU) |
#define | CMP_DACCR_VOSEL_SHIFT (0U) |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK (0x40U) |
#define | CMP_DACCR_VRSEL_SHIFT (6U) |
#define | CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
#define | CMP_DACCR_DACEN_MASK (0x80U) |
#define | CMP_DACCR_DACEN_SHIFT (7U) |
#define | CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
#define | CMP_DACCR_VOSEL_MASK (0x3FU) |
#define | CMP_DACCR_VOSEL_SHIFT (0U) |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK (0x40U) |
#define | CMP_DACCR_VRSEL_SHIFT (6U) |
#define | CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
#define | CMP_DACCR_DACEN_MASK (0x80U) |
#define | CMP_DACCR_DACEN_SHIFT (7U) |
#define | CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
#define | CMP_DACCR_VOSEL_MASK (0x3FU) |
#define | CMP_DACCR_VOSEL_SHIFT (0U) |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK (0x40U) |
#define | CMP_DACCR_VRSEL_SHIFT (6U) |
#define | CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
#define | CMP_DACCR_DACEN_MASK (0x80U) |
#define | CMP_DACCR_DACEN_SHIFT (7U) |
#define | CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
#define | CMP_DACCR_VOSEL_MASK (0x3FU) |
#define | CMP_DACCR_VOSEL_SHIFT (0U) |
#define | CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
#define | CMP_DACCR_VRSEL_MASK (0x40U) |
#define | CMP_DACCR_VRSEL_SHIFT (6U) |
#define | CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
#define | CMP_DACCR_DACEN_MASK (0x80U) |
#define | CMP_DACCR_DACEN_SHIFT (7U) |
#define | CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
MUXCR - MUX Control Register | |
#define | CMP_MUXCR_MSEL_MASK (0x7U) |
#define | CMP_MUXCR_MSEL_SHIFT (0U) |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK (0x38U) |
#define | CMP_MUXCR_PSEL_SHIFT (3U) |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
#define | CMP_MUXCR_MSEL_MASK 0x7u |
#define | CMP_MUXCR_MSEL_SHIFT 0 |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_MSEL_SHIFT))&CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK 0x38u |
#define | CMP_MUXCR_PSEL_SHIFT 3 |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_PSEL_SHIFT))&CMP_MUXCR_PSEL_MASK) |
#define | CMP_MUXCR_MSEL_MASK (0x7U) |
#define | CMP_MUXCR_MSEL_SHIFT (0U) |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK (0x38U) |
#define | CMP_MUXCR_PSEL_SHIFT (3U) |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
#define | CMP_MUXCR_MSEL_MASK (0x7U) |
#define | CMP_MUXCR_MSEL_SHIFT (0U) |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK (0x38U) |
#define | CMP_MUXCR_PSEL_SHIFT (3U) |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
#define | CMP_MUXCR_MSEL_MASK (0x7U) |
#define | CMP_MUXCR_MSEL_SHIFT (0U) |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK (0x38U) |
#define | CMP_MUXCR_PSEL_SHIFT (3U) |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
#define | CMP_MUXCR_MSEL_MASK (0x7U) |
#define | CMP_MUXCR_MSEL_SHIFT (0U) |
#define | CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
#define | CMP_MUXCR_PSEL_MASK (0x38U) |
#define | CMP_MUXCR_PSEL_SHIFT (3U) |
#define | CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
MUXCR - MUX Control Register | |
#define | CMP_MUXCR_PSTM_MASK (0x40U) |
#define | CMP_MUXCR_PSTM_SHIFT (6U) |
#define | CMP_MUXCR_PSTM(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
#define | CMP_MUXCR_PSTM_MASK (0x80U) |
#define | CMP_MUXCR_PSTM_SHIFT (7U) |
#define | CMP_MUXCR_PSTM(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
#define | CMP_MUXCR_PSTM_MASK (0x80U) |
#define | CMP_MUXCR_PSTM_SHIFT (7U) |
#define | CMP_MUXCR_PSTM(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
#define | CMP_MUXCR_PSTM_MASK (0x80U) |
#define | CMP_MUXCR_PSTM_SHIFT (7U) |
#define | CMP_MUXCR_PSTM(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
#define CMP0_BASE (0x40073000u) |
Peripheral CMP0 base address
#define CMP1_BASE (0x40073008u) |
Peripheral CMP1 base address
#define CMP2_BASE (0x40073010u) |
Peripheral CMP2 base address
Array initializer of CMP peripheral base addresses
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<CMP_CR0_FILTER_CNT_SHIFT))&CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_FILTER_CNT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
FILTER_CNT - Filter Sample Count 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 0b001..One sample must agree. The comparator output is simply sampled. 0b010..2 consecutive samples must agree. 0b011..3 consecutive samples must agree. 0b100..4 consecutive samples must agree. 0b101..5 consecutive samples must agree. 0b110..6 consecutive samples must agree. 0b111..7 consecutive samples must agree.
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<CMP_CR0_HYSTCTR_SHIFT))&CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR0_HYSTCTR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
HYSTCTR - Comparator hard block hysteresis control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
#define CMP_CR1_COS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
COS - Comparator Output Select 0b0..Set the filtered comparator output (CMPO) to equal COUT. 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA.
#define CMP_CR1_COS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
COS - Comparator Output Select 0b0..Set the filtered comparator output (CMPO) to equal COUT. 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA.
#define CMP_CR1_COS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
COS - Comparator Output Select 0b0..Set the filtered comparator output (CMPO) to equal COUT. 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA.
#define CMP_CR1_COS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
COS - Comparator Output Select 0b0..Set the filtered comparator output (CMPO) to equal COUT. 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA.
#define CMP_CR1_COS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
COS - Comparator Output Select 0b0..Set the filtered comparator output (CMPO) to equal COUT. 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA.
#define CMP_CR1_EN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
EN - Comparator Module Enable 0b0..Analog Comparator is disabled. 0b1..Analog Comparator is enabled.
#define CMP_CR1_EN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
EN - Comparator Module Enable 0b0..Analog Comparator is disabled. 0b1..Analog Comparator is enabled.
#define CMP_CR1_EN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
EN - Comparator Module Enable 0b0..Analog Comparator is disabled. 0b1..Analog Comparator is enabled.
#define CMP_CR1_EN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
EN - Comparator Module Enable 0b0..Analog Comparator is disabled. 0b1..Analog Comparator is enabled.
#define CMP_CR1_EN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
EN - Comparator Module Enable 0b0..Analog Comparator is disabled. 0b1..Analog Comparator is enabled.
#define CMP_CR1_INV | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
INV - Comparator INVERT 0b0..Does not invert the comparator output. 0b1..Inverts the comparator output.
#define CMP_CR1_INV | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
INV - Comparator INVERT 0b0..Does not invert the comparator output. 0b1..Inverts the comparator output.
#define CMP_CR1_INV | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
INV - Comparator INVERT 0b0..Does not invert the comparator output. 0b1..Inverts the comparator output.
#define CMP_CR1_INV | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
INV - Comparator INVERT 0b0..Does not invert the comparator output. 0b1..Inverts the comparator output.
#define CMP_CR1_INV | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
INV - Comparator INVERT 0b0..Does not invert the comparator output. 0b1..Inverts the comparator output.
#define CMP_CR1_OPE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
OPE - Comparator Output Pin Enable 0b0..CMPO is not available on the associated CMPO output pin. If the comparator does not own the pin, this field has no effect. 0b1..CMPO is available on the associated CMPO output pin. The comparator output (CMPO) is driven out on the associated CMPO output pin if the comparator owns the pin. If the comparator does not own the field, this bit has no effect.
#define CMP_CR1_OPE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
OPE - Comparator Output Pin Enable 0b0..CMPO is not available on the associated CMPO output pin. If the comparator does not own the pin, this field has no effect. 0b1..CMPO is available on the associated CMPO output pin. The comparator output (CMPO) is driven out on the associated CMPO output pin if the comparator owns the pin. If the comparator does not own the field, this bit has no effect.
#define CMP_CR1_OPE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
OPE - Comparator Output Pin Enable 0b0..CMPO is not available on the associated CMPO output pin. If the comparator does not own the pin, this field has no effect. 0b1..CMPO is available on the associated CMPO output pin. The comparator output (CMPO) is driven out on the associated CMPO output pin if the comparator owns the pin. If the comparator does not own the field, this bit has no effect.
#define CMP_CR1_OPE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
OPE - Comparator Output Pin Enable 0b0..CMPO is not available on the associated CMPO output pin. If the comparator does not own the pin, this field has no effect. 0b1..CMPO is available on the associated CMPO output pin. The comparator output (CMPO) is driven out on the associated CMPO output pin if the comparator owns the pin. If the comparator does not own the field, this bit has no effect.
#define CMP_CR1_OPE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
OPE - Comparator Output Pin Enable 0b0..CMPO is not available on the associated CMPO output pin. If the comparator does not own the pin, this field has no effect. 0b1..CMPO is available on the associated CMPO output pin. The comparator output (CMPO) is driven out on the associated CMPO output pin if the comparator owns the pin. If the comparator does not own the field, this bit has no effect.
#define CMP_CR1_PMODE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
PMODE - Power Mode Select 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption.
#define CMP_CR1_PMODE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
PMODE - Power Mode Select 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption.
#define CMP_CR1_PMODE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
PMODE - Power Mode Select 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption.
#define CMP_CR1_PMODE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
PMODE - Power Mode Select 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption.
#define CMP_CR1_PMODE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
PMODE - Power Mode Select 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption.
#define CMP_CR1_SE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SE - Sample Enable 0b0..Sampling mode is not selected. 0b1..Sampling mode is selected.
#define CMP_CR1_SE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SE - Sample Enable 0b0..Sampling mode is not selected. 0b1..Sampling mode is selected.
#define CMP_CR1_SE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SE - Sample Enable 0b0..Sampling mode is not selected. 0b1..Sampling mode is selected.
#define CMP_CR1_SE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SE - Sample Enable 0b0..Sampling mode is not selected. 0b1..Sampling mode is selected.
#define CMP_CR1_SE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
SE - Sample Enable 0b0..Sampling mode is not selected. 0b1..Sampling mode is selected.
#define CMP_CR1_TRIGM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
TRIGM - Trigger Mode Enable 0b0..Trigger mode is disabled. 0b1..Trigger mode is enabled.
#define CMP_CR1_TRIGM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
TRIGM - Trigger Mode Enable 0b0..Trigger mode is disabled. 0b1..Trigger mode is enabled.
#define CMP_CR1_TRIGM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
TRIGM - Trigger Mode Enable 0b0..Trigger mode is disabled. 0b1..Trigger mode is enabled.
#define CMP_CR1_WE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
WE - Windowing Enable 0b0..Windowing mode is not selected. 0b1..Windowing mode is selected.
#define CMP_CR1_WE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
WE - Windowing Enable 0b0..Windowing mode is not selected. 0b1..Windowing mode is selected.
#define CMP_CR1_WE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
WE - Windowing Enable 0b0..Windowing mode is not selected. 0b1..Windowing mode is selected.
#define CMP_CR1_WE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
WE - Windowing Enable 0b0..Windowing mode is not selected. 0b1..Windowing mode is selected.
#define CMP_CR1_WE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
WE - Windowing Enable 0b0..Windowing mode is not selected. 0b1..Windowing mode is selected.
#define CMP_DACCR_DACEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
DACEN - DAC Enable 0b0..DAC is disabled. 0b1..DAC is enabled.
#define CMP_DACCR_DACEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
DACEN - DAC Enable 0b0..DAC is disabled. 0b1..DAC is enabled.
#define CMP_DACCR_DACEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
DACEN - DAC Enable 0b0..DAC is disabled. 0b1..DAC is enabled.
#define CMP_DACCR_DACEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
DACEN - DAC Enable 0b0..DAC is disabled. 0b1..DAC is enabled.
#define CMP_DACCR_DACEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
DACEN - DAC Enable 0b0..DAC is disabled. 0b1..DAC is enabled.
#define CMP_DACCR_VRSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
VRSEL - Supply Voltage Reference Source Select 0b0..V is selected as resistor ladder network supply reference V. in1 in 0b1..V is selected as resistor ladder network supply reference V. in2 in
VRSEL - Supply Voltage Reference Source Select 0b0..Vin1 is selected as resistor ladder network supply reference. 0b1..Vin2 is selected as resistor ladder network supply reference.
#define CMP_DACCR_VRSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
VRSEL - Supply Voltage Reference Source Select 0b0..V is selected as resistor ladder network supply reference V. in1 in 0b1..V is selected as resistor ladder network supply reference V. in2 in
VRSEL - Supply Voltage Reference Source Select 0b0..Vin1 is selected as resistor ladder network supply reference. 0b1..Vin2 is selected as resistor ladder network supply reference.
#define CMP_DACCR_VRSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
VRSEL - Supply Voltage Reference Source Select 0b0..Vin1 is selected as resistor ladder network supply reference. 0b1..Vin2 is selected as resistor ladder network supply reference.
#define CMP_DACCR_VRSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
VRSEL - Supply Voltage Reference Source Select 0b0..Vin1 is selected as resistor ladder network supply reference. 0b1..Vin2 is selected as resistor ladder network supply reference.
#define CMP_DACCR_VRSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
VRSEL - Supply Voltage Reference Source Select 0b0..Vin1 is selected as resistor ladder network supply reference. 0b1..Vin2 is selected as resistor ladder network supply reference.
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_MSEL_SHIFT))&CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_MSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
MSEL - Minus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_PSEL_SHIFT))&CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
PSEL - Plus Input Mux Control 0b000..IN0 0b001..IN1 0b010..IN2 0b011..IN3 0b100..IN4 0b101..IN5 0b110..IN6 0b111..IN7
#define CMP_MUXCR_PSTM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
PSTM - Pass Through Mode Enable 0b0..Pass Through Mode is disabled. 0b1..Pass Through Mode is enabled.
#define CMP_MUXCR_PSTM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
PSTM - Pass Through Mode Enable 0b0..Pass Through Mode is disabled. 0b1..Pass Through Mode is enabled.
#define CMP_MUXCR_PSTM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
PSTM - Pass Through Mode Enable 0b0..Pass Through Mode is disabled. 0b1..Pass Through Mode is enabled.
#define CMP_MUXCR_PSTM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
PSTM - Pass Through Mode Enable 0b0..Pass Through Mode is disabled. 0b1..Pass Through Mode is enabled.
#define CMP_SCR_CFF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
CFF - Analog Comparator Flag Falling 0b0..Falling-edge on COUT has not been detected. 0b1..Falling-edge on COUT has occurred.
#define CMP_SCR_CFF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
CFF - Analog Comparator Flag Falling 0b0..Falling-edge on COUT has not been detected. 0b1..Falling-edge on COUT has occurred.
#define CMP_SCR_CFF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
CFF - Analog Comparator Flag Falling 0b0..Falling-edge on COUT has not been detected. 0b1..Falling-edge on COUT has occurred.
#define CMP_SCR_CFF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
CFF - Analog Comparator Flag Falling 0b0..Falling-edge on COUT has not been detected. 0b1..Falling-edge on COUT has occurred.
#define CMP_SCR_CFF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
CFF - Analog Comparator Flag Falling 0b0..Falling-edge on COUT has not been detected. 0b1..Falling-edge on COUT has occurred.
#define CMP_SCR_CFR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
CFR - Analog Comparator Flag Rising 0b0..Rising-edge on COUT has not been detected. 0b1..Rising-edge on COUT has occurred.
#define CMP_SCR_CFR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
CFR - Analog Comparator Flag Rising 0b0..Rising-edge on COUT has not been detected. 0b1..Rising-edge on COUT has occurred.
#define CMP_SCR_CFR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
CFR - Analog Comparator Flag Rising 0b0..Rising-edge on COUT has not been detected. 0b1..Rising-edge on COUT has occurred.
#define CMP_SCR_CFR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
CFR - Analog Comparator Flag Rising 0b0..Rising-edge on COUT has not been detected. 0b1..Rising-edge on COUT has occurred.
#define CMP_SCR_CFR | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
CFR - Analog Comparator Flag Rising 0b0..Rising-edge on COUT has not been detected. 0b1..Rising-edge on COUT has occurred.
#define CMP_SCR_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DMAEN - DMA Enable Control 0b0..DMA is disabled. 0b1..DMA is enabled.
#define CMP_SCR_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DMAEN - DMA Enable Control 0b0..DMA is disabled. 0b1..DMA is enabled.
#define CMP_SCR_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DMAEN - DMA Enable Control 0b0..DMA is disabled. 0b1..DMA is enabled.
#define CMP_SCR_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DMAEN - DMA Enable Control 0b0..DMA is disabled. 0b1..DMA is enabled.
#define CMP_SCR_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
DMAEN - DMA Enable Control 0b0..DMA is disabled. 0b1..DMA is enabled.
#define CMP_SCR_IEF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
IEF - Comparator Interrupt Enable Falling 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IEF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
IEF - Comparator Interrupt Enable Falling 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IEF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
IEF - Comparator Interrupt Enable Falling 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IEF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
IEF - Comparator Interrupt Enable Falling 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IEF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
IEF - Comparator Interrupt Enable Falling 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IER | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
IER - Comparator Interrupt Enable Rising 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IER | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
IER - Comparator Interrupt Enable Rising 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IER | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
IER - Comparator Interrupt Enable Rising 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IER | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
IER - Comparator Interrupt Enable Rising 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.
#define CMP_SCR_IER | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
IER - Comparator Interrupt Enable Rising 0b0..Interrupt is disabled. 0b1..Interrupt is enabled.