MAX32670 Peripheral Driver API
Peripheral Driver API for the MAX32670
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
UART_CTRL

Macros

#define MXC_F_UART_CTRL_RX_THD_VAL_POS   0
 
#define MXC_F_UART_CTRL_RX_THD_VAL   ((uint32_t)(0xFUL << MXC_F_UART_CTRL_RX_THD_VAL_POS))
 
#define MXC_F_UART_CTRL_PAR_EN_POS   4
 
#define MXC_F_UART_CTRL_PAR_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EN_POS))
 
#define MXC_F_UART_CTRL_PAR_EO_POS   5
 
#define MXC_F_UART_CTRL_PAR_EO   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EO_POS))
 
#define MXC_F_UART_CTRL_PAR_MD_POS   6
 
#define MXC_F_UART_CTRL_PAR_MD   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_MD_POS))
 
#define MXC_F_UART_CTRL_CTS_DIS_POS   7
 
#define MXC_F_UART_CTRL_CTS_DIS   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_CTS_DIS_POS))
 
#define MXC_F_UART_CTRL_TX_FLUSH_POS   8
 
#define MXC_F_UART_CTRL_TX_FLUSH   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_TX_FLUSH_POS))
 
#define MXC_F_UART_CTRL_RX_FLUSH_POS   9
 
#define MXC_F_UART_CTRL_RX_FLUSH   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RX_FLUSH_POS))
 
#define MXC_F_UART_CTRL_CHAR_SIZE_POS   10
 
#define MXC_F_UART_CTRL_CHAR_SIZE   ((uint32_t)(0x3UL << MXC_F_UART_CTRL_CHAR_SIZE_POS))
 
#define MXC_V_UART_CTRL_CHAR_SIZE_5BITS   ((uint32_t)0x0UL)
 
#define MXC_S_UART_CTRL_CHAR_SIZE_5BITS   (MXC_V_UART_CTRL_CHAR_SIZE_5BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS)
 
#define MXC_V_UART_CTRL_CHAR_SIZE_6BITS   ((uint32_t)0x1UL)
 
#define MXC_S_UART_CTRL_CHAR_SIZE_6BITS   (MXC_V_UART_CTRL_CHAR_SIZE_6BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS)
 
#define MXC_V_UART_CTRL_CHAR_SIZE_7BITS   ((uint32_t)0x2UL)
 
#define MXC_S_UART_CTRL_CHAR_SIZE_7BITS   (MXC_V_UART_CTRL_CHAR_SIZE_7BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS)
 
#define MXC_V_UART_CTRL_CHAR_SIZE_8BITS   ((uint32_t)0x3UL)
 
#define MXC_S_UART_CTRL_CHAR_SIZE_8BITS   (MXC_V_UART_CTRL_CHAR_SIZE_8BITS << MXC_F_UART_CTRL_CHAR_SIZE_POS)
 
#define MXC_F_UART_CTRL_STOPBITS_POS   12
 
#define MXC_F_UART_CTRL_STOPBITS   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_STOPBITS_POS))
 
#define MXC_F_UART_CTRL_HFC_EN_POS   13
 
#define MXC_F_UART_CTRL_HFC_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_HFC_EN_POS))
 
#define MXC_F_UART_CTRL_RTSDC_POS   14
 
#define MXC_F_UART_CTRL_RTSDC   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RTSDC_POS))
 
#define MXC_F_UART_CTRL_BCLKEN_POS   15
 
#define MXC_F_UART_CTRL_BCLKEN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKEN_POS))
 
#define MXC_F_UART_CTRL_BCLKSRC_POS   16
 
#define MXC_F_UART_CTRL_BCLKSRC   ((uint32_t)(0x3UL << MXC_F_UART_CTRL_BCLKSRC_POS))
 
#define MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK   ((uint32_t)0x0UL)
 
#define MXC_S_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK   (MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK << MXC_F_UART_CTRL_BCLKSRC_POS)
 
