mikroSDK Reference Manual
|
Macros | |
#define | I2C0_BASE (0x40066000u) |
#define | I2C0 ((I2C_Type *)I2C0_BASE) |
#define | I2C1_BASE (0x40067000u) |
#define | I2C1 ((I2C_Type *)I2C1_BASE) |
#define | I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE } |
#define | I2C_BASE_PTRS { I2C0, I2C1 } |
#define | I2C_IRQS { I2C0_IRQn, I2C1_IRQn } |
F - I2C Frequency Divider register | |
#define | I2C_F_ICR_MASK (0x3FU) |
#define | I2C_F_ICR_SHIFT (0U) |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK (0xC0U) |
#define | I2C_F_MULT_SHIFT (6U) |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
#define | I2C_F_ICR_MASK 0x3Fu |
#define | I2C_F_ICR_SHIFT 0 |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_ICR_SHIFT))&I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK 0xC0u |
#define | I2C_F_MULT_SHIFT 6 |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_MULT_SHIFT))&I2C_F_MULT_MASK) |
#define | I2C_F_ICR_MASK (0x3FU) |
#define | I2C_F_ICR_SHIFT (0U) |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK (0xC0U) |
#define | I2C_F_MULT_SHIFT (6U) |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
#define | I2C_F_ICR_MASK (0x3FU) |
#define | I2C_F_ICR_SHIFT (0U) |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK (0xC0U) |
#define | I2C_F_MULT_SHIFT (6U) |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
#define | I2C_F_ICR_MASK (0x3FU) |
#define | I2C_F_ICR_SHIFT (0U) |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK (0xC0U) |
#define | I2C_F_MULT_SHIFT (6U) |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
#define | I2C_F_ICR_MASK (0x3FU) |
#define | I2C_F_ICR_SHIFT (0U) |
#define | I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
#define | I2C_F_MULT_MASK (0xC0U) |
#define | I2C_F_MULT_SHIFT (6U) |
#define | I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
C1 - I2C Control Register 1 | |
#define | I2C_C1_DMAEN_MASK (0x1U) |
#define | I2C_C1_DMAEN_SHIFT (0U) |
#define | I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
#define | I2C_C1_WUEN_MASK (0x2U) |
#define | I2C_C1_WUEN_SHIFT (1U) |
#define | I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
#define | I2C_C1_RSTA_MASK (0x4U) |
#define | I2C_C1_RSTA_SHIFT (2U) |
#define | I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
#define | I2C_C1_TXAK_MASK (0x8U) |
#define | I2C_C1_TXAK_SHIFT (3U) |
#define | I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
#define | I2C_C1_TX_MASK (0x10U) |
#define | I2C_C1_TX_SHIFT (4U) |
#define | I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
#define | I2C_C1_MST_MASK (0x20U) |
#define | I2C_C1_MST_SHIFT (5U) |
#define | I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
#define | I2C_C1_IICIE_MASK (0x40U) |
#define | I2C_C1_IICIE_SHIFT (6U) |
#define | I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
#define | I2C_C1_IICEN_MASK (0x80U) |
#define | I2C_C1_IICEN_SHIFT (7U) |
#define | I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
#define | I2C_C1_DMAEN_MASK 0x1u |
#define | I2C_C1_DMAEN_SHIFT 0 |
#define | I2C_C1_WUEN_MASK 0x2u |
#define | I2C_C1_WUEN_SHIFT 1 |
#define | I2C_C1_RSTA_MASK 0x4u |
#define | I2C_C1_RSTA_SHIFT 2 |
#define | I2C_C1_TXAK_MASK 0x8u |
#define | I2C_C1_TXAK_SHIFT 3 |
#define | I2C_C1_TX_MASK 0x10u |
#define | I2C_C1_TX_SHIFT 4 |
#define | I2C_C1_MST_MASK 0x20u |
#define | I2C_C1_MST_SHIFT 5 |
#define | I2C_C1_IICIE_MASK 0x40u |
#define | I2C_C1_IICIE_SHIFT 6 |
#define | I2C_C1_IICEN_MASK 0x80u |
#define | I2C_C1_IICEN_SHIFT 7 |
#define | I2C_C1_DMAEN_MASK (0x1U) |
#define | I2C_C1_DMAEN_SHIFT (0U) |
#define | I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
#define | I2C_C1_WUEN_MASK (0x2U) |
#define | I2C_C1_WUEN_SHIFT (1U) |
#define | I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
#define | I2C_C1_RSTA_MASK (0x4U) |
#define | I2C_C1_RSTA_SHIFT (2U) |
#define | I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
#define | I2C_C1_TXAK_MASK (0x8U) |
#define | I2C_C1_TXAK_SHIFT (3U) |
#define | I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
#define | I2C_C1_TX_MASK (0x10U) |
#define | I2C_C1_TX_SHIFT (4U) |
#define | I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
#define | I2C_C1_MST_MASK (0x20U) |
#define | I2C_C1_MST_SHIFT (5U) |
#define | I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
#define | I2C_C1_IICIE_MASK (0x40U) |
#define | I2C_C1_IICIE_SHIFT (6U) |
#define | I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
#define | I2C_C1_IICEN_MASK (0x80U) |
#define | I2C_C1_IICEN_SHIFT (7U) |
#define | I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
#define | I2C_C1_DMAEN_MASK (0x1U) |
#define | I2C_C1_DMAEN_SHIFT (0U) |
#define | I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
#define | I2C_C1_WUEN_MASK (0x2U) |
#define | I2C_C1_WUEN_SHIFT (1U) |
#define | I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
#define | I2C_C1_RSTA_MASK (0x4U) |
#define | I2C_C1_RSTA_SHIFT (2U) |
#define | I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
#define | I2C_C1_TXAK_MASK (0x8U) |
#define | I2C_C1_TXAK_SHIFT (3U) |
#define | I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
#define | I2C_C1_TX_MASK (0x10U) |
#define | I2C_C1_TX_SHIFT (4U) |
#define | I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
#define | I2C_C1_MST_MASK (0x20U) |
#define | I2C_C1_MST_SHIFT (5U) |
#define | I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
#define | I2C_C1_IICIE_MASK (0x40U) |
#define | I2C_C1_IICIE_SHIFT (6U) |
#define | I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
#define | I2C_C1_IICEN_MASK (0x80U) |
#define | I2C_C1_IICEN_SHIFT (7U) |
#define | I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
#define | I2C_C1_DMAEN_MASK (0x1U) |
#define | I2C_C1_DMAEN_SHIFT (0U) |
#define | I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
#define | I2C_C1_WUEN_MASK (0x2U) |
#define | I2C_C1_WUEN_SHIFT (1U) |
#define | I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
#define | I2C_C1_RSTA_MASK (0x4U) |
#define | I2C_C1_RSTA_SHIFT (2U) |
#define | I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
#define | I2C_C1_TXAK_MASK (0x8U) |
#define | I2C_C1_TXAK_SHIFT (3U) |
#define | I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
#define | I2C_C1_TX_MASK (0x10U) |
#define | I2C_C1_TX_SHIFT (4U) |
#define | I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
#define | I2C_C1_MST_MASK (0x20U) |
#define | I2C_C1_MST_SHIFT (5U) |
#define | I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
#define | I2C_C1_IICIE_MASK (0x40U) |
#define | I2C_C1_IICIE_SHIFT (6U) |
#define | I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
#define | I2C_C1_IICEN_MASK (0x80U) |
#define | I2C_C1_IICEN_SHIFT (7U) |
#define | I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
#define | I2C_C1_DMAEN_MASK (0x1U) |
#define | I2C_C1_DMAEN_SHIFT (0U) |
#define | I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
#define | I2C_C1_WUEN_MASK (0x2U) |
#define | I2C_C1_WUEN_SHIFT (1U) |
#define | I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
#define | I2C_C1_RSTA_MASK (0x4U) |
#define | I2C_C1_RSTA_SHIFT (2U) |
#define | I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
#define | I2C_C1_TXAK_MASK (0x8U) |
#define | I2C_C1_TXAK_SHIFT (3U) |
#define | I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
#define | I2C_C1_TX_MASK (0x10U) |
#define | I2C_C1_TX_SHIFT (4U) |
#define | I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
#define | I2C_C1_MST_MASK (0x20U) |
#define | I2C_C1_MST_SHIFT (5U) |
#define | I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
#define | I2C_C1_IICIE_MASK (0x40U) |
#define | I2C_C1_IICIE_SHIFT (6U) |
#define | I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
#define | I2C_C1_IICEN_MASK (0x80U) |
#define | I2C_C1_IICEN_SHIFT (7U) |
#define | I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
S - I2C Status register | |
#define | I2C_S_RXAK_MASK (0x1U) |
#define | I2C_S_RXAK_SHIFT (0U) |
#define | I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
#define | I2C_S_IICIF_MASK (0x2U) |
#define | I2C_S_IICIF_SHIFT (1U) |
#define | I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
#define | I2C_S_SRW_MASK (0x4U) |
#define | I2C_S_SRW_SHIFT (2U) |
#define | I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
#define | I2C_S_RAM_MASK (0x8U) |
#define | I2C_S_RAM_SHIFT (3U) |
#define | I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
#define | I2C_S_ARBL_MASK (0x10U) |
#define | I2C_S_ARBL_SHIFT (4U) |
#define | I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
#define | I2C_S_BUSY_MASK (0x20U) |
#define | I2C_S_BUSY_SHIFT (5U) |
#define | I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
#define | I2C_S_IAAS_MASK (0x40U) |
#define | I2C_S_IAAS_SHIFT (6U) |
#define | I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
#define | I2C_S_TCF_MASK (0x80U) |
#define | I2C_S_TCF_SHIFT (7U) |
#define | I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
#define | I2C_S_RXAK_MASK 0x1u |
#define | I2C_S_RXAK_SHIFT 0 |
#define | I2C_S_IICIF_MASK 0x2u |
#define | I2C_S_IICIF_SHIFT 1 |
#define | I2C_S_SRW_MASK 0x4u |
#define | I2C_S_SRW_SHIFT 2 |
#define | I2C_S_RAM_MASK 0x8u |
#define | I2C_S_RAM_SHIFT 3 |
#define | I2C_S_ARBL_MASK 0x10u |
#define | I2C_S_ARBL_SHIFT 4 |
#define | I2C_S_BUSY_MASK 0x20u |
#define | I2C_S_BUSY_SHIFT 5 |
#define | I2C_S_IAAS_MASK 0x40u |
#define | I2C_S_IAAS_SHIFT 6 |
#define | I2C_S_TCF_MASK 0x80u |
#define | I2C_S_TCF_SHIFT 7 |
#define | I2C_S_RXAK_MASK (0x1U) |
#define | I2C_S_RXAK_SHIFT (0U) |
#define | I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
#define | I2C_S_IICIF_MASK (0x2U) |
#define | I2C_S_IICIF_SHIFT (1U) |
#define | I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
#define | I2C_S_SRW_MASK (0x4U) |
#define | I2C_S_SRW_SHIFT (2U) |
#define | I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
#define | I2C_S_RAM_MASK (0x8U) |
#define | I2C_S_RAM_SHIFT (3U) |
#define | I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
#define | I2C_S_ARBL_MASK (0x10U) |
#define | I2C_S_ARBL_SHIFT (4U) |
#define | I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
#define | I2C_S_BUSY_MASK (0x20U) |
#define | I2C_S_BUSY_SHIFT (5U) |
#define | I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
#define | I2C_S_IAAS_MASK (0x40U) |
#define | I2C_S_IAAS_SHIFT (6U) |
#define | I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
#define | I2C_S_TCF_MASK (0x80U) |
#define | I2C_S_TCF_SHIFT (7U) |
#define | I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
#define | I2C_S_RXAK_MASK (0x1U) |
#define | I2C_S_RXAK_SHIFT (0U) |
#define | I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
#define | I2C_S_IICIF_MASK (0x2U) |
#define | I2C_S_IICIF_SHIFT (1U) |
#define | I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
#define | I2C_S_SRW_MASK (0x4U) |
#define | I2C_S_SRW_SHIFT (2U) |
#define | I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
#define | I2C_S_RAM_MASK (0x8U) |
#define | I2C_S_RAM_SHIFT (3U) |
#define | I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
#define | I2C_S_ARBL_MASK (0x10U) |
#define | I2C_S_ARBL_SHIFT (4U) |
#define | I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
#define | I2C_S_BUSY_MASK (0x20U) |
#define | I2C_S_BUSY_SHIFT (5U) |
#define | I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
#define | I2C_S_IAAS_MASK (0x40U) |
#define | I2C_S_IAAS_SHIFT (6U) |
#define | I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
#define | I2C_S_TCF_MASK (0x80U) |
#define | I2C_S_TCF_SHIFT (7U) |
#define | I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
#define | I2C_S_RXAK_MASK (0x1U) |
#define | I2C_S_RXAK_SHIFT (0U) |
#define | I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
#define | I2C_S_IICIF_MASK (0x2U) |
#define | I2C_S_IICIF_SHIFT (1U) |
#define | I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
#define | I2C_S_SRW_MASK (0x4U) |
#define | I2C_S_SRW_SHIFT (2U) |
#define | I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
#define | I2C_S_RAM_MASK (0x8U) |
#define | I2C_S_RAM_SHIFT (3U) |
#define | I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
#define | I2C_S_ARBL_MASK (0x10U) |
#define | I2C_S_ARBL_SHIFT (4U) |
#define | I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
#define | I2C_S_BUSY_MASK (0x20U) |
#define | I2C_S_BUSY_SHIFT (5U) |
#define | I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
#define | I2C_S_IAAS_MASK (0x40U) |
#define | I2C_S_IAAS_SHIFT (6U) |
#define | I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
#define | I2C_S_TCF_MASK (0x80U) |
#define | I2C_S_TCF_SHIFT (7U) |
#define | I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
#define | I2C_S_RXAK_MASK (0x1U) |
#define | I2C_S_RXAK_SHIFT (0U) |
#define | I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
#define | I2C_S_IICIF_MASK (0x2U) |
#define | I2C_S_IICIF_SHIFT (1U) |
#define | I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
#define | I2C_S_SRW_MASK (0x4U) |
#define | I2C_S_SRW_SHIFT (2U) |
#define | I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
#define | I2C_S_RAM_MASK (0x8U) |
#define | I2C_S_RAM_SHIFT (3U) |
#define | I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
#define | I2C_S_ARBL_MASK (0x10U) |
#define | I2C_S_ARBL_SHIFT (4U) |
#define | I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
#define | I2C_S_BUSY_MASK (0x20U) |
#define | I2C_S_BUSY_SHIFT (5U) |
#define | I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
#define | I2C_S_IAAS_MASK (0x40U) |
#define | I2C_S_IAAS_SHIFT (6U) |
#define | I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
#define | I2C_S_TCF_MASK (0x80U) |
#define | I2C_S_TCF_SHIFT (7U) |
#define | I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
C2 - I2C Control Register 2 | |
#define | I2C_C2_AD_MASK (0x7U) |
#define | I2C_C2_AD_SHIFT (0U) |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK (0x8U) |
#define | I2C_C2_RMEN_SHIFT (3U) |
#define | I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
#define | I2C_C2_SBRC_MASK (0x10U) |
#define | I2C_C2_SBRC_SHIFT (4U) |
#define | I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
#define | I2C_C2_HDRS_MASK (0x20U) |
#define | I2C_C2_HDRS_SHIFT (5U) |
#define | I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
#define | I2C_C2_ADEXT_MASK (0x40U) |
#define | I2C_C2_ADEXT_SHIFT (6U) |
#define | I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
#define | I2C_C2_GCAEN_MASK (0x80U) |
#define | I2C_C2_GCAEN_SHIFT (7U) |
#define | I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
#define | I2C_C2_AD_MASK 0x7u |
#define | I2C_C2_AD_SHIFT 0 |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x))<<I2C_C2_AD_SHIFT))&I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK 0x8u |
#define | I2C_C2_RMEN_SHIFT 3 |
#define | I2C_C2_SBRC_MASK 0x10u |
#define | I2C_C2_SBRC_SHIFT 4 |
#define | I2C_C2_HDRS_MASK 0x20u |
#define | I2C_C2_HDRS_SHIFT 5 |
#define | I2C_C2_ADEXT_MASK 0x40u |
#define | I2C_C2_ADEXT_SHIFT 6 |
#define | I2C_C2_GCAEN_MASK 0x80u |
#define | I2C_C2_GCAEN_SHIFT 7 |
#define | I2C_C2_AD_MASK (0x7U) |
#define | I2C_C2_AD_SHIFT (0U) |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK (0x8U) |
#define | I2C_C2_RMEN_SHIFT (3U) |
#define | I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
#define | I2C_C2_SBRC_MASK (0x10U) |
#define | I2C_C2_SBRC_SHIFT (4U) |
#define | I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
#define | I2C_C2_HDRS_MASK (0x20U) |
#define | I2C_C2_HDRS_SHIFT (5U) |
#define | I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
#define | I2C_C2_ADEXT_MASK (0x40U) |
#define | I2C_C2_ADEXT_SHIFT (6U) |
#define | I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
#define | I2C_C2_GCAEN_MASK (0x80U) |
#define | I2C_C2_GCAEN_SHIFT (7U) |
#define | I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
#define | I2C_C2_AD_MASK (0x7U) |
#define | I2C_C2_AD_SHIFT (0U) |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK (0x8U) |
#define | I2C_C2_RMEN_SHIFT (3U) |
#define | I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
#define | I2C_C2_SBRC_MASK (0x10U) |
#define | I2C_C2_SBRC_SHIFT (4U) |
#define | I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
#define | I2C_C2_HDRS_MASK (0x20U) |
#define | I2C_C2_HDRS_SHIFT (5U) |
#define | I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
#define | I2C_C2_ADEXT_MASK (0x40U) |
#define | I2C_C2_ADEXT_SHIFT (6U) |
#define | I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
#define | I2C_C2_GCAEN_MASK (0x80U) |
#define | I2C_C2_GCAEN_SHIFT (7U) |
#define | I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
#define | I2C_C2_AD_MASK (0x7U) |
#define | I2C_C2_AD_SHIFT (0U) |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK (0x8U) |
#define | I2C_C2_RMEN_SHIFT (3U) |
#define | I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
#define | I2C_C2_SBRC_MASK (0x10U) |
#define | I2C_C2_SBRC_SHIFT (4U) |
#define | I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
#define | I2C_C2_HDRS_MASK (0x20U) |
#define | I2C_C2_HDRS_SHIFT (5U) |
#define | I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
#define | I2C_C2_ADEXT_MASK (0x40U) |
#define | I2C_C2_ADEXT_SHIFT (6U) |
#define | I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
#define | I2C_C2_GCAEN_MASK (0x80U) |
#define | I2C_C2_GCAEN_SHIFT (7U) |
#define | I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
#define | I2C_C2_AD_MASK (0x7U) |
#define | I2C_C2_AD_SHIFT (0U) |
#define | I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
#define | I2C_C2_RMEN_MASK (0x8U) |
#define | I2C_C2_RMEN_SHIFT (3U) |
#define | I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
#define | I2C_C2_SBRC_MASK (0x10U) |
#define | I2C_C2_SBRC_SHIFT (4U) |
#define | I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
#define | I2C_C2_HDRS_MASK (0x20U) |
#define | I2C_C2_HDRS_SHIFT (5U) |
#define | I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
#define | I2C_C2_ADEXT_MASK (0x40U) |
#define | I2C_C2_ADEXT_SHIFT (6U) |
#define | I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
#define | I2C_C2_GCAEN_MASK (0x80U) |
#define | I2C_C2_GCAEN_SHIFT (7U) |
#define | I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
FLT - I2C Programmable Input Glitch Filter Register | |
#define | I2C_FLT_FLT_MASK (0x1FU) |
#define | I2C_FLT_FLT_SHIFT (0U) |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
#define | I2C_FLT_FLT_MASK 0x1Fu |
#define | I2C_FLT_FLT_SHIFT 0 |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_FLT_FLT_SHIFT))&I2C_FLT_FLT_MASK) |
#define | I2C_FLT_FLT_MASK (0xFU) |
#define | I2C_FLT_FLT_SHIFT (0U) |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
#define | I2C_FLT_STARTF_MASK (0x10U) |
#define | I2C_FLT_STARTF_SHIFT (4U) |
#define | I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
#define | I2C_FLT_SSIE_MASK (0x20U) |
#define | I2C_FLT_SSIE_SHIFT (5U) |
#define | I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
#define | I2C_FLT_STOPF_MASK (0x40U) |
#define | I2C_FLT_STOPF_SHIFT (6U) |
#define | I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
#define | I2C_FLT_SHEN_MASK (0x80U) |
#define | I2C_FLT_SHEN_SHIFT (7U) |
#define | I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
#define | I2C_FLT_FLT_MASK (0xFU) |
#define | I2C_FLT_FLT_SHIFT (0U) |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
#define | I2C_FLT_STARTF_MASK (0x10U) |
#define | I2C_FLT_STARTF_SHIFT (4U) |
#define | I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
#define | I2C_FLT_SSIE_MASK (0x20U) |
#define | I2C_FLT_SSIE_SHIFT (5U) |
#define | I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
#define | I2C_FLT_STOPF_MASK (0x40U) |
#define | I2C_FLT_STOPF_SHIFT (6U) |
#define | I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
#define | I2C_FLT_SHEN_MASK (0x80U) |
#define | I2C_FLT_SHEN_SHIFT (7U) |
#define | I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
#define | I2C_FLT_FLT_MASK (0xFU) |
#define | I2C_FLT_FLT_SHIFT (0U) |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
#define | I2C_FLT_STARTF_MASK (0x10U) |
#define | I2C_FLT_STARTF_SHIFT (4U) |
#define | I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
#define | I2C_FLT_SSIE_MASK (0x20U) |
#define | I2C_FLT_SSIE_SHIFT (5U) |
#define | I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
#define | I2C_FLT_STOPF_MASK (0x40U) |
#define | I2C_FLT_STOPF_SHIFT (6U) |
#define | I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
#define | I2C_FLT_SHEN_MASK (0x80U) |
#define | I2C_FLT_SHEN_SHIFT (7U) |
#define | I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
#define | I2C_FLT_FLT_MASK (0xFU) |
#define | I2C_FLT_FLT_SHIFT (0U) |
#define | I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
#define | I2C_FLT_STARTF_MASK (0x10U) |
#define | I2C_FLT_STARTF_SHIFT (4U) |
#define | I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
#define | I2C_FLT_SSIE_MASK (0x20U) |
#define | I2C_FLT_SSIE_SHIFT (5U) |
#define | I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
#define | I2C_FLT_STOPF_MASK (0x40U) |
#define | I2C_FLT_STOPF_SHIFT (6U) |
#define | I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
#define | I2C_FLT_SHEN_MASK (0x80U) |
#define | I2C_FLT_SHEN_SHIFT (7U) |
#define | I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
SMB - I2C SMBus Control and Status register | |
#define | I2C_SMB_SHTF2IE_MASK (0x1U) |
#define | I2C_SMB_SHTF2IE_SHIFT (0U) |
#define | I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
#define | I2C_SMB_SHTF2_MASK (0x2U) |
#define | I2C_SMB_SHTF2_SHIFT (1U) |
#define | I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
#define | I2C_SMB_SHTF1_MASK (0x4U) |
#define | I2C_SMB_SHTF1_SHIFT (2U) |
#define | I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
#define | I2C_SMB_SLTF_MASK (0x8U) |
#define | I2C_SMB_SLTF_SHIFT (3U) |
#define | I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
#define | I2C_SMB_TCKSEL_MASK (0x10U) |
#define | I2C_SMB_TCKSEL_SHIFT (4U) |
#define | I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
#define | I2C_SMB_SIICAEN_MASK (0x20U) |
#define | I2C_SMB_SIICAEN_SHIFT (5U) |
#define | I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
#define | I2C_SMB_ALERTEN_MASK (0x40U) |
#define | I2C_SMB_ALERTEN_SHIFT (6U) |
#define | I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
#define | I2C_SMB_FACK_MASK (0x80U) |
#define | I2C_SMB_FACK_SHIFT (7U) |
#define | I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
#define | I2C_SMB_SHTF2IE_MASK 0x1u |
#define | I2C_SMB_SHTF2IE_SHIFT 0 |
#define | I2C_SMB_SHTF2_MASK 0x2u |
#define | I2C_SMB_SHTF2_SHIFT 1 |
#define | I2C_SMB_SHTF1_MASK 0x4u |
#define | I2C_SMB_SHTF1_SHIFT 2 |
#define | I2C_SMB_SLTF_MASK 0x8u |
#define | I2C_SMB_SLTF_SHIFT 3 |
#define | I2C_SMB_TCKSEL_MASK 0x10u |
#define | I2C_SMB_TCKSEL_SHIFT 4 |
#define | I2C_SMB_SIICAEN_MASK 0x20u |
#define | I2C_SMB_SIICAEN_SHIFT 5 |
#define | I2C_SMB_ALERTEN_MASK 0x40u |
#define | I2C_SMB_ALERTEN_SHIFT 6 |
#define | I2C_SMB_FACK_MASK 0x80u |
#define | I2C_SMB_FACK_SHIFT 7 |
#define | I2C_SMB_SHTF2IE_MASK (0x1U) |
#define | I2C_SMB_SHTF2IE_SHIFT (0U) |
#define | I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
#define | I2C_SMB_SHTF2_MASK (0x2U) |
#define | I2C_SMB_SHTF2_SHIFT (1U) |
#define | I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
#define | I2C_SMB_SHTF1_MASK (0x4U) |
#define | I2C_SMB_SHTF1_SHIFT (2U) |
#define | I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
#define | I2C_SMB_SLTF_MASK (0x8U) |
#define | I2C_SMB_SLTF_SHIFT (3U) |
#define | I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
#define | I2C_SMB_TCKSEL_MASK (0x10U) |
#define | I2C_SMB_TCKSEL_SHIFT (4U) |
#define | I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
#define | I2C_SMB_SIICAEN_MASK (0x20U) |
#define | I2C_SMB_SIICAEN_SHIFT (5U) |
#define | I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
#define | I2C_SMB_ALERTEN_MASK (0x40U) |
#define | I2C_SMB_ALERTEN_SHIFT (6U) |
#define | I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
#define | I2C_SMB_FACK_MASK (0x80U) |
#define | I2C_SMB_FACK_SHIFT (7U) |
#define | I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
#define | I2C_SMB_SHTF2IE_MASK (0x1U) |
#define | I2C_SMB_SHTF2IE_SHIFT (0U) |
#define | I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
#define | I2C_SMB_SHTF2_MASK (0x2U) |
#define | I2C_SMB_SHTF2_SHIFT (1U) |
#define | I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
#define | I2C_SMB_SHTF1_MASK (0x4U) |
#define | I2C_SMB_SHTF1_SHIFT (2U) |
#define | I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
#define | I2C_SMB_SLTF_MASK (0x8U) |
#define | I2C_SMB_SLTF_SHIFT (3U) |
#define | I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
#define | I2C_SMB_TCKSEL_MASK (0x10U) |
#define | I2C_SMB_TCKSEL_SHIFT (4U) |
#define | I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
#define | I2C_SMB_SIICAEN_MASK (0x20U) |
#define | I2C_SMB_SIICAEN_SHIFT (5U) |
#define | I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
#define | I2C_SMB_ALERTEN_MASK (0x40U) |
#define | I2C_SMB_ALERTEN_SHIFT (6U) |
#define | I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
#define | I2C_SMB_FACK_MASK (0x80U) |
#define | I2C_SMB_FACK_SHIFT (7U) |
#define | I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
#define | I2C_SMB_SHTF2IE_MASK (0x1U) |
#define | I2C_SMB_SHTF2IE_SHIFT (0U) |
#define | I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
#define | I2C_SMB_SHTF2_MASK (0x2U) |
#define | I2C_SMB_SHTF2_SHIFT (1U) |
#define | I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
#define | I2C_SMB_SHTF1_MASK (0x4U) |
#define | I2C_SMB_SHTF1_SHIFT (2U) |
#define | I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
#define | I2C_SMB_SLTF_MASK (0x8U) |
#define | I2C_SMB_SLTF_SHIFT (3U) |
#define | I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
#define | I2C_SMB_TCKSEL_MASK (0x10U) |
#define | I2C_SMB_TCKSEL_SHIFT (4U) |
#define | I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
#define | I2C_SMB_SIICAEN_MASK (0x20U) |
#define | I2C_SMB_SIICAEN_SHIFT (5U) |
#define | I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
#define | I2C_SMB_ALERTEN_MASK (0x40U) |
#define | I2C_SMB_ALERTEN_SHIFT (6U) |
#define | I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
#define | I2C_SMB_FACK_MASK (0x80U) |
#define | I2C_SMB_FACK_SHIFT (7U) |
#define | I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
#define | I2C_SMB_SHTF2IE_MASK (0x1U) |
#define | I2C_SMB_SHTF2IE_SHIFT (0U) |
#define | I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
#define | I2C_SMB_SHTF2_MASK (0x2U) |
#define | I2C_SMB_SHTF2_SHIFT (1U) |
#define | I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
#define | I2C_SMB_SHTF1_MASK (0x4U) |
#define | I2C_SMB_SHTF1_SHIFT (2U) |
#define | I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
#define | I2C_SMB_SLTF_MASK (0x8U) |
#define | I2C_SMB_SLTF_SHIFT (3U) |
#define | I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
#define | I2C_SMB_TCKSEL_MASK (0x10U) |
#define | I2C_SMB_TCKSEL_SHIFT (4U) |
#define | I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
#define | I2C_SMB_SIICAEN_MASK (0x20U) |
#define | I2C_SMB_SIICAEN_SHIFT (5U) |
#define | I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
#define | I2C_SMB_ALERTEN_MASK (0x40U) |
#define | I2C_SMB_ALERTEN_SHIFT (6U) |
#define | I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
#define | I2C_SMB_FACK_MASK (0x80U) |
#define | I2C_SMB_FACK_SHIFT (7U) |
#define | I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
#define I2C0_BASE (0x40066000u) |
Peripheral I2C0 base address
#define I2C1_BASE (0x40067000u) |
Peripheral I2C1 base address
#define I2C_C1_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
DMAEN - DMA Enable 0b0..All DMA signalling disabled. 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be used. When FACK = 1, an address or a data byte is transmitted.
#define I2C_C1_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
DMAEN - DMA Enable 0b0..All DMA signalling disabled. 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be used. When FACK = 1, an address or a data byte is transmitted.
#define I2C_C1_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
DMAEN - DMA Enable 0b0..All DMA signalling disabled. 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be used. When FACK = 1, an address or a data byte is transmitted.
#define I2C_C1_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
DMAEN - DMA Enable 0b0..All DMA signalling disabled. 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be used. When FACK = 1, an address or a data byte is transmitted.
#define I2C_C1_DMAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
DMAEN - DMA Enable 0b0..All DMA signalling disabled. 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] are set. If the direction of transfer is known from master to slave, then it is not required to check S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be used. When FACK = 1, an address or a data byte is transmitted.
#define I2C_C1_IICEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
IICEN - I2C Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
IICEN - I2C Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
IICEN - I2C Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
IICEN - I2C Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
IICEN - I2C Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
IICIE - I2C Interrupt Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
IICIE - I2C Interrupt Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
IICIE - I2C Interrupt Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
IICIE - I2C Interrupt Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_IICIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
IICIE - I2C Interrupt Enable 0b0..Disabled 0b1..Enabled
#define I2C_C1_MST | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
MST - Master Mode Select 0b0..Slave mode 0b1..Master mode
#define I2C_C1_MST | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
MST - Master Mode Select 0b0..Slave mode 0b1..Master mode
#define I2C_C1_MST | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
MST - Master Mode Select 0b0..Slave mode 0b1..Master mode
#define I2C_C1_MST | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
MST - Master Mode Select 0b0..Slave mode 0b1..Master mode
#define I2C_C1_MST | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
MST - Master Mode Select 0b0..Slave mode 0b1..Master mode
#define I2C_C1_TX | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
TX - Transmit Mode Select 0b0..Receive 0b1..Transmit
#define I2C_C1_TX | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
TX - Transmit Mode Select 0b0..Receive 0b1..Transmit
#define I2C_C1_TX | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
TX - Transmit Mode Select 0b0..Receive 0b1..Transmit
#define I2C_C1_TX | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
TX - Transmit Mode Select 0b0..Receive 0b1..Transmit
#define I2C_C1_TX | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
TX - Transmit Mode Select 0b0..Receive 0b1..Transmit
#define I2C_C1_TXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
TXAK - Transmit Acknowledge Enable 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set).
#define I2C_C1_TXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
TXAK - Transmit Acknowledge Enable 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set).
#define I2C_C1_TXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
TXAK - Transmit Acknowledge Enable 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set).
#define I2C_C1_TXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
TXAK - Transmit Acknowledge Enable 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set).
#define I2C_C1_TXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
TXAK - Transmit Acknowledge Enable 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set).
#define I2C_C1_WUEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
WUEN - Wakeup Enable 0b0..Normal operation. No interrupt generated when address matching in low power mode. 0b1..Enables the wakeup function in low power mode.
#define I2C_C1_WUEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
WUEN - Wakeup Enable 0b0..Normal operation. No interrupt generated when address matching in low power mode. 0b1..Enables the wakeup function in low power mode.
#define I2C_C1_WUEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
WUEN - Wakeup Enable 0b0..Normal operation. No interrupt generated when address matching in low power mode. 0b1..Enables the wakeup function in low power mode.
#define I2C_C1_WUEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
WUEN - Wakeup Enable 0b0..Normal operation. No interrupt generated when address matching in low power mode. 0b1..Enables the wakeup function in low power mode.
#define I2C_C1_WUEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
WUEN - Wakeup Enable 0b0..Normal operation. No interrupt generated when address matching in low power mode. 0b1..Enables the wakeup function in low power mode.
#define I2C_C2_ADEXT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
ADEXT - Address Extension 0b0..7-bit address scheme 0b1..10-bit address scheme
#define I2C_C2_ADEXT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
ADEXT - Address Extension 0b0..7-bit address scheme 0b1..10-bit address scheme
#define I2C_C2_ADEXT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
ADEXT - Address Extension 0b0..7-bit address scheme 0b1..10-bit address scheme
#define I2C_C2_ADEXT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
ADEXT - Address Extension 0b0..7-bit address scheme 0b1..10-bit address scheme
#define I2C_C2_ADEXT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
ADEXT - Address Extension 0b0..7-bit address scheme 0b1..10-bit address scheme
#define I2C_C2_GCAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
GCAEN - General Call Address Enable 0b0..Disabled 0b1..Enabled
#define I2C_C2_GCAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
GCAEN - General Call Address Enable 0b0..Disabled 0b1..Enabled
#define I2C_C2_GCAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
GCAEN - General Call Address Enable 0b0..Disabled 0b1..Enabled
#define I2C_C2_GCAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
GCAEN - General Call Address Enable 0b0..Disabled 0b1..Enabled
#define I2C_C2_GCAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
GCAEN - General Call Address Enable 0b0..Disabled 0b1..Enabled
#define I2C_C2_HDRS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
HDRS - High Drive Select 0b0..Normal drive mode 0b1..High drive mode
#define I2C_C2_HDRS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
HDRS - High Drive Select 0b0..Normal drive mode 0b1..High drive mode
#define I2C_C2_HDRS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
HDRS - High Drive Select 0b0..Normal drive mode 0b1..High drive mode
#define I2C_C2_HDRS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
HDRS - High Drive Select 0b0..Normal drive mode 0b1..High drive mode
#define I2C_C2_HDRS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
HDRS - High Drive Select 0b0..Normal drive mode 0b1..High drive mode
#define I2C_C2_RMEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
RMEN - Range Address Matching Enable 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers.
#define I2C_C2_RMEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
RMEN - Range Address Matching Enable 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers.
#define I2C_C2_RMEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
RMEN - Range Address Matching Enable 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers.
#define I2C_C2_RMEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
RMEN - Range Address Matching Enable 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers.
#define I2C_C2_RMEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
RMEN - Range Address Matching Enable 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers.
#define I2C_C2_SBRC | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
SBRC - Slave Baud Rate Control 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 0b1..Slave baud rate is independent of the master baud rate
#define I2C_C2_SBRC | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
SBRC - Slave Baud Rate Control 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 0b1..Slave baud rate is independent of the master baud rate
#define I2C_C2_SBRC | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
SBRC - Slave Baud Rate Control 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 0b1..Slave baud rate is independent of the master baud rate
#define I2C_C2_SBRC | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
SBRC - Slave Baud Rate Control 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 0b1..Slave baud rate is independent of the master baud rate
#define I2C_C2_SBRC | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
SBRC - Slave Baud Rate Control 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 0b1..Slave baud rate is independent of the master baud rate
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<I2C_F_MULT_SHIFT))&I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_F_MULT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
MULT - Multiplier Factor 0b00..mul = 1 0b01..mul = 2 0b10..mul = 4 0b11..Reserved
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x))<<I2C_FLT_FLT_SHIFT))&I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_FLT | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
FLT - I2C Programmable Filter Factor 0b0000..No filter/bypass
#define I2C_FLT_SHEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
SHEN - Stop Hold Enable 0b0..Stop holdoff is disabled. The MCU's entry to stop mode is not gated. 0b1..Stop holdoff is enabled.
#define I2C_FLT_SHEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
SHEN - Stop Hold Enable 0b0..Stop holdoff is disabled. The MCU's entry to stop mode is not gated. 0b1..Stop holdoff is enabled.
#define I2C_FLT_SHEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
SHEN - Stop Hold Enable 0b0..Stop holdoff is disabled. The MCU's entry to stop mode is not gated. 0b1..Stop holdoff is enabled.
#define I2C_FLT_SHEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
SHEN - Stop Hold Enable 0b0..Stop holdoff is disabled. The MCU's entry to stop mode is not gated. 0b1..Stop holdoff is enabled.
#define I2C_FLT_SSIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
SSIE - I2C Bus Stop or Start Interrupt Enable 0b0..Stop or start detection interrupt is disabled 0b1..Stop or start detection interrupt is enabled
#define I2C_FLT_SSIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
SSIE - I2C Bus Stop or Start Interrupt Enable 0b0..Stop or start detection interrupt is disabled 0b1..Stop or start detection interrupt is enabled
#define I2C_FLT_SSIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
SSIE - I2C Bus Stop or Start Interrupt Enable 0b0..Stop or start detection interrupt is disabled 0b1..Stop or start detection interrupt is enabled
#define I2C_FLT_SSIE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
SSIE - I2C Bus Stop or Start Interrupt Enable 0b0..Stop or start detection interrupt is disabled 0b1..Stop or start detection interrupt is enabled
#define I2C_FLT_STARTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
STARTF - I2C Bus Start Detect Flag 0b0..No start happens on I2C bus 0b1..Start detected on I2C bus
#define I2C_FLT_STARTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
STARTF - I2C Bus Start Detect Flag 0b0..No start happens on I2C bus 0b1..Start detected on I2C bus
#define I2C_FLT_STARTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
STARTF - I2C Bus Start Detect Flag 0b0..No start happens on I2C bus 0b1..Start detected on I2C bus
#define I2C_FLT_STARTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
STARTF - I2C Bus Start Detect Flag 0b0..No start happens on I2C bus 0b1..Start detected on I2C bus
#define I2C_FLT_STOPF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
STOPF - I2C Bus Stop Detect Flag 0b0..No stop happens on I2C bus 0b1..Stop detected on I2C bus
#define I2C_FLT_STOPF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
STOPF - I2C Bus Stop Detect Flag 0b0..No stop happens on I2C bus 0b1..Stop detected on I2C bus
#define I2C_FLT_STOPF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
STOPF - I2C Bus Stop Detect Flag 0b0..No stop happens on I2C bus 0b1..Stop detected on I2C bus
#define I2C_FLT_STOPF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
STOPF - I2C Bus Stop Detect Flag 0b0..No stop happens on I2C bus 0b1..Stop detected on I2C bus
#define I2C_S_ARBL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
ARBL - Arbitration Lost 0b0..Standard bus operation. 0b1..Loss of arbitration.
#define I2C_S_ARBL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
ARBL - Arbitration Lost 0b0..Standard bus operation. 0b1..Loss of arbitration.
#define I2C_S_ARBL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
ARBL - Arbitration Lost 0b0..Standard bus operation. 0b1..Loss of arbitration.
#define I2C_S_ARBL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
ARBL - Arbitration Lost 0b0..Standard bus operation. 0b1..Loss of arbitration.
#define I2C_S_ARBL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
ARBL - Arbitration Lost 0b0..Standard bus operation. 0b1..Loss of arbitration.
#define I2C_S_BUSY | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
BUSY - Bus Busy 0b0..Bus is idle 0b1..Bus is busy
#define I2C_S_BUSY | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
BUSY - Bus Busy 0b0..Bus is idle 0b1..Bus is busy
#define I2C_S_BUSY | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
BUSY - Bus Busy 0b0..Bus is idle 0b1..Bus is busy
#define I2C_S_BUSY | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
BUSY - Bus Busy 0b0..Bus is idle 0b1..Bus is busy
#define I2C_S_BUSY | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
BUSY - Bus Busy 0b0..Bus is idle 0b1..Bus is busy
#define I2C_S_IAAS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
IAAS - Addressed As A Slave 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_IAAS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
IAAS - Addressed As A Slave 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_IAAS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
IAAS - Addressed As A Slave 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_IAAS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
IAAS - Addressed As A Slave 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_IAAS | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
IAAS - Addressed As A Slave 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_IICIF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
IICIF - Interrupt Flag 0b0..No interrupt pending 0b1..Interrupt pending
#define I2C_S_IICIF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
IICIF - Interrupt Flag 0b0..No interrupt pending 0b1..Interrupt pending
#define I2C_S_IICIF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
IICIF - Interrupt Flag 0b0..No interrupt pending 0b1..Interrupt pending
#define I2C_S_IICIF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
IICIF - Interrupt Flag 0b0..No interrupt pending 0b1..Interrupt pending
#define I2C_S_IICIF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
IICIF - Interrupt Flag 0b0..No interrupt pending 0b1..Interrupt pending
#define I2C_S_RAM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
RAM - Range Address Match 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_RAM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
RAM - Range Address Match 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_RAM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
RAM - Range Address Match 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_RAM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
RAM - Range Address Match 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_RAM | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
RAM - Range Address Match 0b0..Not addressed 0b1..Addressed as a slave
#define I2C_S_RXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
RXAK - Receive Acknowledge 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 0b1..No acknowledge signal detected
#define I2C_S_RXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
RXAK - Receive Acknowledge 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 0b1..No acknowledge signal detected
#define I2C_S_RXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
RXAK - Receive Acknowledge 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 0b1..No acknowledge signal detected
#define I2C_S_RXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
RXAK - Receive Acknowledge 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 0b1..No acknowledge signal detected
#define I2C_S_RXAK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
RXAK - Receive Acknowledge 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 0b1..No acknowledge signal detected
#define I2C_S_SRW | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
SRW - Slave Read/Write 0b0..Slave receive, master writing to slave 0b1..Slave transmit, master reading from slave
#define I2C_S_SRW | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
SRW - Slave Read/Write 0b0..Slave receive, master writing to slave 0b1..Slave transmit, master reading from slave
#define I2C_S_SRW | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
SRW - Slave Read/Write 0b0..Slave receive, master writing to slave 0b1..Slave transmit, master reading from slave
#define I2C_S_SRW | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
SRW - Slave Read/Write 0b0..Slave receive, master writing to slave 0b1..Slave transmit, master reading from slave
#define I2C_S_SRW | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
SRW - Slave Read/Write 0b0..Slave receive, master writing to slave 0b1..Slave transmit, master reading from slave
#define I2C_S_TCF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
TCF - Transfer Complete Flag 0b0..Transfer in progress 0b1..Transfer complete
#define I2C_S_TCF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
TCF - Transfer Complete Flag 0b0..Transfer in progress 0b1..Transfer complete
#define I2C_S_TCF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
TCF - Transfer Complete Flag 0b0..Transfer in progress 0b1..Transfer complete
#define I2C_S_TCF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
TCF - Transfer Complete Flag 0b0..Transfer in progress 0b1..Transfer complete
#define I2C_S_TCF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
TCF - Transfer Complete Flag 0b0..Transfer in progress 0b1..Transfer complete
#define I2C_SMB_ALERTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
ALERTEN - SMBus Alert Response Address Enable 0b0..SMBus alert response address matching is disabled 0b1..SMBus alert response address matching is enabled
#define I2C_SMB_ALERTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
ALERTEN - SMBus Alert Response Address Enable 0b0..SMBus alert response address matching is disabled 0b1..SMBus alert response address matching is enabled
#define I2C_SMB_ALERTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
ALERTEN - SMBus Alert Response Address Enable 0b0..SMBus alert response address matching is disabled 0b1..SMBus alert response address matching is enabled
#define I2C_SMB_ALERTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
ALERTEN - SMBus Alert Response Address Enable 0b0..SMBus alert response address matching is disabled 0b1..SMBus alert response address matching is enabled
#define I2C_SMB_ALERTEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
ALERTEN - SMBus Alert Response Address Enable 0b0..SMBus alert response address matching is disabled 0b1..SMBus alert response address matching is enabled
#define I2C_SMB_FACK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
FACK - Fast NACK/ACK Enable 0b0..An ACK or NACK is sent on the following receiving data byte 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK.
#define I2C_SMB_FACK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
FACK - Fast NACK/ACK Enable 0b0..An ACK or NACK is sent on the following receiving data byte 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK.
#define I2C_SMB_FACK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
FACK - Fast NACK/ACK Enable 0b0..An ACK or NACK is sent on the following receiving data byte 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK.
#define I2C_SMB_FACK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
FACK - Fast NACK/ACK Enable 0b0..An ACK or NACK is sent on the following receiving data byte 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK.
#define I2C_SMB_FACK | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
FACK - Fast NACK/ACK Enable 0b0..An ACK or NACK is sent on the following receiving data byte 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK.
#define I2C_SMB_SHTF1 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
SHTF1 - SCL High Timeout Flag 1 0b0..No SCL high and SDA high timeout occurs 0b1..SCL high and SDA high timeout occurs
#define I2C_SMB_SHTF1 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
SHTF1 - SCL High Timeout Flag 1 0b0..No SCL high and SDA high timeout occurs 0b1..SCL high and SDA high timeout occurs
#define I2C_SMB_SHTF1 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
SHTF1 - SCL High Timeout Flag 1 0b0..No SCL high and SDA high timeout occurs 0b1..SCL high and SDA high timeout occurs
#define I2C_SMB_SHTF1 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
SHTF1 - SCL High Timeout Flag 1 0b0..No SCL high and SDA high timeout occurs 0b1..SCL high and SDA high timeout occurs
#define I2C_SMB_SHTF1 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
SHTF1 - SCL High Timeout Flag 1 0b0..No SCL high and SDA high timeout occurs 0b1..SCL high and SDA high timeout occurs
#define I2C_SMB_SHTF2 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
SHTF2 - SCL High Timeout Flag 2 0b0..No SCL high and SDA low timeout occurs 0b1..SCL high and SDA low timeout occurs
#define I2C_SMB_SHTF2 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
SHTF2 - SCL High Timeout Flag 2 0b0..No SCL high and SDA low timeout occurs 0b1..SCL high and SDA low timeout occurs
#define I2C_SMB_SHTF2 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
SHTF2 - SCL High Timeout Flag 2 0b0..No SCL high and SDA low timeout occurs 0b1..SCL high and SDA low timeout occurs
#define I2C_SMB_SHTF2 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
SHTF2 - SCL High Timeout Flag 2 0b0..No SCL high and SDA low timeout occurs 0b1..SCL high and SDA low timeout occurs
#define I2C_SMB_SHTF2 | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
SHTF2 - SCL High Timeout Flag 2 0b0..No SCL high and SDA low timeout occurs 0b1..SCL high and SDA low timeout occurs
#define I2C_SMB_SHTF2IE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
SHTF2IE - SHTF2 Interrupt Enable 0b0..SHTF2 interrupt is disabled 0b1..SHTF2 interrupt is enabled
#define I2C_SMB_SHTF2IE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
SHTF2IE - SHTF2 Interrupt Enable 0b0..SHTF2 interrupt is disabled 0b1..SHTF2 interrupt is enabled
#define I2C_SMB_SHTF2IE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
SHTF2IE - SHTF2 Interrupt Enable 0b0..SHTF2 interrupt is disabled 0b1..SHTF2 interrupt is enabled
#define I2C_SMB_SHTF2IE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
SHTF2IE - SHTF2 Interrupt Enable 0b0..SHTF2 interrupt is disabled 0b1..SHTF2 interrupt is enabled
#define I2C_SMB_SHTF2IE | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
SHTF2IE - SHTF2 Interrupt Enable 0b0..SHTF2 interrupt is disabled 0b1..SHTF2 interrupt is enabled
#define I2C_SMB_SIICAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
SIICAEN - Second I2C Address Enable 0b0..I2C address register 2 matching is disabled 0b1..I2C address register 2 matching is enabled
#define I2C_SMB_SIICAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
SIICAEN - Second I2C Address Enable 0b0..I2C address register 2 matching is disabled 0b1..I2C address register 2 matching is enabled
#define I2C_SMB_SIICAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
SIICAEN - Second I2C Address Enable 0b0..I2C address register 2 matching is disabled 0b1..I2C address register 2 matching is enabled
#define I2C_SMB_SIICAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
SIICAEN - Second I2C Address Enable 0b0..I2C address register 2 matching is disabled 0b1..I2C address register 2 matching is enabled
#define I2C_SMB_SIICAEN | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
SIICAEN - Second I2C Address Enable 0b0..I2C address register 2 matching is disabled 0b1..I2C address register 2 matching is enabled
#define I2C_SMB_SLTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
SLTF - SCL Low Timeout Flag 0b0..No low timeout occurs 0b1..Low timeout occurs
#define I2C_SMB_SLTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
SLTF - SCL Low Timeout Flag 0b0..No low timeout occurs 0b1..Low timeout occurs
#define I2C_SMB_SLTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
SLTF - SCL Low Timeout Flag 0b0..No low timeout occurs 0b1..Low timeout occurs
#define I2C_SMB_SLTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
SLTF - SCL Low Timeout Flag 0b0..No low timeout occurs 0b1..Low timeout occurs
#define I2C_SMB_SLTF | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
SLTF - SCL Low Timeout Flag 0b0..No low timeout occurs 0b1..Low timeout occurs
#define I2C_SMB_TCKSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
TCKSEL - Timeout Counter Clock Select 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 0b1..Timeout counter counts at the frequency of the I2C module clock
#define I2C_SMB_TCKSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
TCKSEL - Timeout Counter Clock Select 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 0b1..Timeout counter counts at the frequency of the I2C module clock
#define I2C_SMB_TCKSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
TCKSEL - Timeout Counter Clock Select 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 0b1..Timeout counter counts at the frequency of the I2C module clock
#define I2C_SMB_TCKSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
TCKSEL - Timeout Counter Clock Select 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 0b1..Timeout counter counts at the frequency of the I2C module clock
#define I2C_SMB_TCKSEL | ( | x | ) | (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
TCKSEL - Timeout Counter Clock Select 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 0b1..Timeout counter counts at the frequency of the I2C module clock