![]() |
MAX32672 Peripheral Driver API
Peripheral Driver API for the MAX32672
|
Control register.
#define MXC_F_UART_CTRL_BCLKEN ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKEN_POS)) |
CTRL_BCLKEN Mask
#define MXC_F_UART_CTRL_BCLKEN_POS 15 |
CTRL_BCLKEN Position
#define MXC_F_UART_CTRL_BCLKRDY ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKRDY_POS)) |
CTRL_BCLKRDY Mask
#define MXC_F_UART_CTRL_BCLKRDY_POS 19 |
CTRL_BCLKRDY Position
#define MXC_F_UART_CTRL_BCLKSRC ((uint32_t)(0x3UL << MXC_F_UART_CTRL_BCLKSRC_POS)) |
CTRL_BCLKSRC Mask
#define MXC_F_UART_CTRL_BCLKSRC_POS 16 |
CTRL_BCLKSRC Position
#define MXC_F_UART_CTRL_CHAR_SIZE ((uint32_t)(0x3UL << MXC_F_UART_CTRL_CHAR_SIZE_POS)) |
CTRL_CHAR_SIZE Mask
#define MXC_F_UART_CTRL_CHAR_SIZE_POS 10 |
CTRL_CHAR_SIZE Position
#define MXC_F_UART_CTRL_CTS_DIS ((uint32_t)(0x1UL << MXC_F_UART_CTRL_CTS_DIS_POS)) |
CTRL_CTS_DIS Mask
#define MXC_F_UART_CTRL_CTS_DIS_POS 7 |
CTRL_CTS_DIS Position
#define MXC_F_UART_CTRL_DESM ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DESM_POS)) |
CTRL_DESM Mask
#define MXC_F_UART_CTRL_DESM_POS 22 |
CTRL_DESM Position
#define MXC_F_UART_CTRL_DPFE_EN ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DPFE_EN_POS)) |
CTRL_DPFE_EN Mask
#define MXC_F_UART_CTRL_DPFE_EN_POS 18 |
CTRL_DPFE_EN Position
#define MXC_F_UART_CTRL_FDM ((uint32_t)(0x1UL << MXC_F_UART_CTRL_FDM_POS)) |
CTRL_FDM Mask
#define MXC_F_UART_CTRL_FDM_POS 21 |
CTRL_FDM Position
#define MXC_F_UART_CTRL_HFC_EN ((uint32_t)(0x1UL << MXC_F_UART_CTRL_HFC_EN_POS)) |
CTRL_HFC_EN Mask
#define MXC_F_UART_CTRL_HFC_EN_POS 13 |
CTRL_HFC_EN Position
#define MXC_F_UART_CTRL_PAR_EN ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EN_POS)) |
CTRL_PAR_EN Mask
#define MXC_F_UART_CTRL_PAR_EN_POS 4 |
CTRL_PAR_EN Position
#define MXC_F_UART_CTRL_PAR_EO ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EO_POS)) |
CTRL_PAR_EO Mask
#define MXC_F_UART_CTRL_PAR_EO_POS 5 |
CTRL_PAR_EO Position
#define MXC_F_UART_CTRL_PAR_MD ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_MD_POS)) |
CTRL_PAR_MD Mask
#define MXC_F_UART_CTRL_PAR_MD_POS 6 |
CTRL_PAR_MD Position
#define MXC_F_UART_CTRL_RTSDC ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RTSDC_POS)) |
CTRL_RTSDC Mask
#define MXC_F_UART_CTRL_RTSDC_POS 14 |
CTRL_RTSDC Position
#define MXC_F_UART_CTRL_RX_FLUSH ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RX_FLUSH_POS)) |
CTRL_RX_FLUSH Mask
#define MXC_F_UART_CTRL_RX_FLUSH_POS 9 |
CTRL_RX_FLUSH Position
#define MXC_F_UART_CTRL_RX_THD_VAL ((uint32_t)(0xFUL << MXC_F_UART_CTRL_RX_THD_VAL_POS)) |
CTRL_RX_THD_VAL Mask
#define MXC_F_UART_CTRL_RX_THD_VAL_POS 0 |
CTRL_RX_THD_VAL Position
#define MXC_F_UART_CTRL_STOPBITS ((uint32_t)(0x1UL << MXC_F_UART_CTRL_STOPBITS_POS)) |
CTRL_STOPBITS Mask
#define MXC_F_UART_CTRL_STOPBITS_POS 12 |
CTRL_STOPBITS Position
#define MXC_F_UART_CTRL_TX_FLUSH ((uint32_t)(0x1UL << MXC_F_UART_CTRL_TX_FLUSH_POS)) |
CTRL_TX_FLUSH Mask
#define MXC_F_UART_CTRL_TX_FLUSH_POS 8 |
CTRL_TX_FLUSH Position
#define MXC_F_UART_CTRL_UCAGM ((uint32_t)(0x1UL << MXC_F_UART_CTRL_UCAGM_POS)) |
CTRL_UCAGM Mask
#define MXC_F_UART_CTRL_UCAGM_POS 20 |
CTRL_UCAGM Position
#define MXC_S_UART_CTRL_BCLKSRC_CLK2 (MXC_V_UART_CTRL_BCLKSRC_CLK2 << MXC_F_UART_CTRL_BCLKSRC_POS) |
CTRL_BCLKSRC_CLK2 Setting
#define MXC_S_UART_CTRL_BCLKSRC_CLK3 (MXC_V_UART_CTRL_BCLKSRC_CLK3 << MXC_F_UART_CTRL_BCLKSRC_POS) |
CTRL_BCLKSRC_CLK3 Setting
#define MXC_S_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK (MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK << MXC_F_UART_CTRL_BCLKSRC_POS) |
CTRL_BCLKSRC_EXTERNAL_CLOCK Setting
#define MXC_S_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK (MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK << MXC_F_UART_CTRL_BCLKSRC_POS) |
CTRL_BCLKSRC_PERIPHERAL_CLOCK Setting
#define MXC_S_UART_CTRL_CHAR_SIZE_5BITS (MXC_V_UART_CTRL_CHAR_SIZE_5BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS) |
CTRL_CHAR_SIZE_5BITS Setting
#define MXC_S_UART_CTRL_CHAR_SIZE_6BITS (MXC_V_UART_CTRL_CHAR_SIZE_6BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS) |
CTRL_CHAR_SIZE_6BITS Setting
#define MXC_S_UART_CTRL_CHAR_SIZE_7BITS (MXC_V_UART_CTRL_CHAR_SIZE_7BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS) |
CTRL_CHAR_SIZE_7BITS Setting
#define MXC_S_UART_CTRL_CHAR_SIZE_8BITS (MXC_V_UART_CTRL_CHAR_SIZE_8BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS) |
CTRL_CHAR_SIZE_8BITS Setting
#define MXC_V_UART_CTRL_BCLKSRC_CLK2 ((uint32_t)0x2UL) |
CTRL_BCLKSRC_CLK2 Value
#define MXC_V_UART_CTRL_BCLKSRC_CLK3 ((uint32_t)0x3UL) |
CTRL_BCLKSRC_CLK3 Value
#define MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK ((uint32_t)0x1UL) |
CTRL_BCLKSRC_EXTERNAL_CLOCK Value
#define MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK ((uint32_t)0x0UL) |
CTRL_BCLKSRC_PERIPHERAL_CLOCK Value
#define MXC_V_UART_CTRL_CHAR_SIZE_5BITS ((uint32_t)0x0UL) |
CTRL_CHAR_SIZE_5BITS Value
#define MXC_V_UART_CTRL_CHAR_SIZE_6BITS ((uint32_t)0x1UL) |
CTRL_CHAR_SIZE_6BITS Value
#define MXC_V_UART_CTRL_CHAR_SIZE_7BITS ((uint32_t)0x2UL) |
CTRL_CHAR_SIZE_7BITS Value
#define MXC_V_UART_CTRL_CHAR_SIZE_8BITS ((uint32_t)0x3UL) |
CTRL_CHAR_SIZE_8BITS Value