#define MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK   ((uint32_t)0x1UL)
 
#define MXC_S_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK   (MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK << MXC_F_UART_CTRL_BCLKSRC_POS)
 
#define MXC_V_UART_CTRL_BCLKSRC_CLK2   ((uint32_t)0x2UL)
 
#define MXC_S_UART_CTRL_BCLKSRC_CLK2   (MXC_V_UART_CTRL_BCLKSRC_CLK2 << MXC_F_UART_CTRL_BCLKSRC_POS)
 
#define MXC_V_UART_CTRL_BCLKSRC_CLK3   ((uint32_t)0x3UL)
 
#define MXC_S_UART_CTRL_BCLKSRC_CLK3   (MXC_V_UART_CTRL_BCLKSRC_CLK3 << MXC_F_UART_CTRL_BCLKSRC_POS)
 
#define MXC_F_UART_CTRL_DPFE_EN_POS   18
 
#define MXC_F_UART_CTRL_DPFE_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DPFE_EN_POS))
 
#define MXC_F_UART_CTRL_BCLKRDY_POS   19
 
#define MXC_F_UART_CTRL_BCLKRDY   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKRDY_POS))
 
#define MXC_F_UART_CTRL_UCAGM_POS   20
 
#define MXC_F_UART_CTRL_UCAGM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_UCAGM_POS))
 
#define MXC_F_UART_CTRL_FDM_POS   21
 
#define MXC_F_UART_CTRL_FDM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_FDM_POS))
 
#define MXC_F_UART_CTRL_DESM_POS   22
 
#define MXC_F_UART_CTRL_DESM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DESM_POS))
 

Detailed Description

Control register.

Macro Definition Documentation

◆ MXC_F_UART_CTRL_BCLKEN

#define MXC_F_UART_CTRL_BCLKEN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKEN_POS))

CTRL_BCLKEN Mask

◆ MXC_F_UART_CTRL_BCLKEN_POS

#define MXC_F_UART_CTRL_BCLKEN_POS   15

CTRL_BCLKEN Position

◆ MXC_F_UART_CTRL_BCLKRDY

#define MXC_F_UART_CTRL_BCLKRDY   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_BCLKRDY_POS))

CTRL_BCLKRDY Mask

◆ MXC_F_UART_CTRL_BCLKRDY_POS

#define MXC_F_UART_CTRL_BCLKRDY_POS   19

CTRL_BCLKRDY Position

◆ MXC_F_UART_CTRL_BCLKSRC

#define MXC_F_UART_CTRL_BCLKSRC   ((uint32_t)(0x3UL << MXC_F_UART_CTRL_BCLKSRC_POS))

CTRL_BCLKSRC Mask

◆ MXC_F_UART_CTRL_BCLKSRC_POS

#define MXC_F_UART_CTRL_BCLKSRC_POS   16

CTRL_BCLKSRC Position

◆ MXC_F_UART_CTRL_CHAR_SIZE

#define MXC_F_UART_CTRL_CHAR_SIZE   ((uint32_t)(0x3UL << MXC_F_UART_CTRL_CHAR_SIZE_POS))

CTRL_CHAR_SIZE Mask

◆ MXC_F_UART_CTRL_CHAR_SIZE_POS

#define MXC_F_UART_CTRL_CHAR_SIZE_POS   10

CTRL_CHAR_SIZE Position

◆ MXC_F_UART_CTRL_CTS_DIS

#define MXC_F_UART_CTRL_CTS_DIS   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_CTS_DIS_POS))

CTRL_CTS_DIS Mask

◆ MXC_F_UART_CTRL_CTS_DIS_POS

#define MXC_F_UART_CTRL_CTS_DIS_POS   7

CTRL_CTS_DIS Position

◆ MXC_F_UART_CTRL_DESM

#define MXC_F_UART_CTRL_DESM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DESM_POS))

CTRL_DESM Mask

◆ MXC_F_UART_CTRL_DESM_POS

#define MXC_F_UART_CTRL_DESM_POS   22

CTRL_DESM Position

◆ MXC_F_UART_CTRL_DPFE_EN

#define MXC_F_UART_CTRL_DPFE_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_DPFE_EN_POS))

CTRL_DPFE_EN Mask

◆ MXC_F_UART_CTRL_DPFE_EN_POS

#define MXC_F_UART_CTRL_DPFE_EN_POS   18

CTRL_DPFE_EN Position

◆ MXC_F_UART_CTRL_FDM

#define MXC_F_UART_CTRL_FDM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_FDM_POS))

CTRL_FDM Mask

◆ MXC_F_UART_CTRL_FDM_POS

#define MXC_F_UART_CTRL_FDM_POS   21

CTRL_FDM Position

◆ MXC_F_UART_CTRL_HFC_EN

#define MXC_F_UART_CTRL_HFC_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_HFC_EN_POS))

CTRL_HFC_EN Mask

◆ MXC_F_UART_CTRL_HFC_EN_POS

#define MXC_F_UART_CTRL_HFC_EN_POS   13

CTRL_HFC_EN Position

◆ MXC_F_UART_CTRL_PAR_EN

#define MXC_F_UART_CTRL_PAR_EN   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EN_POS))

CTRL_PAR_EN Mask

◆ MXC_F_UART_CTRL_PAR_EN_POS

#define MXC_F_UART_CTRL_PAR_EN_POS   4

CTRL_PAR_EN Position

◆ MXC_F_UART_CTRL_PAR_EO

#define MXC_F_UART_CTRL_PAR_EO   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_EO_POS))

CTRL_PAR_EO Mask

◆ MXC_F_UART_CTRL_PAR_EO_POS

#define MXC_F_UART_CTRL_PAR_EO_POS   5

CTRL_PAR_EO Position

◆ MXC_F_UART_CTRL_PAR_MD

#define MXC_F_UART_CTRL_PAR_MD   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_PAR_MD_POS))

CTRL_PAR_MD Mask

◆ MXC_F_UART_CTRL_PAR_MD_POS

#define MXC_F_UART_CTRL_PAR_MD_POS   6

CTRL_PAR_MD Position

◆ MXC_F_UART_CTRL_RTSDC

#define MXC_F_UART_CTRL_RTSDC   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RTSDC_POS))

CTRL_RTSDC Mask

◆ MXC_F_UART_CTRL_RTSDC_POS

#define MXC_F_UART_CTRL_RTSDC_POS   14

CTRL_RTSDC Position

◆ MXC_F_UART_CTRL_RX_FLUSH

#define MXC_F_UART_CTRL_RX_FLUSH   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_RX_FLUSH_POS))

CTRL_RX_FLUSH Mask

◆ MXC_F_UART_CTRL_RX_FLUSH_POS

#define MXC_F_UART_CTRL_RX_FLUSH_POS   9

CTRL_RX_FLUSH Position

◆ MXC_F_UART_CTRL_RX_THD_VAL

#define MXC_F_UART_CTRL_RX_THD_VAL   ((uint32_t)(0xFUL << MXC_F_UART_CTRL_RX_THD_VAL_POS))

CTRL_RX_THD_VAL Mask

◆ MXC_F_UART_CTRL_RX_THD_VAL_POS

#define MXC_F_UART_CTRL_RX_THD_VAL_POS   0

CTRL_RX_THD_VAL Position

◆ MXC_F_UART_CTRL_STOPBITS

#define MXC_F_UART_CTRL_STOPBITS   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_STOPBITS_POS))

CTRL_STOPBITS Mask

◆ MXC_F_UART_CTRL_STOPBITS_POS

#define MXC_F_UART_CTRL_STOPBITS_POS   12

CTRL_STOPBITS Position

◆ MXC_F_UART_CTRL_TX_FLUSH

#define MXC_F_UART_CTRL_TX_FLUSH   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_TX_FLUSH_POS))

CTRL_TX_FLUSH Mask

◆ MXC_F_UART_CTRL_TX_FLUSH_POS

#define MXC_F_UART_CTRL_TX_FLUSH_POS   8

CTRL_TX_FLUSH Position

◆ MXC_F_UART_CTRL_UCAGM

#define MXC_F_UART_CTRL_UCAGM   ((uint32_t)(0x1UL << MXC_F_UART_CTRL_UCAGM_POS))

CTRL_UCAGM Mask

◆ MXC_F_UART_CTRL_UCAGM_POS

#define MXC_F_UART_CTRL_UCAGM_POS   20

CTRL_UCAGM Position

◆ MXC_S_UART_CTRL_BCLKSRC_CLK2

#define MXC_S_UART_CTRL_BCLKSRC_CLK2   (MXC_V_UART_CTRL_BCLKSRC_CLK2 << MXC_F_UART_CTRL_BCLKSRC_POS)

CTRL_BCLKSRC_CLK2 Setting

◆ MXC_S_UART_CTRL_BCLKSRC_CLK3

#define MXC_S_UART_CTRL_BCLKSRC_CLK3   (MXC_V_UART_CTRL_BCLKSRC_CLK3 << MXC_F_UART_CTRL_BCLKSRC_POS)

CTRL_BCLKSRC_CLK3 Setting

◆ MXC_S_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK

#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

◆ MXC_S_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK

#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

◆ MXC_S_UART_CTRL_CHAR_SIZE_5BITS

#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

◆ MXC_S_UART_CTRL_CHAR_SIZE_6BITS

#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

◆ MXC_S_UART_CTRL_CHAR_SIZE_7BITS

#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

◆ MXC_S_UART_CTRL_CHAR_SIZE_8BITS

#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

◆ MXC_V_UART_CTRL_BCLKSRC_CLK2

#define MXC_V_UART_CTRL_BCLKSRC_CLK2   ((uint32_t)0x2UL)

CTRL_BCLKSRC_CLK2 Value

◆ MXC_V_UART_CTRL_BCLKSRC_CLK3

#define MXC_V_UART_CTRL_BCLKSRC_CLK3   ((uint32_t)0x3UL)

CTRL_BCLKSRC_CLK3 Value

◆ MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK

#define MXC_V_UART_CTRL_BCLKSRC_EXTERNAL_CLOCK   ((uint32_t)0x1UL)

CTRL_BCLKSRC_EXTERNAL_CLOCK Value

◆ MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK

#define MXC_V_UART_CTRL_BCLKSRC_PERIPHERAL_CLOCK   ((uint32_t)0x0UL)

CTRL_BCLKSRC_PERIPHERAL_CLOCK Value

◆ MXC_V_UART_CTRL_CHAR_SIZE_5BITS

#define MXC_V_UART_CTRL_CHAR_SIZE_5BITS   ((uint32_t)0x0UL)

CTRL_CHAR_SIZE_5BITS Value

◆ MXC_V_UART_CTRL_CHAR_SIZE_6BITS

#define MXC_V_UART_CTRL_CHAR_SIZE_6BITS   ((uint32_t)0x1UL)

CTRL_CHAR_SIZE_6BITS Value

◆ MXC_V_UART_CTRL_CHAR_SIZE_7BITS

#define MXC_V_UART_CTRL_CHAR_SIZE_7BITS   ((uint32_t)0x2UL)

CTRL_CHAR_SIZE_7BITS Value

◆ MXC_V_UART_CTRL_CHAR_SIZE_8BITS

#define MXC_V_UART_CTRL_CHAR_SIZE_8BITS   ((uint32_t)0x3UL)

CTRL_CHAR_SIZE_8BITS Value